PDA

View Full Version : [ubuntu] Mounting and linking question



sionseth
June 27th, 2009, 03:37 PM
Hi

I like to mount a partition automaticly when Ubuntu starts.
And if possible have a map/directory in my home dir that's linked to it.
how can i make this possible?

Thanks,
SionSeth

swisstone198
June 27th, 2009, 03:41 PM
you can mount the partition by editing /etc/fstab and adding a line similar to

/dev/sda2 /home/(yourname)/mountpoint ext3 defaults 0 0

if partition is ntfs add line

/dev/sda2 /home/(yourname)/mountpoint ntfs-3g defaults 0 0

sisco311
June 27th, 2009, 04:07 PM
Hi

I like to mount a partition automaticly when Ubuntu starts.

GUI Fstab Editing with PySDM


And if possible have a map/directory in my home dir that's linked to it.
how can i make this possible?



you can mount the partition directly in your home directory;


you can mount it in /media or /mnt and create symlink to it:

ln -s -T /media/mount-point /home/username/name


you can mount it in /media or /mnt and bind it:

create a directory in your home dir:

mkdir /home/username/name

and append the /etc/fstab file with something like:

/media/mount-point /home/username/name auto bind

in order to edit the file type:

gksu gedit /etc/fstabin a terminl.

sionseth
June 27th, 2009, 07:05 PM
Thanks sisco311,

It worked,

I used your bind method! :D

Thanks.