LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-16-2009, 11:36 PM   #1
lowlux
Member
 
Registered: May 2005
Posts: 56

Rep: Reputation: 15
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
 
Old 10-16-2009, 11:46 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,391

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
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.
 
Old 10-17-2009, 01:14 AM   #3
lowlux
Member
 
Registered: May 2005
Posts: 56

Original Poster
Rep: Reputation: 15
i plugged in the 2ed HD (slave) which has windows on it... how do i tell grub that its there?
 
Old 10-17-2009, 10:06 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,391

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
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.
 
Old 10-17-2009, 06:34 PM   #5
lowlux
Member
 
Registered: May 2005
Posts: 56

Original Poster
Rep: Reputation: 15
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)
 
Old 10-18-2009, 07:09 PM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,391

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
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?
 
Old 10-18-2009, 07:19 PM   #7
lowlux
Member
 
Registered: May 2005
Posts: 56

Original Poster
Rep: Reputation: 15
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 ~ $
 
Old 10-18-2009, 08:07 PM   #8
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 132Reputation: 132
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
 
Old 10-18-2009, 11:02 PM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,391

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
Quote:
i guess it can't be done.....
Try this in a terminal: sudo su fdisk -l
 
Old 11-13-2009, 03:48 PM   #10
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Raspbian, Ubuntu, Chrome/Crouton
Posts: 372

Rep: Reputation: 50
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2 hard drives, XP on my main sata drives, 10.2 on my IDE LILO doesnt show on boot up Dachy Slackware 14 01-03-2008 07:01 AM
Linux won't recognise one of the other hard drives p'd_off Linux - Hardware 2 07-11-2006 01:07 PM
Winodws and Linux bitterbird Linux - Newbie 6 05-16-2005 10:53 AM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 03:28 PM
Winodws XP machines can't access Linux server lansman Linux - Networking 3 03-02-2003 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration