How to mount NTFS partition in Ubuntu

Status
Not open for further replies.

mehulved

18 Till I Die............
nitish_mythology said:
I hv jst installed Fc6, wll editing the fstab in the same way work!

wht dows umask men in this line!(umask=000 or umask=0222)
See this *en.wikipedia.org/wiki/Umask . It is a bit confusing but just read for basic understanding, if you understand then great. Also read about POSIX. Link is there on the page, it will be quite useful.
Also read man pages of mount and fstab. They are available on the net too *www.die.net/doc/linux/man/man8/mount.8.html , *www.tuxfiles.org/linuxhelp/fstab.html and many more links available from googling but better read the man pages on FC since you don't have a fast connection.
 

mak1012

Journeyman
hi when i installed ubutu it was only reading the ntfs then i installed some package to enable the write...it works fine..............now i'm facing the problem noether i'm able to read nor write. when i open sda1,sda2,sda4 and sda5 which is ntfs there is nothing in the folder ubutu is not able to read ne thing.
please give ne valid reason for this coz?
 

praka123

left this forum longback
u need to look for partns UUID's changed.look at the o/p of sudo fdisk -l and blkid command can give the UUID's of ur partns.edit /etc/fstab accordingly.else use the classic /dev/sdax in fstab.
 

mak1012

Journeyman
praka123 said:
u need to look for partns UUID's changed.look at the o/p of sudo fdisk -l and blkid command can give the UUID's of ur partns.edit /etc/fstab accordingly.else use the classic /dev/sdax in fstab.


i really dint understood wht u siad but when i did sudo fdisk -l i got this.

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/sda2 2551 5265 21808237+ f W95 Ext'd (LBA)
/dev/sda3 5906 7180 10241437+ 7 HPFS/NTFS
/dev/sda4 7181 9729 20474842+ 7 HPFS/NTFS
/dev/sda5 4476 5265 6345643+ 7 HPFS/NTFS
/dev/sda6 2551 4349 14450404+ 83 Linux
/dev/sda7 4350 4475 1012063+ 82 Linux swap / Solaris

Partition table entries are not in disk order

now tell me what to do?
Edit: now its working i think sudo fdisk -l did the magic.
 
Last edited:

mak1012

Journeyman
friends again my ntfs partitions are not in the place they disappeared... i tried every thing what i done before but i'm not able to gain it again.... please help i have all the data in those folders only.
 

praka123

left this forum longback
post the contents of fstab here

^post the contents of /etc/fstab here.If ur novice,I'll ask u paste the o/p of below commands from a terminal(in menu Applications>Accessories>Terminal):
type below command each and press enter and copy the output and paste here.
Code:
cat /etc/fstab

Code:
 blkid

just copy the o/p from the terminal by selecting with mouse right click copy and paste here.
 

faraaz

Evil Genius
You know, this may be a little late but if the OP has an internet connection and Ubuntu, all he had to do was:

sudo apt-get install ntfs-3g ntfs-config

Hmm...
 

mak1012

Journeyman
this is what i get after cat /etc/fstab

Code:
root@mak:/home/mukesh# cat /etc/fstab
# /etc/fstab: static file system information.
#
#  -- This file has been automaticly generated by ntfs-config -- 
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

proc /proc proc defaults 0 0
# Entry for /dev/sda6 :
UUID=c2648606-56f2-44b0-9741-9c2a0de549dc / ext3 defaults,errors=remount-ro 0 1
# Entry for /dev/sda1 :
UUID=9698CB5998CB3691 /media/sda1 ntfs-3g defaults,locale=en_IN 0 1
# Entry for /dev/sda3 :
UUID=E0C0DF7FC0DF59FC /media/sda3 ntfs-3g defaults,locale=en_IN 0 1
# Entry for /dev/sda4 :
UUID=4CC86B13C86AFA9A /media/sda4 ntfs-3g defaults,locale=en_IN 0 1
# Entry for /dev/sda5 :
UUID=709C8D5C9C8D1E2A /media/sda5 ntfs-3g defaults,locale=en_IN 0 1
# Entry for /dev/sda7 :
UUID=92163ea2-326d-4e7c-b290-24ddcd12be33 none swap sw 0 0
/dev/scd1 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/scd0 /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0



and for blkid
Code:
root@mak:/home/mukesh# blkid
/dev/sda1: TYPE="ntfs" 
/dev/sda3: TYPE="ntfs" 
/dev/sda4: TYPE="ntfs" 
/dev/sda5: TYPE="ntfs" 
/dev/sda7: UUID="92163ea2-326d-4e7c-b290-24ddcd12be33" TYPE="swap" 
/dev/sda6: UUID="c2648606-56f2-44b0-9741-9c2a0de549dc" SEC_TYPE="ext2" TYPE="ext3" 
root@mak:/home/mukesh#


You know, this may be a little late but if the OP has an internet connection and Ubuntu, all he had to do was:

sudo apt-get install ntfs-3g ntfs-config

Hmm...

i have ntfs config tool installed...
 

praka123

left this forum longback
^seems like u have formatted/moved ur ntfs partns :? so uuid set by ubuntu may be lost.so no probs.do as follows:
edit ur /etc/fstab to look as follows for sda1,sda3,sda4,sda5(ur ntfs partns) ONLY:
remaining entries shud be the same.
for editing u need admin(root) access for that press ALT+F2 to get "run" dialogue.inside enter "gksudo gedit /etc/fstab" -ofcorz without quote.edit,save and exit the editor.
Code:
# Entry for /dev/sda1 :
[B]/dev/sda1[/B] /media/sda1 ntfs-3g defaults,locale=en_IN 0 1
# Entry for /dev/sda3 :
[B]/dev/sda3[/B] /media/sda3 ntfs-3g defaults,locale=en_IN 0 1
# Entry for /dev/sda4 :
[B]/dev/sda4[/B] /media/sda4 ntfs-3g defaults,locale=en_IN 0 1
# Entry for /dev/sda5 :
[B]/dev/sda5[/B] /media/sda5 ntfs-3g defaults,locale=en_IN 0 1
now after saved and exit editor,try below command and look inside ur ntfs mount dirs for whether mounted
Code:
sudo mount -a
^this will solve ur problem of mounting ntfs at boot.though u can post here the o/p of:
Code:
ls /dev/disk/by-uuid -lh
Also looking at ur cdrom drives,I will recommend u get a latest kernel for ur architecture(linux-image-2.6.20-16-386 for intel) u can search that using synaptic package manager after pressing "reload" while internet is ON.
 

mak1012

Journeyman
praka123 said:
now after saved and exit editor,try below command and look inside ur ntfs mount dirs for whether mounted
Code:
sudo mount -a

after giving a mount -a at terminal i got this
Code:
root@mak:/home/mukesh# mount -a
fusermount: mount failed: Device or resource busy
FUSE mount point creation failed
Unmounting /dev/disk/by-uuid/9698CB5998CB3691 (documents)
fusermount: mount failed: Device or resource busy
FUSE mount point creation failed
Unmounting /dev/disk/by-uuid/E0C0DF7FC0DF59FC (Windows)
fusermount: mount failed: Device or resource busy
FUSE mount point creation failed
Unmounting /dev/disk/by-uuid/4CC86B13C86AFA9A (Entertainment)
fusermount: mount failed: Device or resource busy
FUSE mount point creation failed
Unmounting /dev/disk/by-uuid/709C8D5C9C8D1E2A (extended)
root@mak:/home/mukesh#

here as you can see every thing is failed but my partitions are working fine...i have installed 'NTFS config tool' it is hapning because of this?

Also looking at ur cdrom drives,I will recommend u get a latest kernel for ur architecture(linux-image-2.6.20-16-386 for intel) u can search that using synaptic package manager after pressing "reload" while internet is ON.

i'll upgrade when i'll have enough download balance right now im strugling with download limit.
 
Last edited:
OP
Desmond

Desmond

Destroy Erase Improve
Staff member
Admin
I have now got Ubuntu 7.04 FF release and am quite happy with it. It reads NTFS with no sweat.
 

faraaz

Evil Genius
Nice! Remember, you can't WRITE to an NTFS partition however, unless you do:

sudo apt-get update && apt-get install ntfs-3g ntfs-config
 
Status
Not open for further replies.
Top Bottom