Sunday, November 28, 2010

How to auto mount a partition at startup

To auto mount a partition at startup follow these simple commands
To discover informations about your partition type
sudo blkid

It should look like this
/dev/sda1: LABEL="Riservato per il sistema" UUID="52BE8C27BE8C0627" TYPE="ntfs"
/dev/sda2: UUID="18449D07449CE8B0" TYPE="ntfs"
/dev/sda4: UUID="f43825c2-2752-4697-b813-c734761ee5b2" TYPE="ext4"
/dev/sda5: UUID="ac877bdc-9e38-4808-8b98-804c0753c61d" TYPE="swap"

Now edit the file fstab
sudo gedit /etc/fstab

Add a line with the new informations for example
UUID=123456 /media/123456 ntfs defaults 0 0

That's it

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.