The officially official Devuan Forum!

You are not logged in.

#1 2023-08-27 19:30:34

deepforest
Member
Registered: 2020-03-24
Posts: 354  

[SOLVED] manually mount disks always have different mount points?

I am manually mount hdd partition with music.
Add files to play list in Audacious and all plays good.
After next turn on PC and again manually mounted same hdd partitions, Audacious say that cant find previously added to playlist music files?
Why this happens? Disks have always new mount points? Its very uncomfortable.
https://ibb.co/fFB88f9

Last edited by deepforest (2023-08-27 19:32:26)


-=linux its buggy crap that have no antifool protection (c)=- smile
*linux is free software, and comes with ABSOLUTELY NO WARRANTY* smile
+ALL YOURS ACTIONS at Linux YOU DO at YOUR OWN RISK!+ smile

Offline

#2 2023-08-27 22:54:38

alexkemp
Member
Registered: 2018-05-14
Posts: 357  

Re: [SOLVED] manually mount disks always have different mount points?

Look at the mount help files. Use UIDs (cannot recall actual name). Then you will have unchanging mount points that Audacious will always be able to find.

I'll add the name of those unchanging-IDs if I can find them (I've never used them personally).

Offline

#3 2023-08-28 03:08:36

swanson
Member
Registered: 2020-04-22
Posts: 103  

Re: [SOLVED] manually mount disks always have different mount points?

You need the UUID's of the different disks/partitions. In a terminal as root use the command blkid and note the required UUID's you need. Then , as root, edit the file /etc/fstab and add the needed UUID's.

Example line from /etc/fstab:

UUID=9acd7886-5bd7-4fa4-a7e7-63b80c64f28c /mnt/GAMES	ext4	auto,rw,async,exec,suid,noatime 0       2

In this example it's in reality my partition /dev/sdc3 which is mounted with its UUID in fstab instead.

More about fstab: https://man7.org/linux/man-pages/man5/f … %20enabled.

Last edited by swanson (2023-08-28 03:12:17)

Offline

#4 2023-08-28 07:48:26

alexkemp
Member
Registered: 2018-05-14
Posts: 357  

Re: [SOLVED] manually mount disks always have different mount points?

Thanks for that, swanson (I was so close yet so far away!).

A very good link for the whole process:
Using UUID to Update FSTAB

I'm *very* surprised that, after all this time, there isn't a programmable way to do the whole thing. That manual step puts a big block in uptake.

Here is blkid on my system. sda1 is a usb-connected hdd and one of the main reasons for the modern use of UUIDs:

$ sudo blkid
[sudo] password for alexk: 
/dev/sdc1: LABEL="SG-2TB" BLOCK_SIZE="512" UUID="5DB88E2B4D416357" TYPE="ntfs" PARTUUID="82de246a-01"
/dev/sda2: UUID="689f9e16-2d78-4635-b9c1-d68a8994e668" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="924dc2aa-fbd2-4747-b356-3cf070a966df"
/dev/sda3: UUID="f10d59d3-426b-499e-afa1-8715920318c3" TYPE="swap" PARTUUID="54a5a38e-ae7f-41e7-8c88-f0014e7cefe0"
/dev/sda1: UUID="4CD1-6816" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="75179c70-b3b4-4c5e-9684-21cf493e8438"

Offline

#5 2023-08-28 12:14:08

Segfault
Member
Registered: 2017-02-10
Posts: 14  

Re: [SOLVED] manually mount disks always have different mount points?

Instead of UID you can use file system labels. Much nicer, if you ask me. And one can memorize labels ... some maybe can memorize UID-s ... LOL

Offline

#6 2023-08-28 22:14:11

deepforest
Member
Registered: 2020-03-24
Posts: 354  

Re: [SOLVED] manually mount disks always have different mount points?

ok
and how i can do that without console, using only thunar?


-=linux its buggy crap that have no antifool protection (c)=- smile
*linux is free software, and comes with ABSOLUTELY NO WARRANTY* smile
+ALL YOURS ACTIONS at Linux YOU DO at YOUR OWN RISK!+ smile

Offline

#7 2023-08-28 23:18:22

deepforest
Member
Registered: 2020-03-24
Posts: 354  

Re: [SOLVED] manually mount disks always have different mount points?

why every reboot sda, sdb, sdc, disks swapped?
https://ibb.co/PcR8yyy

Last edited by deepforest (2023-08-28 23:19:42)


-=linux its buggy crap that have no antifool protection (c)=- smile
*linux is free software, and comes with ABSOLUTELY NO WARRANTY* smile
+ALL YOURS ACTIONS at Linux YOU DO at YOUR OWN RISK!+ smile

Offline

#8 2023-08-28 23:24:14

golinux
Administrator
Registered: 2016-11-25
Posts: 3,316  

Re: [SOLVED] manually mount disks always have different mount points?

It used to be easy with gksu thunar but gksu was removed/deprecated years ago. Search and there might be current alternatives.

Offline

#9 2023-08-29 01:27:23

deepforest
Member
Registered: 2020-03-24
Posts: 354  

Re: [SOLVED] manually mount disks always have different mount points?

ok, and how gksu help with changed devices names?


-=linux its buggy crap that have no antifool protection (c)=- smile
*linux is free software, and comes with ABSOLUTELY NO WARRANTY* smile
+ALL YOURS ACTIONS at Linux YOU DO at YOUR OWN RISK!+ smile

Offline

#10 2023-08-29 01:37:42

golinux
Administrator
Registered: 2016-11-25
Posts: 3,316  

Re: [SOLVED] manually mount disks always have different mount points?

I used it to get root privileges in thunar to change fstab entries to UUIDs etc. back in jessie days. Isn't that what you asked for? However, it probably doesn't work anymore. There are likely new ways of doing it today.  I never mess with that stuff after it's set up so can't remember specifics . . .

Offline

#11 2023-08-29 10:46:41

delgado
Member
Registered: 2022-07-14
Posts: 211  

Re: [SOLVED] manually mount disks always have different mount points?

deepforest wrote:

why every reboot sda, sdb, sdc, disks swapped?

That is a good question for Intel.

As written before, you may want to use uuids or labels to identify partitions.

Offline

#12 2023-08-29 16:03:45

chris2be8
Member
Registered: 2018-08-11
Posts: 307  

Re: [SOLVED] manually mount disks always have different mount points?

golinux wrote:

It used to be easy with gksu thunar but gksu was removed/deprecated years ago. Search and there might be current alternatives.

Try sudo thunar in a terminal window. Any way to run thunar as root *should* have the desired result. But I've not tested it.

Offline

#13 2023-08-29 16:42:21

rolfie
Member
Registered: 2017-11-25
Posts: 1,171  

Re: [SOLVED] manually mount disks always have different mount points?

deepforest wrote:

why every reboot sda, sdb, sdc, disks swapped?

Because they are not enumerated in any order, but a request is sent out by the kernel and then the first one answering is served first. And due to slight changes in timing the order is sort of by chance.

Online

#14 2023-08-29 17:50:42

Segfault
Member
Registered: 2017-02-10
Posts: 14  

Re: [SOLVED] manually mount disks always have different mount points?

deepforest wrote:

ok
and how i can do that without console, using only thunar?

I have no clue, I use GUI only for user tasks, never for administration. The tool is called e2label, tune2fs can do it, too.

Last edited by Segfault (2023-08-29 17:53:56)

Offline

#15 2023-08-29 21:03:02

GlennW
Member
From: Brisbane, Australia
Registered: 2019-07-18
Posts: 644  

Re: [SOLVED] manually mount disks always have different mount points?

To setup /etc/fstab from /dev/sd(x)(n) to UUID

Use lsblk blkid and fstab, for clues

you might need root access for one of those.

This will give you the uuids and show you which /dev/... to follow.


pic from 1993, new guitar day.

Offline

#16 2023-08-30 01:08:45

deepforest
Member
Registered: 2020-03-24
Posts: 354  

Re: [SOLVED] manually mount disks always have different mount points?

@All Thanks you for suggestions
I will try easiest way - labels

Last edited by deepforest (2023-08-30 20:29:35)


-=linux its buggy crap that have no antifool protection (c)=- smile
*linux is free software, and comes with ABSOLUTELY NO WARRANTY* smile
+ALL YOURS ACTIONS at Linux YOU DO at YOUR OWN RISK!+ smile

Offline

#17 2023-08-30 20:25:05

deepforest
Member
Registered: 2020-03-24
Posts: 354  

Re: [SOLVED] manually mount disks always have different mount points?

using disks labels is solved my question

Last edited by deepforest (2023-08-30 20:28:57)


-=linux its buggy crap that have no antifool protection (c)=- smile
*linux is free software, and comes with ABSOLUTELY NO WARRANTY* smile
+ALL YOURS ACTIONS at Linux YOU DO at YOUR OWN RISK!+ smile

Offline

#18 2023-08-30 20:42:12

golinux
Administrator
Registered: 2016-11-25
Posts: 3,316  

Re: [SOLVED] manually mount disks always have different mount points?

Congratulations! big_smile FWIW I use labels and UUID in fstab . . .

Offline

Board footer