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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-25-2003, 06:30 PM
|
#1
|
Member
Registered: Jul 2003
Location: California, US
Distribution: SuSE 9.3 (so slick!), WinXP
Posts: 34
Rep:
|
Multiple physical hard drives w/Red Hat 9
Hello All! Thanks for your time!
The Situation:
I have a pc running Win2k. It has one physical hard drive - 120GB partitioned such that Win2k is on c:\ with 20GB and random storage space is on d:\ with 100GB (both are formatted using NTFS). A couple of days ago I decided to give Red Hat 9 Linux a whirl on my system, and so obtained a blank 13GB hard drive to install into my machine and try Red Hat 9 out. I downloaded Red Hat 9, burned the three installation cds from the images, UNHOOKED (IDE cable and power) my 120GB hard drive, HOOKED up my blank 13GB drive, and proceeded to boot from the first installation CD and install Red Hat 9.
The install went beautifully. I browsed around the GNOME desktop for a while, and then decided to REHOOK my 120GB drive housing my install of Win2k and my Data.
The Problem:
When I boot from my 13GB drive into Red Hat 9, I cannot figure out how to access my data off of my 100GB partition on my 120GB drive. My friend just mentioned to me that I need to open a terminal and type
mount /dev/hdb2
or something along those lines. I would greatly appreciate any guidance that anyone can offer in this area.
THANKS EVERYONE!!!!
-masterspud777
|
|
|
07-25-2003, 06:56 PM
|
#2
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Hi Masterspud
My advice would be to:
Install your Win2k drive on your Primary Master channel - think of it as your 1st hard drive - Linux will see this drive as /dev/hda
Then install your Red Hat 9 drive on your Primary Slave channel - think of it as your 2nd hard drive - Linux will see this drive as /dev/hdb
Then - Re-install Red hat on /dev/hdb - (your 2nd hard drive) - (the idea is that you want it to configure as best as possible - so you'd want to re-install)
Choose between LILO or GRUB as the bootloader - I would install LILO, others would advise GRUB. (just click on "change bootloader" if you want to use LILO - I would)
Install the bootloader to the MBR
Make a boot disk from Red Hat.
On re-boot you should have the option of going into either OS but if not we can help with any configuration for your Lilo.conf or Grub.conf files
You'll need to download a RPM for Red Hat to Read NTFS (or you could just create a FAT32 shared data partition)
Supposing your NTFS data partiton is /dev/hda2 and you want to mount it in Red Hat's /mnt directory
Create a mount point in /mnt
su
root password
mkdir /mnt/win2k
Then temporarily mount it to test
mount -t ntfs -o ro /dev/hda2 /mnt/win2k
Then once your happy with it put an entry in /etc/fstab
/dev/hda2 /mnt/win2k ntfs ro
Re-post if there are any problems on the way - I've assumed you dont want to keep on swaping your hard drives around so a 2 drive dual boot would be appropriate.
Last edited by Skyline; 07-25-2003 at 07:16 PM.
|
|
|
07-25-2003, 10:46 PM
|
#3
|
Member
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445
Rep:
|
Skyline has given you the best way of having your Win2k and RH9 installations available when you want them. For now, if you're not interested in being able to boot into Win2k but just want to access your data on the 100GB partition, read on.
Open a console as root and enter the commands:
mkdir /mnt/win_d
chmod 777 /mnt/win_d
mount -t ntfs /dev/hdb2 mnt/win_d
You should then be able to access the data just like any other disk on your system. You can use any name you like for your Windows data partition, not just 'win_d' in this example. For instance, you could name it 'WinData', 'MyData', 'mydata', etc.
Keep in mind that because your Windows partition is NTFS, you will only be able to read from, not write to, the partition. This is because writing to NTFS is experimental at the moment and is not guaranteed to not trash your data.
|
|
|
07-26-2003, 06:41 PM
|
#4
|
Member
Registered: Jul 2003
Location: Surabaya - East Java, Indonesia
Distribution: Red Hat, Mandrake, Debian, Knoppix
Posts: 57
Rep:
|
I have another solution to this, but you have to install GRUB as the boot loader... in fact Red Hat uses GRUB as default.
Make your Linux drive as Primary Master, as you install Linux, and make your Win2k drive another, edit your /boot/grub/grub.conf, add the following lines...
title Win 2000
rootnoverify (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1
If you want to see NTFS partition in Linux, you can recompile the kernel with NTFS support checked, but since NTFS support is experimental, it strongly recomended that you leave it as read-only (no write support)...
|
|
|
07-28-2003, 11:41 AM
|
#5
|
Member
Registered: Jul 2003
Location: California, US
Distribution: SuSE 9.3 (so slick!), WinXP
Posts: 34
Original Poster
Rep:
|
Thanks!
I read what Skyline posted and began to follow his suggestions. I got to the point where he says:
You'll need to download a RPM for Red Hat to Read NTFS (or you could just create a FAT32 shared data partition)
and I had to stop and think about which I'd rather do... I would like to not have to download any mods for my kernel, so at this point I'm leaning towards transferring my data off of the 100GB partition, reformatting into FAT32 and putting my data back on. This seems like the most hassle-free and sure way of getting my data to be recognized by both Win2k and Red Hat 9. All I would then have to do is mount the drive in Red Hat 9. Would you all agree or am I overlooking something...?
Thanks again guys! You've all been a HUGE help!
-masterspud777
|
|
|
07-29-2003, 05:44 AM
|
#6
|
Member
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445
Rep:
|
I agree. You would be able to write to FAT32 from Linux to save data for use later in Windows, and vice versa; ie, transfer data both ways. With an NTFS partition, you would not have that flexibility; ie, transfer data only one way.
|
|
|
07-29-2003, 08:07 AM
|
#7
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Hi Masterspud
Your right - use a FAT32 shared data partition.
The idea would be to have a NTFS and FAT32 partition on your 1st hard drive ( primary master ) - the NTFS would be for your main Win2k install - the FAT32 would be for your shared data partition.
Then - on your 2nd hard drive, have your Red Hat install
|
|
|
07-29-2003, 04:10 PM
|
#8
|
Member
Registered: Jul 2003
Location: California, US
Distribution: SuSE 9.3 (so slick!), WinXP
Posts: 34
Original Poster
Rep:
|
Awesome! Sounds good. I will be back if I have any more questions
-masterspud777
|
|
|
All times are GMT -5. The time now is 08:26 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|