Adding Hard Drive To Grub Menu

Ajak
Ajak used Ask the Experts™
on
How do I add another Windows XP SATA Hard Drive to this Grub menu? (Puppy Linux on a USB Stick):

timeout 30
default 0
#
WinXP on HDD
title Windows XP on hard disk
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1
#
title Puppy on bootable USB
root (hd0,0)
kernel /vmlinuz root=/dev/ram0 PMEDIA=usbflash
initrd /initrd.gz

See Fdisk Attachment
fdisk.jpg
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Distinguished Expert 2017

Commented:
Could you explain what you are trying to do?
grub is a booting mechanism and only needs to point to the /boot partition to load the OS.

If you want the drive space to be available (loaded), you need to add it to the /etc/fstab

Note the drive /dev/sdb[partition]
The below is to temporary load a partition of the drive so you can access.  Often /mnt or subdirectories within can be used to mount multiple i.e. create /mnt/partition1 /mnt/partition2
mount /dev/sdb[partition] /mnt/someidentifier[partition]

Michael EagerConsultant

Commented:
If you want a disk to be accessible to a running system, you need to create a mount point for it and add an entry to /etc/fstab.   See "man fstab".  

Author

Commented:
I had Win XP on HD & Linux on a USB Stick. When I boot up with the USB Stick in, there is a boot menu option to boot into " WinXP on HDD" or "Puppy on bootable USB" as reflected in the GRUB menu.lst.

I installed another Win XP HD & want it to show up in the boot menu. I need to add an edited version of the entry below, to include the new OS, ie. "WinXP on HDD 2"

#
WinXP on HDD
title Windows XP on hard disk
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Distinguished Expert 2017
Commented:
Try adding the following:
#
WinXP on HDD 2
title Windows XP on hard disk 2
map (hd0) (hd2)
map (hd2) (hd0)
rootnoverify (hd2,0)
makeactive
chainloader +2

Author

Commented:
Nice try arnold but when I select "Windows XP on hard disk 2" in the boot menu, it boots back into the 1st Win XP (WinXP on HDD).

Author

Commented:
Actually it does work! I've got both Win XP drives in Mobile Racks & the PC kept booting into the new drive, so I disable it when I wanted to boot into the old one. It suddenly hit me that the old drive must've got plugged into SATA 2 MB socket by mistake & the storage drive was in SATA 1 but because it was SATA it didn't make a difference, Everest system diagnostics confirms this:

Drive #1 - WDC WD15 00HLFS-01G6U0 SCSI Disk Device (139 GB) (Win XP, new)
Drive #2 - WDC WD16 00YS-01SHB1 SCSI Disk Device (153 GB) (Win XP, old)
Drive #3 - WDC WD50 00AAKS-00TMA SCSI Disk Device (465 GB) (Storage)
Drive #4 - Crucial Gizmo! overdrive USB Device (1945 MB) (Linux)

When I got the new drive, I switched the storage drive to the SATA PCI card & plugged the new one into the now vacant MB SATA socket. As there is now a bootable OS in SATA 1, the PC boots off it 1st, so when I choose "Windows XP on hard disk" it boots into the new drive. I just have to tidy up the titles in the boot menu so it reads correctly & it's job done.

It seems so simple now, just change all the 1's for 2's, easy when you know how. Congratulations, you nailed it.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial