* resize_reiserfs probs
@ 2003-06-22 23:32 Harald Radke
2003-06-23 6:32 ` Carl-Daniel Hailfinger
0 siblings, 1 reply; 5+ messages in thread
From: Harald Radke @ 2003-06-22 23:32 UTC (permalink / raw)
To: reiserfs-list
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: resize_reiserfs probs
2003-06-22 23:32 resize_reiserfs probs Harald Radke
@ 2003-06-23 6:32 ` Carl-Daniel Hailfinger
2003-06-23 7:02 ` Harald Radke
0 siblings, 1 reply; 5+ messages in thread
From: Carl-Daniel Hailfinger @ 2003-06-23 6:32 UTC (permalink / raw)
To: Harald Radke; +Cc: reiserfs-list
Harald Radke wrote:
> 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
--
http://www.hailfinger.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: resize_reiserfs probs
2003-06-23 6:32 ` Carl-Daniel Hailfinger
@ 2003-06-23 7:02 ` Harald Radke
2003-06-23 10:57 ` Carl-Daniel Hailfinger
0 siblings, 1 reply; 5+ messages in thread
From: Harald Radke @ 2003-06-23 7:02 UTC (permalink / raw)
To: reiserfs-list
Good morning all!
>> "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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: resize_reiserfs probs
2003-06-23 7:02 ` Harald Radke
@ 2003-06-23 10:57 ` Carl-Daniel Hailfinger
2003-06-23 22:12 ` Harald Radke
0 siblings, 1 reply; 5+ messages in thread
From: Carl-Daniel Hailfinger @ 2003-06-23 10:57 UTC (permalink / raw)
To: Harald Radke; +Cc: reiserfs-list
Harald Radke wrote:
> Good morning all!
>
>
>>>"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.
>
>
> 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
--
http://www.hailfinger.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: resize_reiserfs probs
2003-06-23 10:57 ` Carl-Daniel Hailfinger
@ 2003-06-23 22:12 ` Harald Radke
0 siblings, 0 replies; 5+ messages in thread
From: Harald Radke @ 2003-06-23 22:12 UTC (permalink / raw)
To: reiserfs-list
Am Montag, 23. Juni 2003 12:57 schrieben Sie:
> > -> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-06-23 22:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-22 23:32 resize_reiserfs probs Harald Radke
2003-06-23 6:32 ` Carl-Daniel Hailfinger
2003-06-23 7:02 ` Harald Radke
2003-06-23 10:57 ` Carl-Daniel Hailfinger
2003-06-23 22:12 ` Harald Radke
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.