Skip to contentSkip to conversation

Can resize_reiserfs do non-destructive resizing??

DISCUSSION Bruce 2 participants 2 messages Nov 18, 2002

lore
Share & tools
lore

Bruce

author
#0 lore raw

I have a desktop machine that was running Debian 3.0, installed on a 40Gig harddrive (single partition hda2 + swap hda1) formatted with reiserfs; the drive had about 10gig data on it. I wanted to test out Mandrake 9.0, and understood that the diskdrake program would handle resizing of the existing reiser partition (using resize_reiserfs, I assume). The diskdrake program suggested I backup as a precaution, but did not indicate that the resizing would be destructive.

I let it resize the existing partition to 20Gig. It seemed to work, and Mandrake installed without any problems. However, since then I have not been able to access the Debian partition - can't boot from it, can't mount it, nothing. Trying to boot from that partition results in:

attempt to access beyond end of device
03:02 rw=0 want 21364740 limit 21310191
reiserfs_read_super: unable to read bitmap
kernel panic....

I posted a query to alt.os.linux.mandrake, and got the answer that resize_reiserfs cannot do non-destructive repartitioning, and that my partition was toast (for the thread, search for the subject "Problem resizing reiserfs partition with DiskDrake" in alt.os.linux.mandrake from 10 November 2002). I had a look at the man page, and if resize_reiserfs cannot, in fact, non-destructively resize a partition, I couldn't find anything saying so.

Is this a problem with diskdrake's handling of resize_reiserfs?? resize_reiserfs itself??

It could also be due to physical problems with the hard drive, which had reported bad blocks some time ago. Is this more likely the cause of the problem??

Any thoughts,

Bruce

#1 lore raw

Hello!

Quoted 7 lines · Bruce

I have a desktop machine that was running Debian 3.0, installed on a 40Gig harddrive (single partition hda2 + swap hda1) formatted with reiserfs; the drive had about 10gig data on it. I wanted to test out Mandrake 9.0, and understood that the diskdrake program would handle resizing of the existing reiser partition (using resize_reiserfs, I assume). The diskdrake program suggested I backup as a precaution, but did not indicate that the resizing would be destructive.

resize_reiserfs is a non-destructive resizer.

Quoted 8 lines

I let it resize the existing partition to 20Gig. It seemed to work, and Mandrake installed without any problems. However, since then I have not been able to access the Debian partition - can't boot from it, can't mount it, nothing. Trying to boot from that partition results in:
attempt to access beyond end of device
03:02 rw=0 want 21364740 limit 21310191
reiserfs_read_super: unable to read bitmap
kernel panic....

Well, that means that the size of your debian partition is 10655092 megabytes, but reiserfs filesystem is expecting the partition to be 10682370 megabytes (as written in superblock).
You might try to use reiserfsck --rebuild-sb followed by subsequent reiserfsck --rebuild-tree to bring reiserfs superblock data back in sync with partition table. That will be dangerous if beginning of partition have changed its location since mkfs time, though.

Quoted 2 lines

Is this a problem with diskdrake's handling of resize_reiserfs?? resize_reiserfs itself??

Hard to tell actually. Looks like filesystem have the size changed, but partition table was not adjusted accordingly. Note that resize_reiserfs does not touch partition tables at all.

Quoted 3 lines

It could also be due to physical problems with the hard drive, which had reported bad blocks some time ago. Is this more likely the cause of the problem??

Well, it does not look like hard drive problem.

Bye,
Oleg