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. |
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 See the man mount page for an explanation on the other options. |
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
|
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).
|
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 |
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 Code:
mount -t ntfs-3g /dev/sda2 /windows Code:
mount -t vfat /dev/sda2 /windows Code:
mount -o rw -t vfat /dev/sda2 /media/volume1 |
All times are GMT -5. The time now is 05:41 AM. |