LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-14-2004, 09:01 PM   #1
Burquedout
LQ Newbie
 
Registered: Apr 2004
Distribution: Red Hat 9
Posts: 4

Rep: Reputation: 0
Accessing Windows Drive


Hi I Am VERY New to linux
I Use Red Hat 9
I have 2 hard drives
the first has Win XP and is in two partitions
all my songs/videos/other media are on the second partition
my second drive is only a few gigs and that has linux on it
i want to be able to use the stuff from my 2nd windows partition in linux

Please help if i cant figure this out i might give up on linux
Linux is harder to use than windows in my experience but i dont want to miss out on the power or the FREEDOM
 
Old 04-14-2004, 09:03 PM   #2
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 30
Is the windows drive FAT or NTFS?
 
Old 04-14-2004, 09:28 PM   #3
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
most likely ntfs.

go here to get a ntfs read support module for your kernel version.

http://linux-ntfs.sourceforge.net/rpm/redhat9.html

look at the versions and find your kernel version, click either the i386 or i686 link (you should be fine with the i686 module and download the rpm. click on the rpm to install it.

then edit your /etc/fstab file. you'll need to know your /dev/hdX for your partitions. you can get this from the /sbin/fdisk -l command. the line in fstab that you'll want to add would look something like this for, let's say, your windows c:\ drive.

Code:
/dev/hda1   /mnt/winC   ntfs   auto,umask=0222,exec,ro 0 0
the first column is the partition's device label (/dev/hda1).
the second column is the mount point for the device (/mnt/winC). you need to make sure this directory exists before you try mounting the partition
the third column (ntfs) is the filesystem.
the last column is options. auto will mount this partition when you boot up linux. the umask option sets the permissions for this partition as read/exec for all users. ntfs write support can be dangerous, so it's better to not set write permissions for your windows ntfs partitions.
save your changes. i'm assuming you know that you need to have root access to do these changes.

to mount these drives immediately, use the mount command -> man mount to read about the mount command.

the command you want to use to mount this example would be:
mount -a /dev/hda1

now you can create hard drive icons on your desktop. some newer distros may automatically place hard drive icons (of devices that are mounted) automatically. if not, find out how to manually add hard drive icons to your desktop. www.google.com/linux would be good for that.

Last edited by megaspaz; 04-14-2004 at 09:30 PM.
 
Old 04-14-2004, 09:29 PM   #4
blinux1
Member
 
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144

Rep: Reputation: 15
partitions

[URL=http://www.linuxquestions.org/questions/showthread.php?threadid=166942]

First there may be some background information in that thread. I'm guessing you are using partition magic and have NTFS on the second windoze partition. Your first windoze partition is a primary partition "suitable for OS" your second is a logical partition that is really an extension of the first. These partitions are listed as devices in the /dev/ directory, and i can't tell you what they are--probably something like hda1 for the primary. What you need to do is figure out these device names, and mount them onto a portion of your linux filetree...perhaps at a point like /mnt/windows (you'll have to create it). hope that helps.
 
Old 04-14-2004, 09:29 PM   #5
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 30
as you can tell, megaspaz is far more dedicated than I am tonight......
 
Old 04-18-2004, 12:30 PM   #6
Burquedout
LQ Newbie
 
Registered: Apr 2004
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
my drive is ntfs
i am running an amd athlon xp 2200 processor
i am attempting right now thanks for the help
 
Old 04-18-2004, 12:56 PM   #7
Burquedout
LQ Newbie
 
Registered: Apr 2004
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
i tried but i can only get my windows partition with windows directory not my seond parition
i cant figure out the drive name of my second partition
i used the partition creator windows has when i installed windows to create the second partition
 
Old 04-18-2004, 01:07 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,430

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
It is probably /dev/hda5 but to see all of your partitions, as root:

fdisk -l (thats a small L)
 
Old 04-24-2004, 12:41 PM   #9
Burquedout
LQ Newbie
 
Registered: Apr 2004
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
it worked with hda5 thanks for the help
 
  


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
Accessing Windows hard Drive nikko05 Linux - Hardware 10 12-20-2005 11:58 AM
Software for accessing my LINUX drive from WINDOWS mani_iips Linux - Software 6 08-11-2005 02:12 PM
New to Linux... Accessing Windows Drive jstnhickey Mandriva 2 01-01-2005 03:37 AM
Accessing windows hard drive eastsidecrew Linux - Newbie 4 04-20-2004 01:47 PM
Accessing Windows XP Drive JamboUK Linux - Newbie 4 04-25-2003 01:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration