Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-10-2011, 03:35 PM
|
#1
|
|
Member
Registered: Dec 2003
Distribution: Linux Mint 14 (Cinnamon)
Posts: 209
Rep:
|
Basic Hard Drive Mounting
How do I get my 200 GB hard drive (with reiserfs) to automatically mount on boot up?
Two things I hope may help.
(1) Below, I have attached part of the window I see when I right click on the Hard Drive as it appears in Ubuntu 10.04 LTS. Note it is currently manually mounted already at the time the image was taken.
(2) Here is my /etc/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 nodev,noexec,nosuid 0 0
/dev/sda1 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=feec79f8-4df7-4667-a650-11d58cc5f32b none swap sw
0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
Last edited by wmeler; 04-10-2011 at 03:37 PM.
|
|
|
|
|
Click here to see the post LQ members have rated as the most helpful post in this thread.
|
04-10-2011, 03:43 PM
|
#2
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,171
|
Just create a new entry to your /etc/fstab. It should look like this:
Code:
UUID=4f9500d8-6d01-491b-9f92-532bf3d613dc /MOUNTPOINT auto defaults 0 0
Of course you have to replace the mountpoint with the folder you want the partition to be mounted at. Because you haven't said which file-system is in use, I have set the file-system to auto in this example, you can replace it with the name of the actual file-system.
|
|
|
2 members found this post helpful.
|
04-10-2011, 03:44 PM
|
#3
|
|
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873
|
Ooooops. I didn't get all the facts in the first take.
Last edited by stress_junkie; 04-10-2011 at 03:46 PM.
|
|
|
0 members found this post helpful.
|
04-10-2011, 04:17 PM
|
#4
|
|
Member
Registered: Dec 2003
Distribution: Linux Mint 14 (Cinnamon)
Posts: 209
Original Poster
Rep:
|
Quote:
Originally Posted by TobiSGD
Just create a new entry to your /etc/fstab. It should look like this:
Code:
UUID=4f9500d8-6d01-491b-9f92-532bf3d613dc /MOUNTPOINT auto defaults 0 0
Of course you have to replace the mountpoint with the folder you want the partition to be mounted at. Because you haven't said which file-system is in use, I have set the file-system to auto in this example, you can replace it with the name of the actual file-system.
|
Fantastic. Thanks!
A couple of notes for noobs out there.
(1) I recommend the following line instead in order for more seemless integration for you if you're in Ubuntu like me:
Code:
UUID=4f9500d8-6d01-491b-9f92-532bf3d613dc /media/mydrive auto defaults 0 0
(Copy and paste the entire line--you may have to scroll right--by selecting whole line, right clicking, and then copy.)
More advanced users...scoff away. At *all* of the above. Heh.
(2) To edit your /etc/fstab file, you will need to have administrative/root privileges. There are a billion posts out about this. Or just ask. Then you'll do the following in a terminal:
sudo gedit /etc/fstab
(3) Be sure to save when you edit that file.
(4) Easiest way for changes to /etc/fstab to occur: Restart.
(5) After restart, your hard drive will be mounted and the files for your hard drive will be at:
/media/mydrive
(6) If you're in Ubuntu, you can find the drive under Places (VERY top). It will be one of the listings.
Hope that helps some noobs out there.
Last edited by wmeler; 04-10-2011 at 04:20 PM.
|
|
|
1 members found this post helpful.
|
04-10-2011, 04:26 PM
|
#5
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,171
|
Quote:
Originally Posted by wmeler
(1) I recommend the following line instead in order for more seemless integration for you if you're in Ubuntu like me:
Code:
UUID=4f9500d8-6d01-491b-9f92-532bf3d613dc /media/mydrive auto defaults 0 0
(Copy and paste the entire line--you may have to scroll right--by selecting whole line, right clicking, and then copy.)
More advanced users...scoff away. At *all* of the above. Heh. 
|
This will only work for you, nobody else in the world should have a partition with the same UUID. To see your own UUIDs, if needed, just type into a terminal.
Quote:
|
(4) Easiest way for changes to /etc/fstab to occur: Restart.
|
Easier way: Type this into a terminal:
|
|
|
2 members found this post helpful.
|
04-10-2011, 04:46 PM
|
#6
|
|
Member
Registered: Dec 2003
Distribution: Linux Mint 14 (Cinnamon)
Posts: 209
Original Poster
Rep:
|
Excellent. Should have mentioned the UUID bit.
Gave a YES to both excellent responses, TobiSGD.
While I'm at it, how do I view non-block devices?
|
|
|
|
04-10-2011, 04:51 PM
|
#7
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,171
|
Sorry, I don't understand, what do you mean with "view non-block devices"?
|
|
|
|
04-10-2011, 05:28 PM
|
#8
|
|
Member
Registered: Dec 2003
Distribution: Linux Mint 14 (Cinnamon)
Posts: 209
Original Poster
Rep:
|
According to "man blkid", the "blkid" command lists out block devices.
Looking for a similar command that lists out char devices, if such a command exists...?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:14 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
|
|