Mounting NTFS Drive

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
amaltos1
Posts: 7
Joined: 17. May 2010, 03:37

Mounting NTFS Drive

Post by amaltos1 »

I've taken what i could out of similar post about 2nd NTFS drive and here's what i got.

fdisk -l

Disk /dev/sda: 36.7 GB, 36703918080 bytes
255 heads, 63 sectors/track, 4462 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x713979fd

Device Boot Start End Blocks Id System
/dev/sda1 * 1 765 6144831 83 Linux
/dev/sda2 766 893 1028160 82 Linux swap
/dev/sda3 894 4462 28667992+ 83 Linux

Disk /dev/sdc: 36.7 GB, 36703918080 bytes
255 heads, 63 sectors/track, 4462 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x71397a00

Device Boot Start End Blocks Id System
/dev/sdc1 1 4462 35840983+ 42 SFS

This is What i've done so far

1. # sudo mkdir /media/Data
2. # mount /dev/sdc1 /media/Data
3.Added to FSTAB file # UUID=EC701F47701F17C2 /media/Data ntfs-3g users,rw,utf8,shortname=mixed umask=0 0 0

I cant see Data drive in File Manager but if i open file from a program like GIMP or Exaile i can see it and when i select it i get Error message's that states the following>

{mntent}:warning:no final newline at end of /etc/fstab
{mntent}:line 9 in /etc/fstab is bad
mount:can't find /media/Data in /etc/fstab or /etc/mtab

Any ideals what my FSTAB file line should be?
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Mounting NTFS Drive

Post by Shador »

amaltos1 wrote:{mntent}:warning:no final newline at end of /etc/fstab
{mntent}:line 9 in /etc/fstab is bad
amaltos1 wrote:UUID=EC701F47701F17C2 /media/Data ntfs-3g users,rw,utf8,shortname=mixed,umask=0 0 0
Image
amaltos1
Posts: 7
Joined: 17. May 2010, 03:37

Re: Mounting NTFS Drive

Post by amaltos1 »

I changed my fstab file not using UUID or sdc1 since the whole drive is one partition and found out that i had to hit Enter at end of line before saving thus eliminating Error:
{mntent}:warning:no final newline at end of /etc/fsta

then mounted using #mount -a /dev/sdc1 /media/Data

without Error so this was my final working line

/dev/sdc /media/Data ntfs-3g users,rw,utf8,shortname=mixed umask=0000
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Mounting NTFS Drive

Post by Shador »

You could keep the UUID in, but you would need to mount only by mountpoint name then, e.g.:

Code: Select all

mount /mnt/mydata
Image
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: Mounting NTFS Drive

Post by JRD »

amaltos1 wrote: without Error so this was my final working line

/dev/sdc /media/Data ntfs-3g users,rw,utf8,shortname=mixed umask=0000
A coma (,) is missing before umask option. There must be no space. It's "shortname=mixed,umask=0000" not with a space. Shador pointed this to you already.
Image
amaltos1
Posts: 7
Joined: 17. May 2010, 03:37

Re: Mounting NTFS Drive

Post by amaltos1 »

Thanks JRD hadn't noticed the red coma i thought he was repeating my info back.
i will put it in , but the mount is working with full RW permissions for all users.

Thanks Shador i missed what you did in the line.

Now on to SMB Sharing my second drive I'm sure I will have post related to that soon.
Post Reply