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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-02-2010, 10:28 PM
|
#1
|
LQ Newbie
Registered: Jun 2007
Location: Maryland
Distribution: Ubuntu II 8.10
Posts: 22
Rep:
|
How to keep HDD mounted thru restart?
The Fat32 master HDD in my Intrepid Ibex 8.04 Ubuntu PC is mounted and stays so.
I installed a second (slave) ntfs HDD into the Ubuntu PC. Each time I turn it on, the drive needs to be mounted.
What (exact steps) do I need to do so that the slave drive stays mounted after the PC is turned off.
The goal: When the PC is turned on, I'd like the slave HDD already mounted and ready to use.
TIA
|
|
|
02-02-2010, 11:38 PM
|
#2
|
Member
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468
Rep:
|
Have a look inside the file
You will need to put in a line to mount the drive you want. For example:
Quote:
/dev/sdb1 /mnt/data ntfs-3g defaults 0 0
|
|
|
1 members found this post helpful.
|
02-03-2010, 02:05 PM
|
#3
|
LQ Newbie
Registered: Jun 2007
Location: Maryland
Distribution: Ubuntu II 8.10
Posts: 22
Original Poster
Rep:
|
The slave drive is named "Public."
What line would you add or alter?
Here are the contents of the fstab file:
# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# Entry for /dev/sda1 :
UUID=98d7ef1c-f15c-44a0-87b9-8972cb42639e / ext3 relatime,errors=remount-ro 0 1
# Entry for /dev/sda5 :
UUID=d73ce4ff-e7b9-407b-bf7d-3ebf30ebb157 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sdb1 /media/Public ntfs-3g defaults,locale=en_US.UTF-8 0 0
Thanks.
|
|
|
02-03-2010, 02:43 PM
|
#4
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,979
|
Hi,
Quote:
Originally Posted by bettyhills
The slave drive is named "Public."
What line would you add or alter?
Here are the contents of the fstab file:
# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# Entry for /dev/sda1 :
UUID=98d7ef1c-f15c-44a0-87b9-8972cb42639e / ext3 relatime,errors=remount-ro 0 1
# Entry for /dev/sda5 :
UUID=d73ce4ff-e7b9-407b-bf7d-3ebf30ebb157 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sdb1 /media/Public ntfs-3g defaults,locale=en_US.UTF-8 0 0
Thanks.
|
It appears you have '/dev/sdb1 /media/Public ntfs-3g defaults,locale=en_US.UTF-8 0 0' in your '/etc/fstab' listed above. Looks like the system added the line.

|
|
1 members found this post helpful.
|
02-03-2010, 03:12 PM
|
#5
|
LQ Newbie
Registered: Jun 2007
Location: Maryland
Distribution: Ubuntu II 8.10
Posts: 22
Original Poster
Rep:
|
Yes. Restarted the system several times and the slave drive stays mounted. Thank you.
|
|
|
02-03-2010, 04:37 PM
|
#6
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,979
|
|
|
|
All times are GMT -5. The time now is 12:11 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|