View Full Version : [ubuntu] setting ubuntu to auto-mount storage drives
July 28th, 2008, 05:57 PM
I have a storage drive and a storage partition on my Ubuntu Hardy setup, but when my computer starts up, i have to manually mount these drives. How could i set up Ubuntu to automatically mount these drives at startup?
July 28th, 2008, 06:06 PM
you can add a line to your fstab file. Post the result of this
also what kind of drive it the one you want to auto-mount (ide, sata?)
July 28th, 2008, 06:13 PM
cat /etc/fstab results:
# /etc/fstab: static file system information.
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
UUID=1c515482-7ef0-4040-859e-983644f3a828 / ext3 relatime,errors=remount-ro 0 1
UUID=c935e399-2d63-4930-be0f-d6b5db2f2e3f none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/scd1 /media/cdrom1 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
the drives are IDE drives
July 28th, 2008, 06:18 PM
Ok then add this file to that file
/dev/sdb1 /MOUNTPOINT ext3 defaults 0 0
change the MOUNTPOINT to where you want the drive to show up.
This is if you want the first partition on your second IDE drive to be mounted. Tell me what drives and partitions you want to have mounted and I can modify it to fit your needs. Also I will need to know what filesystems they use.
July 28th, 2008, 06:26 PM
See also :
How to fstab - Ubuntu Forums (http://ubuntuforums.org/showthread.php?&t=283131)
Please ask if you are having problems.
July 28th, 2008, 06:39 PM
I have a physical 80 gig IDE drive and a 150 gig partition from my main hard drive (also IDE). I ran the diskmounter script found in the How To Fstab link, but it only auto mounted my 80 gig.
The filesystem for the 150 i need to mount is ext3.
July 28th, 2008, 07:02 PM
You need to add an entry (manually) to fstab.
To see your partitions :
sudo fdisk -l
July 28th, 2008, 07:15 PM
ok, the drive that i need to be mounted is sda3 and has an ext3 filesystem. when i open up
sudo gedit /etc/fstab, what do i need to add to that file to get my sda3 partition to be automatically mounted?
July 28th, 2008, 07:20 PM
The link I gave you goes through fstab
device mount_point file_system options 0 0
so, all you need is a mount point ...
/dev/sda3 <mount_point> ext3 defaults 0 0
July 28th, 2008, 08:53 PM
I tried editing fstab and adding this line to the end of it:
/dev/sda3 /media/sda3 ext3 defaults 0 0
I restarted my computer and my drive is unmounted.
July 28th, 2008, 10:08 PM
does the mount point exist ?
sudo mkdir /media/sda3
If so, change "defaults" to "users,auto"
July 29th, 2008, 03:48 AM
Thanks, worked like a charm.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.