LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-27-2003, 10:10 AM   #1
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Rep: Reputation: 30
Question How to access windows partition in linux??


Im currently dual booting Red Hat 9 and Windows XP, Is there anyway that I can access /dev/hda1 (my windows partition) in linux so I can access my files in windows while i'm in linux???
 
Old 04-27-2003, 10:14 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
please search this site for 1,000 exact same questions and answers
 
Old 04-27-2003, 02:31 PM   #3
Anmar
Member
 
Registered: Mar 2003
Location: Earthan
Distribution: UBUNTU | Linux
Posts: 213

Rep: Reputation: 30
Hi guys, I found how to automount the drive of windows in order to use
files from Window$ partition.

Let's say you have windows on your C Drive partition, this should be
something like /dev/hda 1in Linux. Usually you had to open a terminal
and type:

su

mount -t vfat /dev/hda 1/mnt/WinXP

assuming you already have a folder named WinXP under yout /mnt folder.
The drive will not be automounted the next time you reboot your machine.
Thus you have to automount it. Simply you can do this:
first open the file /etc/fstab in your favorite text editor, for
example:

gedit /etc/fstab

you will see a list of mounts, just add the following line (REMEMBER TO
CHANGE THE NAMES ACCORDING TO YOUR SETTINGS) to that file

/dev/hda 1/mnt/WinXP vfat iocharset=iso8859-1

If it didn't mount it directly, then press the CTRL+ALT+Backspace to
restart the X Session and then login back again and you should find it
mounted automatically for you

Happy Linuxing
 
Old 04-27-2003, 08:51 PM   #4
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
You'll need to go here if you're using RedHat and an NTFS partition of XP. NTFS support was compiled into the kernel but the module was left out for legal reasons. I assumce since RedHat 8.0 was missing the module, 9.0 is missing it too.

http://linux-ntfs.sourceforge.net/info/redhat.html

Good Luck.

BTW. It's safe to mount NTFS as read only. Read/write can be a very, very, very bad thing.
 
Old 04-28-2003, 08:45 AM   #5
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Original Poster
Rep: Reputation: 30
ei, thanx for d info Anmar

 
Old 04-28-2003, 12:57 PM   #6
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Original Poster
Rep: Reputation: 30
[QUOTE]Originally posted by Anmar


gedit /etc/fstab

you will see a list of mounts, just add the following line (REMEMBER TO
CHANGE THE NAMES ACCORDING TO YOUR SETTINGS) to that file

/dev/hda 1/mnt/WinXP vfat iocharset=iso8859-1


I tried this but theres an error on startup saying something like "vfat does not exist" how can i fix this problem?? I am able to mount though when i type:
su
mount -t vfat /dev/hda1 /mnt/winxp
cd mnt/winxp
ls

can anyone tell me whats the problem or what i'm dong wrong??

Last edited by jt1020; 04-28-2003 at 01:02 PM.
 
Old 04-29-2003, 05:49 AM   #7
totalnuke
LQ Newbie
 
Registered: Jan 2003
Location: New York City (I think you know this one)
Distribution: RH, ManDrake
Posts: 6

Rep: Reputation: 0
you have to know which partition you are mounting and mount point "folder" has to be existing.

when I mount windowz C drive I do this :

mount -t vfat /dev/hdc1 /dosc
 
Old 04-29-2003, 10:30 AM   #8
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Original Poster
Rep: Reputation: 30
I know, I already have a mnt folder "winxp", i can mount my drive c partition its just that i'm having problems when i'm trying to automount it
 
Old 05-01-2003, 02:06 PM   #9
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
Quote:
I tried this but theres an error on startup saying something like "vfat does not exist"
Ok.. I think you're having problems because you're not using FAT32 on your XP partition. You're probably using NTFS. The only way you would be using FAT32, hence vfat, is if you reinstalled and reformatted your PC to use FAT32. The link I posted above has step by step instructions on how to automount /dev/hd(windows) when booting Red Hat 9.0.

Your mount command should probably look something like this.

mount -t ntfs /dev/hd(windows)

Oops... never mind... I just read your above post and since you can mount using -t vfat I guess you are FAT32. Here is my /etc/fstab line that autmounts my windows drive. I'm also FAT32.

/dev/hda(windows) /mnt/windows vfat rw,nouser,auto,uid=500,gid=500 0 0

Last edited by rmartine; 05-01-2003 at 02:11 PM.
 
Old 10-06-2003, 02:06 AM   #10
Anmar
Member
 
Registered: Mar 2003
Location: Earthan
Distribution: UBUNTU | Linux
Posts: 213

Rep: Reputation: 30
Forgot to say welcome jt1020
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
access windows partition from linux on my lan ALInux Linux - Networking 7 01-12-2009 12:11 AM
How can I access files in my Windows 98 partition from my Linux partition, /w BASH? Fabyfakid Linux - Newbie 4 09-18-2004 12:05 AM
Can I access my Windows partition from DamnSmall Linux LinuxSeeker DamnSmallLinux 6 03-18-2004 07:25 AM
Windows to access my Linux partition? Culbert Linux - General 8 09-07-2003 05:49 PM
Access a Windows Partition in Linux izibo Linux - Software 12 07-12-2003 02:51 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration