LinuxQuestions.org
Visit Jeremy's Blog.
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 12-26-2012, 07:21 PM   #1
maxreason
Member
 
Registered: Dec 2007
Location: phobos, mars
Distribution: 64-bit ubuntu 12.04 LTS
Posts: 205

Rep: Reputation: 15
how to: mount extra disks (non-boot disks)


Not sure why, but the behavior of the nautilus file manager changed at some point. It used to show all the SATA and USB hard drives that were connected to the motherboard in the /media directory. It seems nautilus automatically mounted them when I clicked on them to access files.

Just recently all drives vanished from the /media directory, and I can't find a way to access them.

I guess I don't mind adding these drives to the /etc/fstab file, except that is inconvenient because I have more than 4 SATA drives, so now and then I need to unplug one drive and plug in another in its place, and the partitions might not always be the same on those two drives, which might cause strange behavior.

Nonetheless, I'd like to know how to add these drives to the /etc/fstab file, but the new documentation for mount and the fstab file is very difficult to comprehend. For one thing, how can I create appropriate entries when I can't see which partitions on each drive contain files, and which are swap partitions or other oddballs?

It would be a lot nicer if nautilus would just work they way it did before, but I'd also like to know other ways to deal with this.

PS: All the drives are very standard 1~3TB SATA3 seagate and western digital drives @ 7200rpm.
 
Old 12-26-2012, 10:14 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Instead of something like /dev/sdc1 in the first field of fstab, use the UUID of the file system, e.g. UUID="1234-A567".

You can look at "ls -s /dev/disk/by-uuid/" or use the "blkid" command as root to get the UUID number.

See the man page for fstab. It discusses using uuid to make /etc/fstab more robust.

disk -l will list the partitions, and whether it is a Linux partition or swap. You can first manually mount the partitions on /mnt/, look at the files there, then add a line in /etc/fstab. Also use "sudo file -s /dev/<device_node> to get more information on the file system.

Last edited by jschiwal; 12-26-2012 at 10:19 PM.
 
Old 12-27-2012, 09:54 PM   #3
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,183

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
I have a number of installs on here and use data partitions so that all installs can access some common data.

The entry I am using in /etc/fstab for one such partition is;
Code:
#Entry for /dev/sda9 :
UUID=58e93156-4981-484c-8047-db53541eaff3	/media/Common	ext4	defaults	0	0
I recommend using;
Code:
sudo blkid
to get the uuid as you have all the info you need there and can copy/paste a lot of it direct or with littel editing.

If you use chroot to access other installs those should mount in /mnt.

All auto mounted partitions and so forth are usually mounted in /media.

In the example above we have the mount point as /media/Common.

To create the mount point is simple no matter where you want to mount the stuff. For my example of the fstab file you would need to run;
Code:
sudo mkdir /media/Common
 
  


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
[SOLVED] added a couple of new disks and now /dev/sd* disks are all messed up nass Linux - Hardware 4 10-30-2012 10:16 AM
[SOLVED] RAID 5 with 4 hard disks... array started with only 3 out of 4 disks kikinovak Slackware 9 08-11-2012 06:33 AM
Wait x minutes after boot to mount disks? adamis Linux - Software 3 08-13-2006 04:10 PM
Hald-subfs-mount Unmounts Usb Disks Directly After Mount dop Suse/Novell 0 03-16-2006 10:58 AM
Installation Disks not recognized as official disks when booting with floppy coal-fire-ice Mandriva 13 12-09-2004 04:29 PM


All times are GMT -5. The time now is 12:35 AM.

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