LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to auto-mount partition in Debian (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-auto-mount-partition-in-debian-4175495066/)

bob800 02-15-2014 07:26 PM

how to auto-mount partition in Debian
 
I have seperate partitions for data and OS files, so when I boot into linux, I'm required to provide my admin password if I want to mount the data partition.

Is it possible to automount the partition upon boot? I'm using Debian 7 Wheezy, by the way.

Thanks,

bob800

frankbell 02-15-2014 07:44 PM

Put it in your fstab with the auto flag.

Here's an example from mine. The first line is from when I was mounting based on the mountpoint in /dev (remarked out). The second line is what I'm using now, the UUID (when I make these type of changes, I never delete--I always remark out. It makes undoing a mistake easier).

Code:

# /dev/sdb5      /media/sdb5    ext3    rw,user,auto    0      1
UUID=7900ade7-de36-41e5-88b5-2d7aaa8adcd4      /media/sdb5    ext3    rw,user,auto    0      1

Here's an LQ post on understanding fstab.

Here's a good article on using UUIDs.


All times are GMT -5. The time now is 02:16 AM.