You are not logged in.
1. Unlike Ubuntu GNOME. Filename is predictable and short; as well as always the same.
2. Is it possible to mount from CLI without sudo?
Last edited by polv (2021-05-22 17:54:16)
Offline
I have no clue what you are asking here. How do they look like? How should they look like? What's the file system on the HDD? Can you post a comparison screenshot between Ubuntu and Arch, have you compared the mount options between the two systems, are your locale settings the same ....? Please read https://bbs.archlinux.org/viewtopic.php?id=57855 and try to state your questions in a way that doesn't mandate numerous back and forths because they lack needed information.
For the second question., you can use udisks CLI which is what all desktop environments use internally, see: https://wiki.archlinux.org/title/Udisks#Usage and other related tools on that page
Offline
Maybe it is the issue of Not Naming the External HD
Tried with the HD with a name. Auto mount in Nautilus. Right click to open in Terminal.
$ echo $PWD
/run/media/polv/Passport1Compared with another external drive.
$ echo $PWD
/run/media/polv/acfb2570-4804-4180-bbbf-5685b640a7eeFinally, /dev/sda5. However, mounting /dev/sda5 in Nautilus required gtk-sudo or something.
$ echo $PWD
/run/media/polv/dbfe059d-773b-4d9d-9fb8-1a85f443eb1aBTW, why it is /run/media; not /media ?
Last edited by polv (2021-05-22 16:52:25)
Offline
/run/ is a tmpfs directory that should be used for non persistent data like in this case, otherwise you'd either have media littered with directories or need to have something that explicitly removes the directories created for mount points. This is ultimately an udisks compile option that might be set on ubuntu but isn't on Arch
which versions are we talking here? Labels are not guaranteed to exist nor guaranteed to be unique, uuids are. but if I'm reading udisks logic right it will first use the label and fall back to the uuid if the label doesn't exist: https://github.com/storaged-project/udi … tem.c#L647
Are you talking about the exact same drive or are these actually different drives that would make this discussion a moot point? Do you have labels for the drive/partition on ubuntu but not on the one for Arch?
Offline
But UUID is ridiculously long. And it uses only hex. (compare nanoid or base58)
$ lsblk -o NAME,LABEL,UUID,MOUNTPOINT
NAME LABEL UUID MOUNTPOINT
sda
├─sda1 214F-15FA /boot/efi
├─sda2 8ecf8b83-41bc-4f4c-a710-96b522428106 /btrfs
└─sda5 dbfe059d-773b-4d9d-9fb8-1a85f443eb1a /run/media/polv/dbfe059d-773b-4d9d-9fb8-1a85f443eb1a
sdb
├─sdb1 2A17-2651
└─sdb2 e8099d6f-eca8-4031-b788-f5abf70bafdb
sdc
├─sdc1 Passport1 8F4B-65E4 /run/media/polv/Passport1
└─sdc2 acfb2570-4804-4180-bbbf-5685b640a7ee /run/media/polv/acfb2570-4804-4180-bbbf-5685b640a7eeUnrelated, but I can only create Folder in udisk'd NTFS (/dev/sdc1), but not udisk'd ext4 (/dev/sdc2)...
Last edited by polv (2021-05-22 17:40:29)
Offline
So everything is as expected here? If you want a shorter name then define a label for the partitions in question. What does Ubuntu do for the partitions that don't have a label? Does it just invent a readable name? Hopefully not. If you want readable mount point names, define labels for the partitions in question.
Ext4 file systems store their permissions on the file system, you need to chown the directory you intend to have write access to to your user after mounting: https://wiki.archlinux.org/title/File_p … attributes
Last edited by V1del (2021-05-22 17:43:30)
Offline
How do I create very short ID like 8F4B-65E4 or 2A17-2651 ? I know it is not that unique, though.
Offline
Afaik you can't and even if you could, you really don't want to do that. Why would you want to do that?
Edit: You can pass a custom UUID when creating the filesystem i.e. mkfs.ext4 -U xxxx-xxxx or with tune2fs -U for an existing (ext) file system.
Last edited by V1del (2021-05-22 17:54:37)
Offline
Solved. Labeled by Gparted; Although may be possible by Disk Utility as well. It is confusing, because I had to rename LABEL, not NAME.
➜ ~ lsblk -o NAME,LABEL,UUID,MOUNTPOINT
NAME LABEL UUID MOUNTPOINT
sda
├─sda1 214F-15FA /boot/efi
├─sda2 8ecf8b83-41bc-4f4c-a710-96b522428106 /btrfs
└─sda5 UBUNTUSTUDIO dbfe059d-773b-4d9d-9fb8-1a85f443eb1a
sdb
├─sdb1 2A17-2651
└─sdb2 ARCH e8099d6f-eca8-4031-b788-f5abf70bafdb
sdc
├─sdc1 Passport1 8F4B-65E4 /run/media/polv/Passport1
└─sdc2 EXTERNAL-EXT4 acfb2570-4804-4180-bbbf-5685b640a7ee /run/media/polv/EXTERNAL-EXT4Though I have a new problem. That ext4 external HD.
I can mount first, then right click to open Terminal. Then chmod 777 * without sudo.
But I can't allow creating folder that external HD root level.
Last edited by polv (2021-05-22 18:00:01)
Offline
You need to chown or chmod the actual mount point, i.e. in this case
chmod 777 /run/media/polv/EXTERNAL-EXT4that will change the permissions for the root node of the ext4 file system.
Last edited by V1del (2021-05-22 18:41:06)
Offline
Thanks, I would just type $PWD, btw.
Right click and open in Terminal from Nautilus.
EXTERNAL-EXT4 chmod 777 $PWD
chmod: changing permissions of '/run/media/polv/EXTERNAL-EXT4': Operation not permitted
➜ EXTERNAL-EXT4 sudo chmod 777 $PWD
[sudo] password for polv:
➜ EXTERNAL-EXT4 Now, I need sudo.
Offline
yes once, after you should be able to create files and directories as your normal user because the perms should allow you to.
Last edited by V1del (2021-05-22 19:01:41)
Offline