How To Automatically Mount A Disk At Boot

Asked by Morganac

I Was Just Wondering If There Was A Way To Have A Second Hard Disk Be Automatically Mounted At Start-Up, Rather Than Having To Mount It Manually? Any Help With This Issue Would Be Greatly Appreciated, It Gets Rather Annoying Having To Mount The Drive Every Time The Computer Is Re-Booted.

Linux Version: Ubuntu 10.04 LTS (Lucid Lynx)

Hard Disk Is: 60.0 GB, Formatted As EXT4

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu yelp Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ryan Dwyer (ryandwyer) said :
#1

Sure is, in /etc/fstab. I've done the same thing. Here's the line from my fstab:

UUID=604248dd-56e2-4c2d-a4ed-0b5b5c095673 /media/Storage ext4 defaults 0 0

You can get your uuid by running: ls -l /dev/disk/by-uuid

Make sure your mount point exists and is writeable by yourself.

Revision history for this message
DarkRedman (darkredman-deactivatedaccount) said :
#2

Does this following line is correct ?

/dev/sdb3 /media/Documents ntfs defaults 0 0

And what means the two zeros ?

Revision history for this message
Gilbert Mendoza (gmendoza) said :
#3

Looks okay, but you should change "ntfs" to ntfs-3g.

Also, have a look at
https://help.ubuntu.com/community/Fstab

The last two zeros represent dump (fs_freq) and pass (fs_passno) values. Read the last couple paragraphs of the fstab man page.

Revision history for this message
DarkRedman (darkredman-deactivatedaccount) said :
#4

Thank you :)

Can you help with this problem?

Provide an answer of your own, or ask Morganac for more information if necessary.

To post a message you must log in.