Re: Grub2: How to clone a bootable disk?
On Fri, Aug 24, 2012 at 1:34 PM, T Elcor wrote: > > I have two identical hard drives, one HD contains a bootable wheezy > installation and I'd like to clone it to the other HD. My first idea was > to use "dd" but since grub2 uses disk IDs in /boot/grub/devices.map > and /etc/fstab then once the disk is cloned it probably will not boot, > unless I fix the entries in the above files. To fix the files I need to > know disk IDs and partition UUIDs... not sure how to get them. Is > there an easier way to clone a bootable disk without editing grub2 > and fstab files? "dd ..." should preserve the UUIDs but you can get the UUIDs from "blkid". -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAOdo=syxjfvfcub-zrucvcvtbmw89j8s0axft+mxrh6_mkn...@mail.gmail.com
Re: Grub2: How to clone a bootable disk?
From: Camaleón >> To fix the files I need to know disk IDs and partition UUIDs... not sure >> how to get them. > > "ls -ls /dev/disk/by-*id" will tell. Thank you. A lot clearer now. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1345831468.86253.yahoomail...@web121904.mail.ne1.yahoo.com
Re: Grub2: How to clone a bootable disk?
On Fri, 24 Aug 2012 10:34:54 -0700, T Elcor wrote: > I have two identical hard drives, one HD contains a bootable wheezy > installation and I'd like to clone it to the other HD. My first idea was > to use "dd" but since grub2 uses disk IDs in /boot/grub/devices.map and > /etc/fstab then once the disk is cloned it probably will not boot, > unless I fix the entries in the above files. To fix the files I need to > know disk IDs and partition UUIDs... not sure how to get them. "ls -ls /dev/disk/by-*id" will tell. > Is there an easier way to clone a bootable disk without editing grub2 > and fstab files? You can clone it (better from Clonezilla or at least from a non-live system) and then edit the needed files from a LiveCD. Don't worry, most sure is that the cloned system is still bootable by direct input (manually) from GRUB2 itself. Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/k18esr$k87$1...@ger.gmane.org