[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Configuring grub2 on a backup disk

From: jackie sparks
Subject: RE: Configuring grub2 on a backup disk
Date: Sun, 16 Oct 2011 21:46:27 -0400

I believe you need to look at the "set root" option

mine is

"set root='(hd0,4)'"

I think for yours it would be something like

"set root='(hd3,X)'" {where X is would be the partition number 0=sda1 1=sda2 2=sda3 and so forth

Now correct me if I'm wrong or there is more to this process. Iv never migrated my install like so. Ioperate from a laptop with only one hardrive so I just migrate data between the installs. sda1-3 are for my main encrypted install. and sda4 is used for my temp install. Then I migrate between the main and temp install back to the main install. Yeah it's a pain. But I really don't have the extra hardware to try what you are doing.

--[Witty Signature Goes Below]---------------------------------------------------------------------------------------------------------------------
--[....]------ - linked in profile - feel free to add me on facebook. - looking for support by sharing and liking our page and also sponsors to help with the project. - taking the knowlege outside the classroom so anyone can be a technician - Support my VPS host sign up now!/skraps_foo!/phonesnake

> Subject: Configuring grub2 on a backup disk
> From: address@hidden
> To: address@hidden
> Date: Sun, 16 Oct 2011 19:46:52 -0500
> I'm running Ubuntu 10.04, and planning to upgrade. Before I do, though,
> I want to make sure my backup/restore processes work. My backups, of
> course, have been running since I first installed 10.04, but it's only a
> restore that can demonstrate that they have been running successfully.
> And I've found a problem. I don't know how to get grub2 configured
> correctly, on the restored disk.
> Currently, my running system is on /dev/sda, with /boot on /dev/sda1
> and / on /dev/mapper/desktop-root. (I'm using logical volumes.) This
> configuration has been running successfully for several years.
> My restore is on /dev/sdb, with /boot on /dev/sdb1 and /
> on /dev/mapper/desktop2-root.
> All of the files have been restored, and /etc/fstab has been edited, on
> the restored drive, to reflect the changed logical volume name.
> But I only have grub installed on /dev/sda, so /dev/sdb is not bootable.
> I'm not looking to do anything fancy. I'm not trying to dual boot, I
> just want to be able to boot from /dev/sdb, using /dev/sdb1 as /boot,
> and /dev/mapper/desktop2-root as /. In other words, I want to do
> to /dev/sdb exactly what running update-grub would do to /dev/sda, when
> I was booted off of /dev/sda.
> Any ideas?
> _______________________________________________
> Help-grub mailing list
> address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]