Tag Info

Hot answers tagged

2

I have had the most success by executing the following strategy: # mdadm --stop /dev/md0 # mdadm --create /dev/md0 --metadata=1.2 --level=5 --raid-devices=4 --chunk=128 --layout=left-symmetric /dev/sda1 /dev/sdb1 /dev/sdc1 missing That creates the device with the same parameters as originally used. The missing causes the device to be created in degraded ...


2

1.- Originally, fdisk created partitions trying to make them aligned to cylinder boundaries, leaving the first cylinder on disk free, as it would be used for the MBR, patition table and other stuff. This way, the first partition usually started on block 63 (each block being 512 bytes). The fdisk from distributions like RedHat 6.x, still works this way, but ...


1

I suggest that you immediately make a mirror of the damaged drive to avoid losing any more information. Your hardware is most likely bad and I would not mess with it further unless you like frustration. You can try to recover the image after restoriing it to a new disk. But I'm betting unless the data is extremely important that will be a time ...


1

It's all about layers. You have a disk (the lowest layer). On that disk you put a partition table. On that, you put a RAID. On the RAID you put LUKS. On the LUKS you add LVM. On the LVM, finally the filesystem (the highest layer). Disk -> Partition -> RAID -> LUKS -> LVM -> Filesystem You may skip or reorder some of those layers. It ...


1

By some mystery I had wiped the volume group and the physical volume in it. It was just a matter of recovering them using the metadata I could back-up using testdisk. I copied the original /etc/lvm folder on the Desktop of the live user, then $ pvcreate --uuid "cZ83jX-WXkk-tNG4-ulGT-sAqq-HlKq-Omtqc8" \ --restorefile ...


1

Take a look at the e2fsprogs package. It seems that you can get all your backup superblocks from dumpe2fs /dev/sd<partition-id> | grep -i superblock and then have e2fsck check the FS for you, or just try to do mount -o sb=<output-of-dumpe2fs> /dev/sd<partition-id> /your/mountpoint with a backup superblock. See this for reference: ...


1

You will need to use TestDisk's sister program PhotoRec to recover your files. It's been a couple of years since I last used these programs, but IIRC you won't be able to recover them in-place, so I hope you have enough spare HD space to recover your files to. It's a good idea to read through the relevant TestDisk & PhotoRec docs before you attempt to ...



Only top voted, non community-wiki answers of a minimum length are eligible