-   Linux - Hardware (
-   -   Hard Drive XFS Partition (

qwerty_int 09-20-2004 12:06 PM

Hard Drive XFS Partition

I had a mounted partition /dev/hdd1

But it "disappeared" and I used gpart -W /dev/hdd /dev/hdd in order to recreate the partition table.

#fdisk -l /dev/hdd

Disk /dev/hdd: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 2 19920 159993460 83 Linux

But now I get the error:

# mount /dev/hdd1 /mnt
mount: /dev/hdd1: can't read superblock

What is to be done? (I would like to keep all the data on my disk!!!)


Electro 09-20-2004 02:52 PM

You will have to use xfs_repair. I used it in the past and it worked. I used fdisk or cfdisk to create the partition instead of using gpart because I only have one partition (primary) on it at the time. Though some files maybe in lost+found if you can not find them.

I suggest you copy the files to another drive and reformat that XFS drive. Then move the files back on the XFS drive. After your partition table is fix, you may want to use sfdisk to take a snapshot of your partition table information just in case it happens again.

All times are GMT -5. The time now is 04:47 AM.