Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Can't boot restored system
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
[n00b@localhost]
Apprentice
Apprentice


Joined: 30 Aug 2004
Posts: 266
Location: London, UK

PostPosted: Fri May 17, 2013 10:34 am    Post subject: [Solved] Can't boot restored system Reply with quote

I bought a new laptop recently. As is always the case when I get new hardware to play with I immediately boot sysresccd and perform a complete backup of the hard drive before wiping it and installing Gentoo. :wink:

I followed the guide on partimage.org to also create a backup of the MBR and partition table using dd and, for a GPT partition table, sgdisk:
Code:

root@sysresccd /mnt/gentoo/backup % dd if=/dev/sda of=backup-sda.mbr bs=512
root@sysresccd /mnt/gentoo/backup % sgdisk --backup=backup-sda.sg /dev/sda



I recently had to send my laptop in to get repaired and one of the forms I had to fill out asked for all the passwords used to access the laptop. Rather than supply the passwords that would let the engineers into my university email account, wifi and internet banking, etc. I restored the original Windows 8 install before sending it to the repair centre. I backed up my existing Gentoo install prior to restoring Windows 8 using the same method above. When restoring Windows 8 I had to restore the MBR after restoring the partition table for gdisk to recognise it as a valid GPT partition table after which restoring the partitions using partimage worked and the laptop was able to boot into Windows 8.

I got my laptop back yesterday and attempted to restore Gentoo using the same method. I restored the partition table and MBR using the following commands which worked for the Windows 8 install:
Code:

root@sysresccd /mnt/gentoo/backup % sgdisk --load-backup=backup-sda.sg /dev/sda
root@sysresccd /mnt/gentoo/backup % dd if=backup-sda.mbr of=/dev/sda bs=512


I then restored the partitions using partimage as before. My laptop, however, will not boot. I have tried booting into sysresccd, mounting the partitions, chrooting and installing a new MBR using grub2-install but this doesn't work either. The partitions have been restored correctly as I can mount them and see all my files there and gdisk is able to list the partition table. Does anyone know how I can get my laptop to boot? I'm out of ideas.


Last edited by [n00b@localhost] on Fri May 17, 2013 11:54 am; edited 1 time in total
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Fri May 17, 2013 11:00 am    Post subject: Reply with quote

Could it be because your system is not happy with the initial content of /dev ?

In that case, maybe you can try mounting your root partition,
cd /mnt/your_mountpoint/dev, then make the basic nodes needed to boot.
Code:
mknod --mode=600 console c 5 1
mknod --mode=666 null c 1 3
mknod --mode=666 zero c 1 5


Then umount and retry booting.
_________________
Back to top
View user's profile Send private message
[n00b@localhost]
Apprentice
Apprentice


Joined: 30 Aug 2004
Posts: 266
Location: London, UK

PostPosted: Fri May 17, 2013 11:10 am    Post subject: Reply with quote

Actually I think I've found the problem.

GRUB2 needs to install from a system booted via UEFI. Sysresccd has the option of booting from "Legacy" or UEFI. In order to run the diagnostic suite (presumably from a livecd) the engineers had gone into the BIOS and disabled UEFI, causing Sysresccd to boot using "Legacy" mode and thus preventing GRUB2 from installing properly.

I'm currently working out how to boot sysresccd using UEFI without an EFI framebuffer as my laptop doesn't seem to like it.

EDIT: That was the problem. I wish the people fixing my laptop would have changed the BIOS settings back after they'd finished!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum