LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Automount partition at boot (http://www.linuxquestions.org/questions/linux-hardware-18/automount-partition-at-boot-716677/)

Ragnarok Warrior 04-03-2009 06:10 PM

Automount partition at boot
 
I'm sure this question has been asked (and answered) a thousand times before, but my searches come up nil. I need my storage partition to be mounted at boot, with user read/write permissions. The storage partition is hda5.

fstab:

# Pluggable devices are handled by uDev, they are not in fstab
/dev/hda1 / ext3 defaults,noatime 1 1
/dev/hda6 swap swap sw,pri=1 0 0
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0622 0 0
# Dynamic entries below
/dev/hda5 /mnt/hda5 ntfs-3g noauto,users,gid=users,dmask=002,fmask=113,relatime 0 0
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/hdb /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0

rabbit2345 04-03-2009 07:33 PM

Quote:

# Pluggable devices are handled by uDev, they are not in fstab
/dev/hda1 / ext3 defaults,noatime 1 1
/dev/hda6 swap swap sw,pri=1 0 0
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0622 0 0
# Dynamic entries below
/dev/hda5 /mnt/hda5 ntfs-3g noauto,users,gid=users,dmask=002,fmask=113,relatime 0 0
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/hdb /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
You need to remove the "noauto" tag from hda5 line.

Code:

/dev/hda5 /mnt/hda5 ntfs-3g users,gid=users,dmask=002,fmask=113,relatime 0 0

rabbit2345

Junior Hacker 04-04-2009 03:16 AM

The /mnt/hda5 directory also has to exist, it will not be created dynamically. And I normally have my line setup as such:
Code:

/dev/hda5 /mnt/hda5 ntfs-3g defaults 0 0

Ragnarok Warrior 04-06-2009 04:14 PM

Thanks, I new it would end up being something stupid and intuitive.


All times are GMT -5. The time now is 05:08 AM.