
Hi everyone I have a question about drives being mounted automatically when Ubuntu (or any Linux system) boots. I have a 160 Gb drive (/dev/sda1) that I have manually mounted in my /usr/local directory. What I am asking is what would be the correct syntax for writing an entry in the /etc/fstab file that allows /dev/sda1 to be mounted when the computer boots. glenn(a)glenn-amd1:~/Desktop$ cat /etc/fstab # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # /dev/sdb5 UUID=4e473668-0492-4c4f-b96c-4a96aa93ac7d / ext3 relatime,errors=remount-ro 0 1 # /dev/sda1 UUID=b52f4246-04ea-4d35-b3b9-37a316709f81 /usr/local ext3 relatime 0 2 # /dev/sdb1 UUID=c6178b22-d682-4414-81ba-514c100ffe40 none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0 --------------------------------------------------------------------- I have manually mounted the drive: glenn(a)glenn-amd1:~/Desktop$ mount /dev/sdb5 on / type ext3 (rw,relatime,errors=remount-ro) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) /proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) varrun on /var/run type tmpfs (rw,nosuid,mode=0755) varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) fusectl on /sys/fs/fuse/connections type fusectl (rw) lrm on /lib/modules/2.6.27-7-generic/volatile type tmpfs (rw,mode=755) securityfs on /sys/kernel/security type securityfs (rw) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) gvfs-fuse-daemon on /home/glenn/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=glenn) /dev/sda1 on /usr/local type ext3 (rw,relatime) /dev/sdc1 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096) glenn(a)glenn-amd1:~/Desktop$ Thank you. Glenn.

Hi Glenn, The following page will help you with the correct options for fstab. Will Ubuntu specific, it can be readable applied to other Linux distros. https://help.ubuntu.com/community/Fstab -- simon 2009/1/3 Glenn Stuart Morrissey <gmorrissey(a)kol.co.nz>:
I have a question about drives being mounted automatically when Ubuntu (or any Linux system) boots. I have a 160 Gb drive (/dev/sda1) that I have manually mounted in my /usr/local directory. What I am asking is what would be the correct syntax for writing an entry in the /etc/fstab file that allows /dev/sda1 to be mounted when the computer boots.

I have edited my /etc/fstab table for the drive, but it is not allowing me to access the drive. Here is my fstab: glenn(a)glenn-amd1:/etc$ cat fstab # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # /dev/sdb5 UUID=4e473668-0492-4c4f-b96c-4a96aa93ac7d / ext3 relatime,errors=remount-ro 0 1 # /dev/sda1 UUID=b52f4246-04ea-4d35-b3b9-37a316709f81 /media/Data ext3 <----- relatime,errors=remount-rw 0 2 # /dev/sdb1 UUID=c6178b22-d682-4414-81ba-514c100ffe40 none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0 glenn(a)glenn-amd1:/etc$ I have created the Data folder in /media, when I attempt to access the drive from my places menu, it tells me I dont have permission to mount this drive.????And when I look in my Data folder, it is empty. Can anyone tell me what I have done wrong? Glenn.

2009/1/3 Glenn Stuart Morrissey <gmorrissey(a)kol.co.nz>:
I have edited my /etc/fstab table for the drive, but it is not allowing me to access the drive. Here is my fstab:
...
# /dev/sda1 UUID=b52f4246-04ea-4d35-b3b9-37a316709f81 /media/Data ext3 <----- relatime,errors=remount-rw 0 2 ... I have created the Data folder in /media, when I attempt to access the drive from my places menu, it tells me I dont have permission to mount this drive.????And when I look in my Data folder, it is empty. Can anyone tell me what I have done wrong?
You need the user option in the options part. i.e. UUID=b52f4246-04ea-4d35-b3b9-37a316709f81 /media/Data ext3 user,relatime,errors=remount-rw 0 2 HTH. -- simon
participants (2)
-
Glenn Stuart Morrissey
-
Simon Green