Re: grub configuration, boot.

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

 



On Wednesday December 23 2009 19:49:27 TNWestTex wrote:
> Bugzilla from yehielb@xxxxxxx wrote:
> > hello,
> >
> > I have been trying to look over many solutions and tutorials with no
> > luck. my goal was and still is, to clone my internal 40GB hard-drive
> > which contain
> > fc11 on to my external usb-hard-drive 500GB.
> > aftar many tutorials I finally used Clonezilla.
> > that worked great and the hdd is cloned.
> > the problem is that the boot configurations are the same, and so when I
> > boot
> > from the usb-hdd I actually run from the internal hdd.
> > and now for the question.
> > since this usb-drive is meant to be able to boot on every computer,
> > I can I config grub to boot (run) the OS in the same drive it is being
> > loaded
> > from?
> >
> > for example:
> > my current setup is that the fc11 internal drive is sdb and the usb-hdd
> > is sde
> > and the same grub is (clone) on both drives.
> 
> A problem is that many systems switch the order of the drive assignments on
> the boot from the USB drive.  The /boot/grub/device.map file has to reflect
> what the system is doing.  This order is passed to grub with the line
> 
> root (hdX,n)
> 
> in /boot/grub/grub.conf where X is the drive and n is the partition number
> of the partition with /boot.
> 
> If you run in a root terminal session the commands
> 
> fdisk -l
> 
> to see exactly what the device names are.  Then run
> 
> vol_id -u /dev/sdXn
> 
> Where X is the drive and n is the partition number.  You will get the UUID
> for the partitions.  You can then edit /boot/grub/grub.conf and make the
> kernel line specify explicitly the partitions you want to use with the
> syntax
> 
> root=UUID=.......
> 
> An additional complication is that some utilities get confused when there
> are multiple drive partitions with the same label.  Running from the
> internal drive without the usb drive, you can use e2label to change the
> labels on the internal drive.
> 
> If you are still having trouble, post the output from fdisk -l, UUIDs and
> your grub.conf file for more help.
> 
> Robert McBroom
> 
thanks
I am using GRUB 0.97 and apparently the option root=UUID=... is not supported
or maybe I am doing something wrong.

this is my grub.conf:
-------------------------------------------------------------------------------------------------------------------
hiddenmenu
default 0
timeout 2

title Fedora (2.6.30.9-96.fc11.i686.PAE)
root (hd0,0)
kernel /vmlinuz-2.6.30.9-96.fc11.i686.PAE ro root=/dev/mapper/VolGroup-lv_root 
nomodeset rhgb quiet vga=0x318
initrd /initrd-2.6.30.9-96.fc11.i686.PAE.img

title Fedora (2.6.30.9-90.fc11.i686.PAE)
root (hd0,0)
kernel /vmlinuz-2.6.30.9-90.fc11.i686.PAE ro root=/dev/mapper/VolGroup-lv_root 
nomodeset rhgb quiet vga=0x318
initrd /initrd-2.6.30.9-90.fc11.i686.PAE.img

title Fedora (2.6.29.6-217.2.8.fc11.i686.PAE)
root (hd0,0)
kernel /vmlinuz-2.6.29.6-217.2.8.fc11.i686.PAE ro root=/dev/mapper/VolGroup-
lv_root nomodeset rhgb quiet vga=0x318
initrd /initrd-2.6.29.6-217.2.8.fc11.i686.PAE.img

title FC11 test
root=UUID=175472b3-e4e5-4208-beeb-56eec49c20aa
kernel /vmlinuz-2.6.30.9-96.fc11.i686.PAE ro root=/dev/mapper/VolGroup-lv_root 
nomodeset rhgb quiet vga=0x318
initrd /initrd-2.6.30.9-96.fc11.i686.PAE.img

title FC11 usb-clone
root=UUID=175472b3-e4e5-4208-beeb-56eec49c20aa
kernel /vmlinuz-2.6.30.9-96.fc11.i686.PAE ro root=/dev/mapper/VolGroup-lv_root 
nomodeset rhgb quiet vga=0x318
initrd /initrd-2.6.30.9-96.fc11.i686.PAE.img
-------------------------------------------------------------------------------------------------------------------

one more problem I now have, the UUID are not unique and the clone drive 
partitions has the same UUID's as their relative source partitions.
thanks again for your help
YB.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux