Grub installation, fsarchiver

Post in this forum for problems at boot time, if there was no problem for burning the disc. For example can't find the CD, or strange errors when you press enter at the very first prompt.
Posts: 101
Joined: 18 Nov 2006, 13:09

Grub installation, fsarchiver

Postby Tuipveus » 14 May 2009, 19:16

I would like to restore root-filesystem among others to smaller disk or disksystem.

My setup currently:
sda1 = /boot
sda2 = swap
sda3 = /

First I took backup with dd of 63 first sectors and restored it to smaller disk.

Then I took dumps with sfdisk of partition table and restored it to smaller disk. Because physical disk is smaller, it doesn't work.

After that I restored partitions of only sda1 and sda2 with sfdisk and made smaller than original sda3 with cfdisk.

Then restored filesystem with fsarchiver. System can't find operating system. After that I tried to install grub with:

"grub-install /dev/sda"

but it failed with error:
/dev/sda: Not found or not a block device.

After I did
"mount /dev/sda1 /something/somewhere"

grub-install --root-directory=/something/somewhere
... I managed to install grub.

However, now I can see only grub-commandline when booting, not grub menu.

How should I install grub so that menu would also work and I would be able to boot?

Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Postby admin » 17 May 2009, 10:40

Return to “Boot problems”

Who is online

Users browsing this forum: No registered users and 3 guests