LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-01-2004, 05:53 AM   #1
fhameed
Member
 
Registered: Oct 2003
Location: Pakistan
Posts: 59

Rep: Reputation: 15
Using 2 HD's with different OS??


Hii everyone

Here is my problem

I've 2 HD's : The 1 has Windows XP on it and the 2 has linux on it.

What i want is

Use my linux HD has a master HD and windows XP as a slave HD and when i start my computer i be given a switch option 2 any of the OS in my grub loaded......that's i can either run my pc using windows or linux.....

if i'm 2 edit grub in this case where in linux will i find grub( or do i have 2 edit the windows boot loaded??)

but in either of the cases i should b able 2 access both HD's

I think SAMBA does that cuz i use SAMBA on my local network and it works just fine...please rectify me if i'm incorrect anywhere.

This way i would be saved from the trouble of changing the cables everytime i wanna use a particular OS and still can't access my data on both HD's

Please HELP!!!

Thanks

Fahad
 
Old 09-01-2004, 08:35 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

Well if your grub is correctly configured, you'll be able to choose which OS to boot.
Then If you boot Linux, you'll be able to access windows data (thanks to mount command)... Note that if your win partition is NTFS formated, write support for Linux is very experimental...
And if you boot from, you'll need a soft to explore your ext3 partition (I don't remember its name). If your partition is ReiserFS or something else, I don't know if there's a windows soft for that.

Oliv'
 
Old 09-02-2004, 02:55 AM   #3
fhameed
Member
 
Registered: Oct 2003
Location: Pakistan
Posts: 59

Original Poster
Rep: Reputation: 15
HD problem

Hii ya

Well my windows is NTFS formatted and i use red hat 9 distro on my other HD...

where is my grub located in my linux file system...in which directory



Thanks for looking into my query

anyone else plz ...

Fahad

Last edited by fhameed; 09-02-2004 at 02:58 AM.
 
Old 09-02-2004, 07:42 AM   #4
rm6990
Member
 
Registered: Aug 2004
Location: Canada
Distribution: SUSE 9.1 Pro and Debian Testing on Server
Posts: 469

Rep: Reputation: 30
Your grub settings file will be in 1 of 2 places (depends on distro). First check at /boot/grub/grub.conf. If that does not exist check /boot/grub/menu.lst. Also, all the partitions are going to have to be switched around in Grub because you are going to be flipping the HDs around, or have I misunderstood you? A quick question, flipping the HDs in my mind is pointless, it is of no benefit and you just create more work, why do you need them flipped. But, if you must, flip them and post your grub.conf/menu.lst to this board and tell me the partition layouts on each HDD (for instance, whether you have a home partition, which partition number your swap is...etc.etc.)

Edit: Ya, I'm not smart, made a mistake, just tell me whut u r planning on doing and post the file to here but dont flip the HDDs yet, if u do the system won't boot.
 
Old 09-02-2004, 12:09 PM   #5
fhameed
Member
 
Registered: Oct 2003
Location: Pakistan
Posts: 59

Original Poster
Rep: Reputation: 15
what i plan 2 do....

Hii ya

what i plan 2 do is use 2 seperate HDs with different Os in them and connect them via cable as master n slave i think just like we do normal master n slace conf setup when using 2 HD's

But what i want at startup is a boot menu 2 providing me options with switching 2 any of the HD's and choosing OS of my choice...

this way i don't have 2 change the cable everytime i wanna use a particular os...remember i've 2 seperate HD's

i think the problem revolves around grub in my master HD containing linux...i need 2 modify it like u said or one way or the other



i'll do the experiments at the weekend...

anything further u or anyone else like 2 add or suggest

i
 
Old 09-02-2004, 01:42 PM   #6
NLR
Member
 
Registered: Jun 2004
Posts: 103

Rep: Reputation: 15
Well grub can do it, I don't know how though because I don't use grub and I have never configured grub. I know how you can do it using lilo though... I personal like lilo better too....

If you would like to use lilo I will give you the instructions below, other wise I hope it all works out:

You need to make use you have lilo installed first... do a lilo -V -v, older version of lilo cant boot a kernel thats outside the first 1024 cylinders (-+512MB), I know the latest version 22.5.9 can boot outside of that. So if this is a problem try upgrading its very easy.

Next you need to edit the lilo.conf file which is at /etc/lilo.conf.

you will want to be something like:
Code:
boot = /dev/hda (/dev/sda if you have SCSI)
prompt
timeout = 50
compact Much fast kernel load
vga = extended
image = /boot/vmlinuz-<Kernel Version>
     label = linux-<Kernel Version>
     root = /dev/hdax (x = partion number linux is on) (/dev/sdax if SCSI)
     read-only
other = /dev/hdbx (x = partion number windoze is on) (/dev/sdbx if SCSI)
      label = Micro$oft_Windoze
      table = /dev/hdb
Than run lilo if it all goes good you should be able to reboot and boot either linux or windows.

I know I did a bad job in explaining I have to go here, but if you get lost and don't understand just post and I will be glad to better explain....

Andrew


----

Andrew nrd.

Last edited by NLR; 09-05-2004 at 10:03 AM.
 
Old 09-07-2004, 02:58 PM   #7
fhameed
Member
 
Registered: Oct 2003
Location: Pakistan
Posts: 59

Original Poster
Rep: Reputation: 15
this is what i did so far

Hii ya

OK this is what i did so far...i managed 2 make linux as master HD and win xp as slave Xp and i can see windows xp drive from my linux drive


My win xp system is NTFS..how can i access all of my windows partition from linux and use it 2 my benefit.

I checked for grub.conf file in joe...but it was all blank...the only thing i could see in the editor was a line saying ERROR FILE....

anyways that i can play with on reinstalling linux...instead anyone has better idea where 2 find my boot loader in linux ,GRUB that's and how 2 configure it for multi OS boot options...

plus how 2 access my NTFS win parttions from linux..

thanks

Fahad
 
Old 09-07-2004, 03:25 PM   #8
NLR
Member
 
Registered: Jun 2004
Posts: 103

Rep: Reputation: 15
You grub config file should be in /boot/grub/ and it be something like grub.conf (i think, like I said I don't know anything about grub). Do you have root access when you edit grub config file? if not that is probley why your getting that error.

To access your NTFS partition you need to mount it. Though it mount it your kernel must have NTFS support.

try:
Code:
mount -t ntfs /dev/< Drive Device file > <mount point for your choice>
If you get a error about NTFS not support you have two choice.

1) Recompile the kernel with NTFS support (harder)
2) Install the linux-ntfs kernel modules (easier)

if can find the ntfs kernel module at: http://linux-ntfs.sourceforge.net/ and you can get the RPM at: http://prdownloads.sourceforge.net/l...1.358.i586.rpm

I cant help with the grub... Maybe some one else can? Thanks.

Andrew
 
Old 09-08-2004, 06:34 AM   #9
fhameed
Member
 
Registered: Oct 2003
Location: Pakistan
Posts: 59

Original Poster
Rep: Reputation: 15
Thanks Andrew

Hello Andrew

Thanks a million ...ur info would definitely help me...

BTW i was looking at vmware.com for desktop PCs...

wonder software...do look into it and i'm on using ur solutions as well...
i was just thinking if it works on single processor pcs of normal users..i think i should..anways

I'll keep dropping by for a hello or just another question

Thank u all

Fahad
 
  


Reply



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
10.1 - Installation with 2 HD's Killswitch99 Mandriva 2 03-29-2005 01:29 PM
No boot for 3 hd's ? quack322 Red Hat 1 08-19-2004 09:03 PM
2 slackware using 2 HD's danielfisica Linux - Newbie 4 05-27-2004 03:42 AM
Two HD's Scratchit Linux - Newbie 5 05-26-2004 10:20 PM
HD's FAT32 sygko Linux - Hardware 1 12-27-2002 10:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:22 AM.

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