You are not logged in.

#1 2009-09-24 20:34:26

warnec
Member
From: Poland
Registered: 2009-06-22
Posts: 166

[SOLVED] Automount NTFS - what am I doing wrong?

Title says it all.

My fstab:

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

#Linux partitions
UUID=fea23491-917b-4d61-a904-9f4910cf3dc3 / ext3 defaults 0 0
UUID=830fd34f-0ab1-4864-9f2f-873d8938d117 swap swap defaults 0 0
UUID=579606c6-b07b-4d65-a97f-839096679e4e /home ext3 defaults 0 0

#Windows partitions

/dev/sda1    /mnt/Dysk-C          ntfs-3g    defaults  0 0 
/dev/sda5    /mnt/Dysk-D          ntfs-3g    defaults  0 0 
/dev/sda6    /mnt/Dysk-E          ntfs-3g    defaults  0 0 

none /proc/bus/usb usbfs auto,busgid=108,busmode=0775,devgid=108,devmode=0664 0 0

The last line is for VirtualBox USB devices. My NTFS partitions are simply not mounted. The /media/Dysk-* folders are empty. Simple "sudo ntfs-3d /dev/sda* /mnt/Dysk-*" fixes this, but I want to do it automatically.

Thanks in advance!

Last edited by warnec (2009-09-27 10:12:18)

Offline

#2 2009-09-24 20:57:37

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Automount NTFS - what am I doing wrong?

Dunno... mine mount automatically on boot

LABEL=Data    /media/Data        ntfs-3g defaults,noatime        0       0

I dunno if it matters, but try mounting to /media/Dysk-X for example?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2009-09-25 02:31:54

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [SOLVED] Automount NTFS - what am I doing wrong?

As long as the mount-points _exist_ - it doesn't matter what they are called (be it /mnt/Dysk-D or /media/disk or /mnt/sda5 or whatever)

You may want field #4 (defaults) of /etc/fstab to be: (for the ntfs-3g drives)
defaults,uid=000,gid=000,noatime

There are a couple more mount-options as well - can't remember them offhand ... just search the forum for ntfs-3g

Offline

#4 2009-09-25 03:35:55

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,544

Re: [SOLVED] Automount NTFS - what am I doing wrong?

The uid, gid, and noatime options are optional just to clarify for the OP.  They should _not_ impact whether the mount takes place.

OP, those /mnt/Dysk-* directories do exist, right?  Try 'mount /dev/sda1' (or whichever) after you've booted and see if it works like that.  If not, post the error message, and also try a full manual mount: 'mount -t ntfs-3g /dev/sda1 /mnt/Dysk-A' or such and report errors if any.

Last edited by Ranguvar (2009-09-25 03:37:07)

Offline

#5 2009-09-25 08:34:03

fijam
Member
Registered: 2009-02-03
Posts: 244
Website

Re: [SOLVED] Automount NTFS - what am I doing wrong?

Any clues in logs?

Offline

#6 2009-09-25 18:16:11

warnec
Member
From: Poland
Registered: 2009-06-22
Posts: 166

Re: [SOLVED] Automount NTFS - what am I doing wrong?

so, there are /dev/sda1, /dev/sda5 and /dev/sda6 files, and there exist corresponding /media/Dysk-C, /media/Dysk-D and /media/Dysk-E folders I like to mount them in. The folders exist, and as I said, are empty after booting the PC. Mounting with ntfs-3g like this:

[warnec@chakra ~]$ sudo ntfs-3g /dev/sda1 /media/Dysk-C
Hasło:

Works with no problem.

Last edited by warnec (2009-09-25 18:17:45)

Offline

#7 2009-09-25 19:13:01

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,544

Re: [SOLVED] Automount NTFS - what am I doing wrong?

Please try what I suggested, using those two mount invocations I mentioned.

Offline

#8 2009-09-25 20:47:51

warnec
Member
From: Poland
Registered: 2009-06-22
Posts: 166

Re: [SOLVED] Automount NTFS - what am I doing wrong?

As I said in my earlier post, manual mounting is working perfectly fine. No problems at all. The only thing not working is making it execute at the start of the system.

Offline

#9 2009-09-25 23:07:23

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,544

Re: [SOLVED] Automount NTFS - what am I doing wrong?

You mounted directly with ntfs-3g. I asked you to mount with the mount program, and try two seperate invocations of it.

Offline

#10 2009-09-26 10:08:29

warnec
Member
From: Poland
Registered: 2009-06-22
Posts: 166

Re: [SOLVED] Automount NTFS - what am I doing wrong?

Sorry for the confusion. The command I invoked:

sudo mount -t ntfs-3g /dev/sda1 /media/Dysk-C

Works with no problem.

Offline

#11 2009-09-27 10:11:55

warnec
Member
From: Poland
Registered: 2009-06-22
Posts: 166

Re: [SOLVED] Automount NTFS - what am I doing wrong?

Ok, solved. It's all because of my stupidity. I specified the /mnt/Dysk-* folders to mount in in fstab, while it should be /media/Dysk-*, since that's where I want to mount them in. Now works perfectly.


Sorry for taking your time.

Offline

Board footer

Powered by FluxBB