Thread: automatically mount partitions at boot
i have been using ubuntu couple of years , use 10.04. think it's brilliant though i'm not doing stuff in terminal.
have 2 sata drives. first has /, swap , partition label "database". second has 3 partitions labeled "video", "photos" , "documents". labeled partitions ext3.
have mount labeled partitions manually after booting up. i've wanted ages, , tried time ago gave up, have them mount automatically when boot up.
have tried editing fstab according post saw automatically mounting nfts partitions, didn't work (it did, think).
when run following commands in terminal:
nevil@ubuntu1:~$ mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/nevil/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=nevil)
/dev/sdc1 on /media/wd passport type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000, shortname=mixed,dmask=0077,utf8=1,flush)
/dev/sda2 on /media/database type ext3 (rw,nosuid,nodev,uhelper=udisks)
nevil@ubuntu1:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# use 'blkid -o value -s uuid' print universally unique identifier
# device; may used uuid= more robust way name
# devices works if disks added , removed. see fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / on /dev/sda1 during installation
uuid=6149e2dd-4bad-4984-a967-a891e15cfac6 / ext3 errors=remount-ro 0 1
# swap on /dev/sda3 during installation
uuid=94e9f234-0c46-4380-8d56-90d768386602 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
nevil@ubuntu1:~$ sudo blkid -c /dev/null
/dev/sda1: uuid="6149e2dd-4bad-4984-a967-a891e15cfac6" type="ext3"
/dev/sda2: label="database" uuid="76df9e85-3238-4da7-959b-e217524bc37d" sec_type="ext2" type="ext3"
/dev/sda3: uuid="94e9f234-0c46-4380-8d56-90d768386602" type="swap"
/dev/sdb1: label="video" uuid="639e9e60-8c6b-4d37-8a9e-45ea01c60416" sec_type="ext2" type="ext3"
/dev/sdb2: label="photos" uuid="91459d49-4974-4e61-bcbe-9876a673d780" type="ext3"
/dev/sdb3: label="documents" uuid="b4b6c5ca-64db-47ea-afbd-1098e4889a8e" type="ext3"
/dev/sdc1: label="wd passport" uuid="692b-6507" type="vfat"
nevil@ubuntu1:~$
assume need edit fstab uuids of partitions , instructions mount automatically? tell me how this?
many thanks
nevil
[1] make permanent mount points these partitions:
[2] add following lines end of /etc/fstab:code:sudo mkdir /media/database sudo mkdir /media/video sudo mkdir /media/photos sudo mkdir /media/documents
[3] save fstab , in terminal run following command test errors , mount new partitions:code:label=database /media/database ext3 defaults,noatime 0 2 label=video /media/video ext3 defaults,noatime 0 2 label=photos /media/photos ext3 defaults,noatime 0 2 label=documents /media/documents ext3 defaults,noatime 0 2
if comes errors post them. if comes prompt ran successfully. see if mount points have data expect.code:sudo mount -a
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] automatically mount partitions at boot
Ubuntu
Comments
Post a Comment