LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Linux + winodws 2 hard drives (https://www.linuxquestions.org/questions/linux-software-2/linux-winodws-2-hard-drives-762513/)

lowlux 10-16-2009 11:36 PM

Linux + winodws 2 hard drives
 
i have 2 computers... i want to remove my linux hard drive from the slow computer and stick it in the faster computer...

i want want able to pick which OS i want to use at boot up? linux mint 7

yancek 10-16-2009 11:46 PM

That's not much info and I don't see a question. Are you asking if you can do this? how to do it? You may have to do some configuration if you have a lot of different hardware on the computer. You also don't indicate what else (for operating systems) you have on the new computer. Since you state you want to be able to select the system to boot, I assume you will have more than one OS?

Post your hardware specs and what you expect to have on the computer.

lowlux 10-17-2009 01:14 AM

i plugged in the 2ed HD (slave) which has windows on it... how do i tell grub that its there?

yancek 10-17-2009 10:06 AM

You're using Linux Mint? Boot it up, open a terminal and log in as root 'sudo su' and navigate to the /boot/grub/menu.lst file to edit it. You will need to check your 'fdisk -l' output so you know what drive/partition your OS sees windows on. If windows is on a second disk, you may need map entries in the menu.lst file.

If you're not sure about this, post the output of sudo su fdisk -l command and the contents of /boot/grub/menu.lst file and someone will be able to explain it in detail.

lowlux 10-17-2009 06:34 PM

Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda (for the first IDE disk)
or: fdisk /dev/sdc (for the third SCSI disk)
or: fdisk /dev/eda (for the first PS/2 ESDI drive)
or: fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices)

yancek 10-18-2009 07:09 PM

I guess I thought you were more familiar with Linux. The command is: fdisk -l (and that is not a number one, a lower case Letter L in the command)

Quote:

i have 2 computers... i want to remove my linux hard drive from the slow computer and stick it in the faster computer...
Quote:

i plugged in the 2ed HD (slave) which has windows on it... how do i tell grub that its there?
Does this mean you moved your Linux hard drive to the faster computer and also attached the slave with windows to thiss same computer?

Also, are you planning on keeping both drives attached permanently?

lowlux 10-18-2009 07:19 PM

i guess it can't be done.....

linux ( master drive)

windows ( slave drive)


lowlux@lowlux-desktop ~ $ fdisk -l
lowlux@lowlux-desktop ~ $ fdisk -l
lowlux@lowlux-desktop ~ $ fdisk -l
lowlux@lowlux-desktop ~ $ fdisk -l
lowlux@lowlux-desktop ~ $

jay73 10-18-2009 08:07 PM

YOu'll need to add an an entry for windows to your /boot/grub/menu.lst, like this:

title Windows
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1

yancek 10-18-2009 11:02 PM

Quote:

i guess it can't be done.....
Try this in a terminal: sudo su fdisk -l

pwalden 11-13-2009 03:48 PM

I have a Linux Fedora 9 on a master ATA drive and a Windows XP drive as the slave.

Here is may grub.conf. Notice that I have map instructions to swap the master slave for Windows XP. Windows does not like being on a secondary drive.

Quote:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=15
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.27.25-78.2.56.fc9.i686)
root (hd0,0)
kernel /vmlinuz-2.6.27.25-78.2.56.fc9.i686 ro root=/dev/VolGroup00/LogVol00 acpi=force rhgb quiet
initrd /initrd-2.6.27.25-78.2.56.fc9.i686.img
title Fedora (2.6.27.21-78.2.41.fc9.i686)
root (hd0,0)
kernel /vmlinuz-2.6.27.21-78.2.41.fc9.i686 ro root=/dev/VolGroup00/LogVol00 acpi=force rhgb quiet
initrd /initrd-2.6.27.21-78.2.41.fc9.i686.img
title Fedora (2.6.27.19-78.2.30.fc9.i686)
root (hd0,0)
kernel /vmlinuz-2.6.27.19-78.2.30.fc9.i686 ro root=/dev/VolGroup00/LogVol00 acpi=force rhgb quiet
initrd /initrd-2.6.27.19-78.2.30.fc9.i686.img
title Windows XP SP2
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,1)
chainloader +1


All times are GMT -5. The time now is 09:48 PM.