Skip to contentSkip to conversation

resize_reiserfs probs

DISCUSSION Harald Radke 2 participants 5 messages Jun 22, 2003 – Jun 23, 2003

lore
Share & tools
lore
#0 lore raw

Hi there!

Silly me, I installed a linux system via the internet and realize I need another partition right now.

Currently there is a swap, a small 16Meg (/boot - ext2) and a 3rd partition (/
- reiserfs), consuming all other disc space...

now I wanted to resize the root partition (booted with discs, so it wasn't mounted) from approx 9.5 to 9.2 GB.

however, resize_reiserfs stops with:

"resize_reiserfs: can't shrink fs; too many blocks already allocated"

strange, as partition has only approx. 1.6 GB data on it

Any hints?

(resize_reiserfs version is 3.6.4.)

T.I.A.

Harry

#1 lore raw
Quoted 10 lines · Harald Radke

now I wanted to resize the root partition (booted with discs, so it wasn't mounted) from approx 9.5 to 9.2 GB.

however, resize_reiserfs stops with:

"resize_reiserfs: can't shrink fs; too many blocks already allocated"

strange, as partition has only approx. 1.6 GB data on it

Any hints?

I know this one very well. Please tell us the exact (including spaces) command line you were using to resize it. I suspect user error here - at least it was one when I got this error.

HTH,
Carl-Daniel

Signature · 1 line
http://www.hailfinger.org/
#2 lore raw

Good morning all!

Quoted 6 lines
Quoted 2 lines

"resize_reiserfs: can't shrink fs; too many blocks already allocated" [...]

I know this one very well. Please tell us the exact (including spaces) command line you were using to resize it. I suspect user error here - at least it was one when I got this error.

ok, first, here's the output of FDISK
------------------------------------------
[--- # of cylinders is > 1024 (is 1099) ---]

Disk /dev/hda: 10.0 GB, 10056130560 bytes
240 heads, 63 sectors/track, 1299 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1             1        35    264568+  82  Linux swap
/dev/hda2   *        36        37     15120   83  Linux
/dev/hda3            38      1299   9540720   83  Linux

the commad was

-> resize_reiserfs -s -9240720K /dev/hda3

I also tried

-> resize_reiserfs -s -9200M /dev/hda3
(for "testing" purposes"....same prob)

Thx

Harry

#3 lore raw
Quoted 12 lines · Harald Radke

Good morning all!

Quoted 7 lines
Quoted 2 lines

"resize_reiserfs: can't shrink fs; too many blocks already allocated" [...]

I know this one very well. Please tell us the exact (including spaces) command line you were using to resize it. I suspect user error here - at least it was one when I got this error.

Quoted 8 lines

the command was

-> resize_reiserfs -s -9240720K /dev/hda3

I also tried

-> resize_reiserfs -s -9200M /dev/hda3
(for "testing" purposes"....same prob)

Your command doesn't resize to 9200M, it makes the fs 9200M SMALLER. Of course that is going to fail. Please try

resize_reiserfs -s 9240720K /dev/hda3
or
resize_reiserfs -s 9200M /dev/hda3

and you should be fine. The minus sign is the key to your problem.

HTH,
Carl-Daniel

Signature · 1 line
http://www.hailfinger.org/
#4 lore raw

Am Montag, 23. Juni 2003 12:57 schrieben Sie:

Quoted 12 lines
Quoted 2 lines

-> resize_reiserfs -s -9200M /dev/hda3
(for "testing" purposes"....same prob)

Your command doesn't resize to 9200M, it makes the fs 9200M SMALLER. Of course that is going to fail. Please try

resize_reiserfs -s 9240720K /dev/hda3
or
resize_reiserfs -s 9200M /dev/hda3

and you should be fine. The minus sign is the key to your problem.

yeah, now it worked ((: thx!

hm, no offense but maybe the manpage text should be a little clearer in this respect...like not saying

"-s [+|-]size Set the new size in bytes"

but

e.g.
"-s [+]-] value increases (+) / decreases (-) filesystem size by value"

and/or maybe use better values in the shrinking example so that it is quite clear that u have to specify the amount by which size is changed and not the new size (:

anyways, thx for ur really fast help, now my thinkpad can hibernate ((;

Greez,
Harry