LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-10-2020, 12:23 AM   #1
varaonaid
Member
 
Registered: Mar 2007
Posts: 39

Rep: Reputation: 2
Question fstab - setting up mount order?


Hi,

I finally managed to get my fstab edited so that my drives would auto mount correctly each time. Happily, this also solved the issues I was having with permissions (for some reason, try as I might, I could not change the permissions on the drives at the location where oST automatically mounted them.

However, I want all the drives to show up in an orderly fashion in the left pane of the file explorer. All the drives are showing up but not in the order that I have them in fstab (I listed the drives in the order I wanted them to show up in - basically, alphabetically/numerically). They are showing in completely random order with absolutely no rhyme or reason as to that order. I was so meticulous in my editing to be sure that they would show up in an orderly fashion and that hasn’t worked at all.

What do I need to do to fix this? Surely, there is a way to have all ones drives show up in a non-haphazard way. Surely there’s a way have it them listed in order.

Any help would be brilliant and incredibly appreciated. Thanks so much in advance!

Running OpenSUSE Tumbleweed.

Last edited by varaonaid; 07-10-2020 at 12:24 AM. Reason: Adding distro
 
Old 07-10-2020, 12:57 AM   #2
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 1,420

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
If you run mount or look in /etc/mtab the mounts should be in the correct order.
What file explorer do you use? Maybe it sorts alphabetically?
 
1 members found this post helpful.
Old 07-10-2020, 01:35 AM   #3
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 2,610
Blog Entries: 1

Rep: Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855
If you're using KDE/Plasma, I suspect what you want is not possible, and may be a QT bug. I searched for and found no KDE bug on point. This seems like it might be related to a bug I reported, https://bugs.kde.org/show_bug.cgi?id=297219 .

If you use an OFM, e.g. Midnight Commander, directories are by default listed first and in alpha order.

Last edited by mrmazda; 07-10-2020 at 01:40 AM.
 
Old 07-10-2020, 12:28 PM   #4
obobskivich
Member
 
Registered: Jun 2020
Distribution: Xubuntu / Slackware
Posts: 68

Rep: Reputation: Disabled
Some thoughts:

- I know in thunar I can just create my own order on the 'lefthand side' (it's called 'Places' in the UI) by dragging and dropping whatever folder/mounts I want (and deleting those I don't) - I certainly can empathize with the 'random haphazard order' and that's one thing I usually do on a new machine is delete all the presets and make my own shortcuts there.

- Running something like lsblk in the CLI should give you an alphastacked output, as in /dev/sda1 should preceed /dev/sda2 which should proceed /dev/sdb1 and so on. But block devices are not directly related to their filesystem mounts - you can mount /dev/sdz999 as / and /dev/sda1 as /really/far/into/the/folder/structure/because/why/not. In my experience how devices show up as /dev/sda or /dev/sdb is based on their order on the actual disk controller - as in which ports on the motherboard/add-in card they occupy (BIOS settings may also be able to impact this, depending on context).

I guess I'm a little 'lost' on what is out of order then - do you just need to reorder things in the UI in terms of folders? Or are block devices 'moving around'? (If the later, try setting up fstab by UUID instead of by block device).
 
Old 07-10-2020, 05:27 PM   #5
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: Currently: openSUSE, Raspbian, Slackware. Formerly: CentOS, MacOS, Red Hat. Other: Solaris, Tru64
Posts: 1,980

Rep: Reputation: 325Reputation: 325Reputation: 325Reputation: 325
Quote:
Originally Posted by varaonaid View Post
Hi,

I finally managed to get my fstab edited so that my drives would auto mount correctly each time. Happily, this also solved the issues I was having with permissions (for some reason, try as I might, I could not change the permissions on the drives at the location where oST automatically mounted them.

However, I want all the drives to show up in an orderly fashion in the left pane of the file explorer. All the drives are showing up but not in the order that I have them in fstab (I listed the drives in the order I wanted them to show up in - basically, alphabetically/numerically).

[snip]

Running OpenSUSE Tumbleweed.
I'm running Leap and Tumbleweed and I know of no way to do this for the items listed in the left pane of the file manager windows for Dolphin or Thunar (my "go-tos"). You can change the ordering of the items in the right-hand pane by selecting "detailed view" and changing the ordering by clicking on the Name, Size, or Modified columns and then switching back to "icon view" but that does not affect the left-hand pane at all. None of the other file managers I've tried -- krusader, nautilus, or pcmanfm/pcmanfm-qt -- allow this.

I gotta ask, though: How often do you even look at the items in the left pane. I modified the panel launcher for Dolphin to point initially to the Data directory in $HOME and, generally, only touch anything in the left pane should I decide to hunt something down in a system directory tree like /usr/*, /opt/*, etc. I do this so seldom, though, that I'm just not concerned about the appearance of that left pane.

Sorry I couldn't be of more help...
 
Old 07-13-2020, 07:48 PM   #6
larstrier
Member
 
Registered: Dec 2019
Distribution: Debian
Posts: 46

Rep: Reputation: 18
Is this a grub issue?

If grub sees the partitions in alphabet/numerical order then perhaps the OS will see it the same way.

Will 'update-grub' work? Or perhaps 'os-prober'?
 
  


Reply

Tags
fstab, mountpartitions


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] Can I set the cups output order to always print in reverse order Thane Ubuntu 3 07-09-2018 09:49 PM
Logi Sales Manager on Ncurses (invoice, invoicing, orders, order, sale order, sales order...)? Xeratul Linux - Software 0 03-25-2017 02:45 PM
nfs and bind-mount order in /etc/fstab mr.neil Linux - Server 6 06-16-2008 02:41 AM
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05: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