PDA

View Full Version : [ubuntu] Automount Partition



fred0843
April 27th, 2008, 12:32 PM
Just started using Ubuntu (Harty 8.04)I have two data Partitions (ext3)I would like to mount on startup.What do I need to copy to fstab to do this ?

Pumalite
April 27th, 2008, 04:38 PM
Post:
sudo fdisk -l
blkid

speedgator
May 16th, 2008, 04:52 AM
I'd like to revive this thread since it's the same thing I'm trying to do.

fstab:

# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
/host/ubuntu/disks/root.disk / ext3 loop,errors=remount-ro 0 1
/host/ubuntu/disks/boot /boot none bind 0 0
/host/ubuntu/disks/swap.disk none swap loop,sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/sda1 /media/host ntfs-3g defaults,locale=en_US.UTF-8 0 0

sudo fdisk -l

speed@speed-laptop:~$ sudo fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd331d331

Device Boot Start End Blocks Id System
/dev/sda1 * 1 5737 46082421 7 HPFS/NTFS
/dev/sda2 5738 9729 32065740 83 Linux

Thanks in advance.

iaculallad
May 16th, 2008, 05:03 AM
Open you're fstab file and change the mount point to any directory available in your /media and then input the command in the terminal to be automounted on startup: sudo mount -a

/dev/hda1 /media/drive ext3 defaults 0 1

speedgator
May 16th, 2008, 07:00 AM
I found it after some searching, thanks.