LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 06-05-2010, 02:10 PM   #1
insanity99
LQ Newbie
 
Registered: Jun 2010
Location: Liverpool, England
Distribution: Ubuntu 10.4
Posts: 23

Rep: Reputation: 0
is it possible to have my hard drive mount automatically(NTFS)?


I have two 1TB HDD's formatted in NTFS, one has windows and other stuff i use even on linux and the other is all media. i can mount them easy, but this is a minor annoyance because everytime i log in i must type in my password. is there no way to have them auto mounted on startup?

thanks.
 
Old 06-05-2010, 02:11 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Welcome to LQ!!

How is the password relevant? e.g. are the individual drives password-protected?

To automatically mount, put entries in /etc/fstab
 
Old 06-05-2010, 02:18 PM   #3
insanity99
LQ Newbie
 
Registered: Jun 2010
Location: Liverpool, England
Distribution: Ubuntu 10.4
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pixellany View Post
Welcome to LQ!!

How is the password relevant? e.g. are the individual drives password-protected?

To automatically mount, put entries in /etc/fstab
thanks for the welcome, i am very new to linux and ubuntu is my first linux OS.

ubuntu just seems to ask for a password for most the things i do, such as installing software, changing settings and mounting drives. i just think it would be nice to have both my hard drives ready to use when i log in. it's a minor annoyance but would be nice to fix. i will have a look at this 'fstab' thanks.
 
Old 06-05-2010, 04:59 PM   #4
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 85
Quote:
Originally Posted by insanity99 View Post
ubuntu just seems to ask for a password for most the things i do, such as installing software, changing settings and mounting drives.
You will need the password to edit /etc/fstab, but it won't be needed each time the drives are mounted (unless they are encrypted or whatever). The password is needed to gain root* privileges from your user account, but the init process which mounts the drives at boot time runs with root privileges anyway.

This page gives an introduction to fstab. You would need to add lines along the lines of:

Code:
/dev/sda1    /media/win_docs    ntfs    uid=1001,gid=1001    0    2
In the fourth field, I believe you will need to give the ids of the Linux user and group, who should own the files.

* Equivalent of Windows Administrator
 
Old 06-06-2010, 06:26 AM   #5
insanity99
LQ Newbie
 
Registered: Jun 2010
Location: Liverpool, England
Distribution: Ubuntu 10.4
Posts: 23

Original Poster
Rep: Reputation: 0
thanks, im not sure what numbers to put in where you put 0 and 2 though.
 
Old 06-06-2010, 06:37 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Originally Posted by insanity99 View Post
thanks, im not sure what numbers to put in where you put 0 and 2 though.
Look at the fstab man page for an explanation of these fields.
 
Old 06-06-2010, 06:47 AM   #7
insanity99
LQ Newbie
 
Registered: Jun 2010
Location: Liverpool, England
Distribution: Ubuntu 10.4
Posts: 23

Original Poster
Rep: Reputation: 0
oh thats strange, my '/' and '/home' partitions arent on fstab? or they seem to be put in comments so its not read, or am i reading it wrong? here is my fstab:

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda5 during installation
UUID=7eb0067a-0232-4aed-8782-16da70eed205 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda7 during installation
UUID=2d523f65-9d97-4066-a67a-e2b3b7c76322 /home ext4 defaults 0 2
# swap was on /dev/sda6 during installation
UUID=bc314585-e75d-4f47-8fe9-4c03b92cdf1a none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
 
Old 06-06-2010, 07:01 AM   #8
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 85
They are there - the lines are the ones that start "UUID=" - the UUID is an alternative way of specifying the device. It takes a bit of getting used to, but is very useful as it can help avoid problems when changes are made to other partitions on a disk, which affect the ordering.

The comments at the top of the fstab file explain how to get the UUID for a filesystem.
 
Old 06-06-2010, 08:05 AM   #9
insanity99
LQ Newbie
 
Registered: Jun 2010
Location: Liverpool, England
Distribution: Ubuntu 10.4
Posts: 23

Original Poster
Rep: Reputation: 0
ok thanks guys this is solved
 
  


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
NTFS hard drive now fails to mount Captain Tram Linux - Hardware 1 08-21-2006 04:30 PM
mount ntfs hard drive daffyduke Mandriva 5 01-18-2005 11:38 PM
How To Mount An NTFS Hard Drive TheHateCrew Linux - Hardware 4 09-14-2004 09:11 AM
USB2 NTFS Hard Drive Mount Permission UberMousE Linux - Hardware 10 05-14-2004 05:27 AM
Cant mount NTFS Hard drive monkeymartin Linux - General 5 08-10-2003 09:35 PM


All times are GMT -5. The time now is 06:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration