LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-15-2019, 12:04 PM   #1
dlfallen
LQ Newbie
 
Registered: Feb 2018
Posts: 10

Rep: Reputation: Disabled
Mounting Drives Confusion


Many programs look for a folder in a specific location. In Windows, it might look on the C: drive or the F: drive. No confusion. In Linux the program looks for a specific folder in a drive mounted at a particular mount point. The problem is, the first drive mounted gets the first mound point and the second drive to be mounted gets the subsequant mount point. The mount points are not consistent, thus confusion.

For example, I have my 1 TB drive mounted (but not my 250 MB drive). I create a file in LibreOffice and save it. If at some later point I mount my 250 MB drive first and my 1 TB drive second, the "recent files" menu selection in LibreOffice cannot locate the file. If I unmount both drives and then mount the 1 TB drive first, then LibreOffice will find the file.

This drive confusion is particularly problematic using Thunderbird. The profile used by the Windows version is stored on the 1TB drive. If I mount that drive first (in Linux) then all is well when I run the Linux version of Thunderbird. But if I mount the 250 MB drive first, then Thunderbird creates a new profile on that drive, downloads the emails from the server, and I have a mess.

Is there a solution to this mess? Is there a way to "force" Linux to boot a particular drive to a specific mount point?
 
Old 01-15-2019, 12:44 PM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Usually if you have drives that you mount regularly, you make entries for them is /etc/fstab specifying exactly where they are to be mounted. This is the traditional Unix way of doing mounts.

However some distros these days mount drives dynamically under temporary mountpoints, which is supposed to make like easier for the user. For example, I plugged in a pendrive about half an hour ago and Debian automatically mounted it on a subdirectory of /media/hazel. As you have discovered, this often makes life more difficult for the user, not easier.

As far as I know that does not happen if there is an entry in /etc/fstab.
 
1 members found this post helpful.
Old 01-15-2019, 12:58 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
btw, what windows calls "drive" is really a partition on a hard drive.
so linux people usually call them partitions.
 
Old 01-15-2019, 01:10 PM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,487

Rep: Reputation: Disabled
Use their UUID & have no more hassles.
 
Old 01-15-2019, 05:26 PM   #5
dlfallen
LQ Newbie
 
Registered: Feb 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
I appreciate the help attempts, but I'm not there yet.

I knew nothing about FSTAB, UUID, etc. when I started but I have been educating myself. Here is where I stand:
DISKS identifies the 1.0 TB partition as sdc3, and the 248GB partition as sda4

cat /etc/fstab reveals that neither has an entry (as expected)

blkid reports that both partitions have exactly the same UUID (56C26CC6C26CAC45)despite being on physically different drives. They do have different PARTUUID numbers.

Both partitions are currently mounted with /dev/sda4 on media/dave/56C26CC6C26CAC452 and /dev/sdc3 on media/dave/56C26CC6C26CAC453. sda4 was mounted first. When I mount sdc3 first, the mount points are reversed.

So it seems I need to have entries in FSTAB that refer to PARTUUID instead of UUID? IF so, how? and what would I specify as a mount point?

Sorry for all the questions, but I am quite new to all this. I am, however, amazed at and appreciative of the responsiveness of the linux community!
 
Old 01-15-2019, 09:46 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
That's not a "proper" UUID - let me guess; these are NTFS filesystems ?. If that is the case, Linux tries to simulate a UUID for you.
Best solution is probably to add a label (name) to the NTFS filesystems - you should be able to do that in Windows, else we can give you commands to do it.
 
1 members found this post helpful.
Old 01-15-2019, 10:37 PM   #7
dlfallen
LQ Newbie
 
Registered: Feb 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
syg00 provided the final clue I needed. Thanks to everyone who chipped in - you folks are amazing!

I renamed the partitions as syg00 suggested. Then I edited my Thunderbird's "profile.ini" file to use the name I had given the correct partition instead of the generated name.

Bob's your uncle! It no longer matters which partition is loaded first. It just works.
 
Old 01-16-2019, 05:30 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Quote:
Originally Posted by dlfallen View Post

So it seems I need to have entries in FSTAB that refer to PARTUUID instead of UUID? IF so, how? and what would I specify as a mount point?

Sorry for all the questions, but I am quite new to all this. I am, however, amazed at and appreciative of the responsiveness of the linux community!
If you ever need to add partitions to fstab in future, you can put any of the following in the first column:
* Device (e.g. /dev/sda1)
* UUID (UUID= )
* GUID (PARTUUID= )
* User-defined label (LABEL= )

By the way, important system files like fstab have their own manual pages. Use the man command to read them.

Last edited by hazel; 01-16-2019 at 05:31 AM.
 
Old 01-16-2019, 10:14 AM   #9
dlfallen
LQ Newbie
 
Registered: Feb 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thank you Hazel. For me, the biggest attraction of linux is the supportive community. It is very refreshing.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Confusion re: new Ubuntu server built with several (full) hard drives Donny Bahama Linux - Newbie 6 01-10-2014 10:29 PM
Multiple drives, why the boot confusion? skola Linux - Hardware 2 06-16-2013 12:51 AM
How do I start slackware without mounting drives, but have drives accessible? Lufbery Slackware 15 08-25-2008 07:18 AM
CD-Drives and floppy drives Pixel Linux - Hardware 3 03-16-2003 02:04 PM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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
Open Source Consulting | Domain Registration