system does not boot after restore

Please ask questions here if you are not familiar with fsarchiver
Post Reply
tanwald
Posts: 5
Joined: Sun Mar 07, 2010 2:21 pm

system does not boot after restore

Post by tanwald » Mon Mar 29, 2010 7:27 pm

hello,

i rearranged my partitions and wanted to transfer my ext4 file system to a larger partition. everything went fine, i can mount the restored file system from sysresccd but my system does not boot any more.

What i did:
- formatted the complete disk and created a new layout with fedora 12 live cd
- restored file system to the same partition where i installed the live cd image.(dest=/dev/mapper/isw_bffjcadhhj_ARRAY1)
- reinstalled grub but i get an error like: couldn't find a device for dm-2 (this is where the file system is).
- system does not boot. no error message
- adjusted grub.conf and fstab manually but without success

when i boot with sysresccd and do fsarchiver probe detailed it returns the right layout. when i chroot to the restored file system it doesn't return the correct layout.

My actual layout:

Code: Select all

TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <[email protected]>
http://www.cgsecurity.org
OS: Linux, kernel 2.6.32.10-std150-i386 (#1 SMP Wed Mar 17 21:28:48 UTC 2010)
Compiler: GCC 4.4 - Feb 20 2010 12:55:25

Hard disk list
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63, sector size=512 - ATA FUJITSU MHZ2160B
Disk /dev/sdb - 160 GB / 149 GiB - CHS 19457 255 63, sector size=512 - ATA ST9160411ASG
Disk /dev/mapper/isw_bffjcadhhj_ARRAY - 320 GB / 298 GiB - CHS 625154560 1 1, sector size=512
Disk /dev/mapper/isw_bffjcadhhj_ARRAY1 - 209 GB / 195 GiB - CHS 409600000 1 1, sector size=512
Disk /dev/mapper/isw_bffjcadhhj_ARRAY2 - 4194 MB / 3999 MiB - CHS 8191984 1 1, sector size=512
Disk /dev/mapper/isw_bffjcadhhj_ARRAY3 - 106 GB / 98 GiB - CHS 207350952 1 1, sector size=512
Disk /dev/sr0 - 259 MB / 247 MiB - CHS 126841 1 1 (RO), sector size=2048 - HL-DT-ST DVD+-RW GS20N

Partition table type (auto): Intel
Disk /dev/mapper/isw_bffjcadhhj_ARRAY - 320 GB / 298 GiB
Partition table type: Intel

Current partition structure:
 1 * Linux                         63  409600062  409600000 [Fedora-12-i686-L]
 2 P Linux Swap             409600063  417792046    8191984
 3 P Linux                  417802455  625153406  207350952 [Data]

would be very glad if somebody could give me an advice. i spent the whole day trying...thanks

paul

psusi
Posts: 4
Joined: Mon Mar 22, 2010 6:57 pm

Re: system does not boot after restore

Post by psusi » Wed Mar 31, 2010 3:10 pm

Since you are using fakeraid, grub can not guess what bios device corresponds to it. You need to tell it by editing /boot/grub/device.map and making it look something like:

(hd0) /dev/mapper/isw_bffjcadhhj_ARRAY

Then install grub.

tanwald
Posts: 5
Joined: Sun Mar 07, 2010 2:21 pm

Re: system does not boot after restore

Post by tanwald » Thu Apr 01, 2010 8:22 pm

Thank you psusi for your advice. The content of my device map was exactly:

# this device map was generated by anaconda
(hd0) /dev/mapper/isw_bffjcadhhj_ARRAY

I hate fakeraid and so does linux ... apparently. In the meantime I have installed a fresh copy of fedora and restored the filesystem to another partition. Then I moved my $home to the new installation and did all that installations that i wanted to avoid... Maybe next time

tomaszg
Posts: 7
Joined: Fri Apr 02, 2010 2:27 pm

Re: system does not boot after restore

Post by tomaszg » Fri Apr 02, 2010 4:40 pm

Maybe it will helpfull for You:

ls -l /dev/disk/by-uuid
- this folder contains UUID of Your array, use it in GRUB/GRUB2 config or/and in /etc/fstab on Your RAID.
Your system probably won't boot, becouse there is no active partition on Your drives. For example, for my system with RAID10 with four drives I had to mark as active all of four first primary partitions on each drive containing /boot partition.
You can use simple tool like cfdisk:
cfdisk /dev/sda
mark as bootable and write changes, You can also leave it without writing changes.

tanwald
Posts: 5
Joined: Sun Mar 07, 2010 2:21 pm

Re: system does not boot after restore

Post by tanwald » Mon Apr 26, 2010 8:06 am

tomaszg wrote: Your system probably won't boot, becouse there is no active partition on Your drives.
thanks for the hint. this seems to be a common problem: https://fedoraproject.org/wiki/Common_F ... lled_on_it

Post Reply