[PLUG] Resolved: Can one add an OS on a second drive to GRUB

Richard C. Steffens rsteff at comcast.net
Tue Feb 12 21:49:25 UTC 2013


On 02/12/2013 12:55 PM, Brian Martin wrote:
>   > In my "new" machine I have a disk with both XP and 64 bit Ubuntu
> 12.04. I have a second disk with 32 bit Ubuntu
>   > 12.04. So far I have swapped cables when I wanted to do something
> with the 32 bit version. Is it possible to have
>   > both drives plugged in at the same time and have GRUB give me the
> option of which of the three OS's to boot? If
>   > it matters, these are both SATA drives
>
> Sure.
<--->
> ---
>
> If you're using GRUB2, boot up with both disks plugged in, and run
> update-grub2. It should discover that the second disk is bootable (too),
> and add it to the menu. Here's an example:
>
> # update-grub2
> Generating grub.cfg ...
> Found linux image: /boot/vmlinuz-3.2.0-37-generic
> Found initrd image: /boot/initrd.img-3.2.0-37-generic
> Found linux image: /boot/vmlinuz-3.2.0-36-generic
> Found initrd image: /boot/initrd.img-3.2.0-36-generic
> Found memtest86+ image: /boot/memtest86+.bin
> Found Ubuntu 12.04.2 LTS (12.04) on /dev/sda2
> Found Ubuntu 12.04.2 LTS (12.04) on /dev/sdb2
> done
> #

Very simple, very easy. I got essentially what you described. I now can 
choose to boot either the 32 bit or the 64 bit versions of Ubuntu 12.04, 
or XP.

Thanks, Brian.

-- 
Regards,

Dick Steffens




More information about the PLUG mailing list