[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: crashed big reiser-partition with parted. any help?

From: Yury Umanets
Subject: Re: crashed big reiser-partition with parted. any help?
Date: Wed, 04 Dec 2002 21:26:18 +0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130

address@hidden wrote:


i just crashed my reiserfs partition upon shrinking the underlying partition
with parted.
is there a way to get my data back?

parted - recover did not help.

there is only one primary partition 120 gb reiser standart (taken all
i wanted to shrink by 10% (to move to lvm part for part :-).
there were aproximately 100gb data on this disk.

resize-reiser did the job, now i wanted to shrink the partition too...
fdisk could only change cylinders, but showed inconsistent values for the last cylinder, and i did not want to calculate the exact numbers..
so i choose parted.

parted, reisertools, libreiser, kernel (2.4.20), etc are all latest
i use debian woody

progsreiserfs- e2fsprogs-1.32.tar.gz reiserfsprogs-3.6.4.tar.gz linux-2.4.20.tar.bz2 parted-1.6.3.tar.gz (tricky to understand that libreiserfs is not ncluded
in reisertools)

below a screenshot from the short way to data-nirvana:

reiser_resize (shrinked fs by 10% ok). (was this the reason? does parted wants to resize_reiser by itself?)

zeus:/usr/src/parted-1.6.3# parted
GNU Parted 1.6.3
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the i
A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

Using /dev/hdc
Information: The operating system thinks the geometry on /dev/hdc is
116301/16/63.  Therefore, cylinder 1024
(parted) select /dev/hdb
Using /dev/hdb
Information: The operating system thinks the geometry on /dev/hdb is
239340/16/63.  Therefore, cylinder 1024
(parted) print
Disk geometry for /dev/hdb: 0.000-117800.156 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.031 117800.156  primary   reiserfs
(parted) print 1
Minor: 1
File System: reiserfs
Size:         117800.125Mb (99%)
Minimum size:  99104.016Mb (84%)
Maximum size: 117800.156Mb (100%)
(parted) resize 1 0.031 100000
shrinking... 11%        (time left 486:59)Error: Invalid node detected
(37083). Unknown type.
(parted) print 1
Error: Could not detect file system.
(parted) q
Information: Don't forget to update /etc/fstab, if necessary.

zeus:~# mount /dev/hdb1 /mnt/2
mount: you must specify the filesystem type
zeus:~# mount -t reiserfs /dev/hdb1 /mnt/2
mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
      or too many mounted file systems

thank you for your help!

My vision is the following:
Apparently you have had broken filesystem before you was trying to shrink it. That is because libreiserfs was unable to determine what node format is used (leaf node or internal one). Node header was demaged.

But I don't understand, why superblock was corrupted too (it was I think)

I recomend you use reiserfsck for recovering your data.

Yury Umanets

reply via email to

[Prev in Thread] Current Thread [Next in Thread]