LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-15-2014, 08:26 PM   #1
bob800
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Rep: Reputation: Disabled
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
 
Old 02-15-2014, 08:44 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,781
Blog Entries: 17

Rep: Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Occasional failure to auto-mount NTFS partition in 10.04 buccaneere Linux - Desktop 1 12-08-2012 09:35 AM
Fedora 13 can't auto mount windows partition anymore sourabh.sinha Linux - Newbie 3 07-13-2010 04:20 PM
[SOLVED] How to auto-mount a NTFS RAID partition? giyad Linux - Hardware 15 02-03-2010 08:49 PM
Problem in Auto Mount of partition at startup BlueSkull Linux - General 2 11-10-2009 03:37 AM
auto mount partition script SweetLou Linux - General 2 02-19-2007 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration