LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-13-2006, 08:51 AM   #1
kafnir
Member
 
Registered: Oct 2002
Location: USA
Distribution: Fedora and Ubuntu
Posts: 137

Rep: Reputation: 15
I want to access windows hard drive on linux


Hello everyone!
I have windows XP in one hard drive and Suse Linux on another hard drive. I want to know howto I access the file on the windows hard drive on Suse Linux. I would like it to be automatically mount after reboot.

thank you
 
Old 05-13-2006, 09:15 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
It's pretty easy to add a Windows drive to your /etc/fstab file. A line like this would do the trick:

/dev/hdXX /windows/mountpoint ntfs ro 1 0

You do need to replace /dev/hdXX with the actual device of your Windows partition and replace /windows/mountpoint with the actualy path you want Windows to be mounted to. Note that this will give you read-only access to the Windows partition. Writing to a NTFS drive is like playing with dynamite. Sooner or later it is going to go seriously wrong. If Linux needs to be able to write to the files, you're much better off setting up a FAT32 partition and sharing between Linux and Windows.
 
Old 05-13-2006, 09:22 AM   #3
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,217

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
If your windoze partitions are fat32, you can mount read and write them. If they are ntfs file system, you can mount and read only the files.

To mount the windoze drive, you need to edit the /etc/fstab file, and add an entry for each drive to mount. You need to make a mount point, use the mkdir command to do this. Once these things are done, on each boot the system should mount the file systems. Hare is a sample of my entries for fat32 file system.

Quote:
/dev/hda1 /mnt/win_c vfat umask=0,iocharset=iso8859-15,codepage=850 0 0
/dev/hda5 /mnt/win_d vfat umask=0,iocharset=iso8859-15,codepage=850 0 0
Note the field vfat. This is the file system type. You need to set that for what ever file system you are trying to mount.

As you add a line, no need to boot. Just use a mount command from the command line. If you have things set up correctly, the file system will be mounted, and you can use acces the files immediatley.

Post back if you need more guidance.
 
Old 05-13-2006, 02:27 PM   #4
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 38
It's probably already mounted :?
Type mount to see what's mounted.
 
Old 05-14-2006, 01:42 AM   #5
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Rep: Reputation: 31
Hi to all,

Try to use Captive..a great s/w for reading/writing to NTFS partitions..the support for NTFS in Linux kernel is pretty limited..the writes o NTFS are not that gud..

Captive, however, requires at least a 2.6.14 kernel.

For vfat partitions, you can just modify fstab as stated above and mount your windows partition.

Warm regards,
Visham
 
Old 05-14-2006, 11:30 AM   #6
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
Post

My pardon;
How about this :

http://uranus.it.swin.edu.au/~jn/linux/explore2fs.htm

Seems wonderfull.
 
Old 05-14-2006, 12:03 PM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by Bobymc
My pardon;
How about this :

http://uranus.it.swin.edu.au/~jn/linux/explore2fs.htm

Seems wonderfull.
That's for accessing Linux partitions under Windows and the OP wanted the opposite..
 
Old 05-15-2006, 06:10 AM   #8
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
Just offering accesories.

I imagine seeing in single drive is easy.
I also want to see linux partition recently but from window LAN.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux can't access my second hard drive Old Bill Linux - Software 1 03-16-2006 08:03 AM
hoe to access second hard drive in linux srnerkar1 Linux - Hardware 1 12-08-2005 05:24 AM
access linux hard drive from windows pcandpc Linux - Newbie 12 05-14-2005 04:41 PM
How do i access my windows Hard drive FireInTheDark Linux - Newbie 11 08-29-2004 03:48 PM
How do i access Windows (NTFS) hard drive with mandrake 9.1 WoodShaver Linux - Software 1 05-20-2004 08:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:54 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