LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-30-2007, 05:09 AM   #1
satyalinux
LQ Newbie
 
Registered: Jun 2007
Location: Hyderabad
Posts: 1

Rep: Reputation: 0
how to mount windows file system (NTFS) to linux


hello,

any body could tell. How to mount the windows file system that NTFS oR FAT to linux.
 
Old 06-30-2007, 05:34 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
I just mounted my windows partition this way:
sudo mkdir /mnt/windows
sudo mount -t ntfs /dev/hda1 /mnt/windows/ -o ro,noexec,nosuid,nodev,uid=jschiwal
Use the right device and your own username. The last part will give you access.

This is the /etc/fstab entry I use for a usb pendrive:
Code:
UID=3B69-1AFD /mnt/cr256 vfat rw,nosuid,nodev,noatime,noauto,flush,user,uid=jschiwal,utf8,shortname=lower,fmask=177,dmask=077
Being an external drive, I used the noauto option. The user option allows me to mount it without begin root.

See the man mount page for an explanation on the other options.

Last edited by jschiwal; 06-30-2007 at 05:23 PM. Reason: Fixed typo.
 
Old 06-30-2007, 08:42 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 06-30-2007, 09:20 AM   #4
Setlew
LQ Newbie
 
Registered: Jun 2007
Distribution: PCLinuxOS 2007
Posts: 23

Rep: Reputation: 15
Just a P.S. to jschiwal's post: the /etc/fstab entry will make the Linux system aware of the NTFS/FAT filesystem upon bootup. This is the way to go if you want to be able to access it every time you use Linux (without the 'noauto' option).
 
Old 07-01-2007, 11:20 AM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
All of my Linux distributions mount my USB pen drives automatically without that complicated line in /etc/fstab that jschiwal has in his/hers /etc/fstab, actually, my /etc/fstab in all my distributions do not have an entry for USB devices, sort of a hotplug thing.
As far as mounting an ntfs file system, I install ntfs-3g and add a line to /etc/fstab like this if the ntfs partition is /dev/sda2 after making a mount directory called /windows for the partition:
Code:
/dev/sda2     /windows      ntfs-3g      default     0       0
Not only can I mount a ntfs partition with this, I can also write to it.
 
Old 07-01-2007, 11:28 AM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
Of course, if you do not want it mounted automatically you can just issue this command to mount it in read only:
Code:
mount -t ntfs /dev/sda2 /windows
Or, if you install ntfs-3g for read write access:
Code:
mount -t ntfs-3g /dev/sda2 /windows
Or, if it is a Fat32 partition, to mount it manually:
Code:
mount -t vfat /dev/sda2 /windows
To mount a USB Fat32 partition in read write mode where the system has it in the file system as /media/volume1:
Code:
mount -o rw -t vfat /dev/sda2 /media/volume1

Last edited by Junior Hacker; 07-01-2007 at 11:33 AM.
 
  


Reply

Tags
ntfs


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
How to mount ntfs file system in linux computer rahulrawat Red Hat 9 01-13-2006 01:01 PM
how do i mount a ntfs file system with fedora core 1 redhat linux hackman__007 Linux - Newbie 7 09-06-2004 02:29 AM
How do I Mount a Windows NTFS file system explorer Linux - Networking 15 05-06-2004 08:01 PM
Can We Mount NTFS Windows file System from linux gautam_iiith Linux - General 6 10-23-2003 06:47 PM
How can I nfs mount an NTFS file system on my linux server jj4broder Linux - Networking 4 09-30-2003 02:03 PM


All times are GMT -5. The time now is 04:32 AM.

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