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

Re: Relocating Squeeze partition



Dne, 13. 02. 2011 11:15:04 je Russell Gadd napisal(a):
With Lenny I am able to take an image of a partition with an external
imaging tool and rewrite it to a different location on the (first)
hard drive. In this configuration I have a proprietary bootloader
(BootitNG) in the MBR with Grub in the Lenny partition. My main
objective is to clone a new install to run each for distinct purposes
which I want to keep entirely separate.


Let me get this straight. You installed Squeeze and then cloned it to another partition? Where does the Lenny partition come in? What does work and what doesn't?

After installing Squeeze this does not work. On trying to boot in the
new location I just get a black screen with the word GRUB in the top
corner. I think the main differences with Lenny are that I have Grub2
instead of Grub, ext4 instead of ext3 and UUIDs instead of /dev/sdxn
in fstab. Both systems are AMD64.

Cloning a partition will give you two partitions with identical UUIDs. This will confuse Grub2 to no end. It will also confuse your fstab.Use tune2fs and blkid to set that right. Additionally, Grub2 won't work without its os-prober. Check you have it. Also check your Squeeze /boot/grub/grub.cfg to see what's in there. Additionally, Grub2 is modular and it needs to load the right modules in order to boot properly: the module for msdos (or GUID, depending on your partition table) partition tables, the module for ext4 if needed, and other modules that it might need. Usually it detects the right modules and puts them inside its /boot/grub/grub.cfg automagically (it's probably the os-prober who does this).


I don't know where the problem(s) lie. Is it reasonably possible to
adjust settings somewhere to accomplish this relocation? If it's not
reasonably straightforward I guess I'll just have to reinstall and
retweak in the new location.

I think it is reasonably possible, I do it all the time. It is a bit time consuming though. Google is definitely your friend.


(After relocating I could boot into the original Squeeze system and
then mount the new Squeeze root partition in order to make changes.)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: [🔎] AANLkTikwWZuZUxsDd5mSMHbTN04QFgg0griAYWdFO9rS@mail.gmail.com">http://lists.debian.org/[🔎] AANLkTikwWZuZUxsDd5mSMHbTN04QFgg0griAYWdFO9rS@mail.gmail.com







--
Cheerio,

Klistvud http://bufferoverflow.tiddlyspot.com Certifiable Loonix User #481801 Please reply to the list, not to me.


Reply to: