You are not logged in.
Hello everyone,
I am a very, very new user. First time Linux user in fact. I've reinstalled Arch at least 4 times in the past 2 days, so please be patient. I have been trying to "fix" this all day.
So here it goes.
My SDB is a non system partition. I would like to find an easier way to access it. Currently the file path is too long and specific. The only way I could do it consistently is if I saved the entire path somewhere, but that just seems unnecessary, since there has to be some way
When I run lsblk -l
I get
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 223.6G 0 disk
sda1 8:1 0 100M 0 part /boot/efi
sda2 8:2 0 16G 0 part [SWAP]
sda3 8:3 0 207.5G 0 part /
*sdb 8:16 0 931.5G 0 disk /run/media/*****/a3b80f2d-0ea5-431a-bd86-2592b6fe986e*
I've made sure to chown it and I can USE it, it's not like it's not working. It's just heavily tedious in my opinion to have to do that in order to access it via CD. There must be some easier way right?
Offline
It is mounting on /run/media/...../. This means you are probably mounting it using a file manager such as Dolphin or Nautilus (Gnome-File).
So, mount it someplace else. Here is a link to an article on various ways to do so. https://wiki.archlinux.org/title/File_s … ile_system
Or, use a systemd mount service. https://www.pluralsight.com/cloud-guru/ … ount-units
Last edited by ewaller (2023-09-25 18:45:29)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Ok so what I did was: sudo mount /dev/sdb /mnt
And now I can access sdb.
Is it really that simple? I understand this is probably not best practice but it seems I have solved my problem. When i "ls" the /mnt I get the contents.
This is alright then?
Offline
Assigning an "UDISKS_NAME" in a udev rule for the drive might help, but have you considered just putting a label on the filesystem? So it gets mounted to /run/media/$USER/MyPornCollection ?
Also, maybe, https://wiki.archlinux.org/title/udisks#Mount_to_/media
Offline
Is it really that simple?
Pretty much. Personally, for fixed disks I put an entry in /etc/fstab so that it happens automatically. For removable disks and for NAS drives, I generally create a systemd service which I start only when I need access t the disk. When I am mounting a disk on a one time basis, I just use mount. That always works.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
I was having difficulties understanding Seth's message. The lingo is unfortunately too advanced.
@ewaller Could you possibly provide me with some instructional link or entry where it's listed how to do the /etc/fstab thing
? I am fairly interested and it would make my life a lot easier. I'll try to do some searching of my own.
Offline
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
https://wiki.archlinux.org/title/Fstab
Forget about the udev rule, filesystem typically have a label feature and when there's a label, udisks is supposed to use that for the mountpoint instead of the UUID (long number)
lsblk -fBut if this is a statically attached disk, just using an fstab entry is better.
If it is not, you could still add an entry but mark it as "noauto,x-systemd.automount" - it will then be mounted whenever you try to access the mountpoint.
Offline