You are not logged in.
Hello,
I've installed openbox and no matter what Iam doing I am unable to dinamically mount my internal partitions. I've searched the net and tried all sorts of suggestions without success.
Gvfs installed
udiskinstalled
udiskieinstalled
Thunarinstalled
Thunar volume managerinstalled
Here are some related data:
[mak@myhost ~]$ udiskie --tray
Can't find file browser: 'xdg-open'. You may want to change the value for the '-b' option.
[mak@myhost ~]$ udiskie-mount /dev/sdb9
not mounting /org/freedesktop/UDisks/devices/sdb9: unhandled device
[mak@myhost ~]$ /etc/polkit-1/rules.d/50-udiskie.rulescreated
polkit.addRule(function(action, subject) {
var YES = polkit.Result.YES;
var permission = {
// required for udisks1:
"org.freedesktop.udisks.filesystem-mount": YES,
"org.freedesktop.udisks.luks-unlock": YES,
"org.freedesktop.udisks.drive-eject": YES,
"org.freedesktop.udisks.drive-detach": YES,
// required for udisks2:
"org.freedesktop.udisks2.filesystem-mount": YES,
"org.freedesktop.udisks2.encrypted-unlock": YES,
"org.freedesktop.udisks2.eject-media": YES,
"org.freedesktop.udisks2.power-off-drive": YES
};
if (subject.isInGroup("storage")) {
return permission[action.id];
}
});Some more info:
[mak@myhost ~]$ ls -lR /dev/disk/
/dev/disk/:
total 0
drwxr-xr-x 2 root root 700 Dec 20 11:42 by-id
drwxr-xr-x 2 root root 180 Dec 20 11:42 by-partlabel
drwxr-xr-x 2 root root 320 Dec 20 11:42 by-partuuid
drwxr-xr-x 2 root root 280 Dec 20 11:42 by-uuid
/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root 9 Dec 20 11:42 ata-HL-DT-STDVD-RAM_GSA-H55N -> ../../sr0
lrwxrwxrwx 1 root root 9 Dec 20 11:42 ata-OCZ-VERTEX3_OCZ-2I8T4W5W18Q80T6Q -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 20 11:42 ata-OCZ-VERTEX3_OCZ-2I8T4W5W18Q80T6Q-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 20 11:42 ata-OCZ-VERTEX3_OCZ-2I8T4W5W18Q80T6Q-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 20 11:42 ata-OCZ-VERTEX3_OCZ-2I8T4W5W18Q80T6Q-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Dec 20 11:42 ata-OCZ-VERTEX3_OCZ-2I8T4W5W18Q80T6Q-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Dec 20 11:42 ata-OCZ-VERTEX3_OCZ-2I8T4W5W18Q80T6Q-part5 -> ../../sda5
lrwxrwxrwx 1 root root 9 Dec 20 11:42 ata-WDC_WD3200AAKS-00B3A0_WD-WMAT10680207 -> ../../sdb
lrwxrwxrwx 1 root root 10 Dec 20 11:42 ata-WDC_WD3200AAKS-00B3A0_WD-WMAT10680207-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Dec 20 11:42 ata-WDC_WD3200AAKS-00B3A0_WD-WMAT10680207-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Dec 20 11:42 ata-WDC_WD3200AAKS-00B3A0_WD-WMAT10680207-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 10 Dec 20 11:42 ata-WDC_WD3200AAKS-00B3A0_WD-WMAT10680207-part4 -> ../../sdb4
lrwxrwxrwx 1 root root 10 Dec 20 11:42 ata-WDC_WD3200AAKS-00B3A0_WD-WMAT10680207-part5 -> ../../sdb5
lrwxrwxrwx 1 root root 10 Dec 20 11:42 ata-WDC_WD3200AAKS-00B3A0_WD-WMAT10680207-part6 -> ../../sdb6
lrwxrwxrwx 1 root root 10 Dec 20 11:42 ata-WDC_WD3200AAKS-00B3A0_WD-WMAT10680207-part7 -> ../../sdb7
lrwxrwxrwx 1 root root 10 Dec 20 11:42 ata-WDC_WD3200AAKS-00B3A0_WD-WMAT10680207-part8 -> ../../sdb8
lrwxrwxrwx 1 root root 10 Dec 20 11:42 ata-WDC_WD3200AAKS-00B3A0_WD-WMAT10680207-part9 -> ../../sdb9
lrwxrwxrwx 1 root root 9 Dec 20 11:42 wwn-0x50014ee055d0b211 -> ../../sdb
lrwxrwxrwx 1 root root 10 Dec 20 11:42 wwn-0x50014ee055d0b211-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Dec 20 11:42 wwn-0x50014ee055d0b211-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Dec 20 11:42 wwn-0x50014ee055d0b211-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 10 Dec 20 11:42 wwn-0x50014ee055d0b211-part4 -> ../../sdb4
lrwxrwxrwx 1 root root 10 Dec 20 11:42 wwn-0x50014ee055d0b211-part5 -> ../../sdb5
lrwxrwxrwx 1 root root 10 Dec 20 11:42 wwn-0x50014ee055d0b211-part6 -> ../../sdb6
lrwxrwxrwx 1 root root 10 Dec 20 11:42 wwn-0x50014ee055d0b211-part7 -> ../../sdb7
lrwxrwxrwx 1 root root 10 Dec 20 11:42 wwn-0x50014ee055d0b211-part8 -> ../../sdb8
lrwxrwxrwx 1 root root 10 Dec 20 11:42 wwn-0x50014ee055d0b211-part9 -> ../../sdb9
lrwxrwxrwx 1 root root 9 Dec 20 11:42 wwn-0x5e83a97e83f2ad66 -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 20 11:42 wwn-0x5e83a97e83f2ad66-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 20 11:42 wwn-0x5e83a97e83f2ad66-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 20 11:42 wwn-0x5e83a97e83f2ad66-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Dec 20 11:42 wwn-0x5e83a97e83f2ad66-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Dec 20 11:42 wwn-0x5e83a97e83f2ad66-part5 -> ../../sda5
/dev/disk/by-partlabel:
total 0
lrwxrwxrwx 1 root root 10 Dec 20 11:42 Bios\x20boot -> ../../sdb1
lrwxrwxrwx 1 root root 10 Dec 20 11:42 Partition\x201 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 20 11:42 Partition\x202 -> ../../sda3
lrwxrwxrwx 1 root root 10 Dec 20 11:42 Partition\x203 -> ../../sda4
lrwxrwxrwx 1 root root 10 Dec 20 11:42 Partition\x204 -> ../../sda5
lrwxrwxrwx 1 root root 10 Dec 20 11:42 Storage -> ../../sdb9
lrwxrwxrwx 1 root root 10 Dec 20 11:42 Swap -> ../../sdb8
/dev/disk/by-partuuid:
total 0
lrwxrwxrwx 1 root root 10 Dec 20 11:42 014f51d6-41f4-4fd8-9a1d-cb2c2e2edef4 -> ../../sdb9
lrwxrwxrwx 1 root root 10 Dec 20 11:42 1cbd25cd-140b-4c09-9b3c-0904897e9c7b -> ../../sdb5
lrwxrwxrwx 1 root root 10 Dec 20 11:42 4d0b872f-debd-42e6-917c-173a4d8f0632 -> ../../sda4
lrwxrwxrwx 1 root root 10 Dec 20 11:42 4fed9fee-6822-40f5-baa3-757e46b184fa -> ../../sdb3
lrwxrwxrwx 1 root root 10 Dec 20 11:42 6336e05f-353f-47cb-86fe-037d95ae42f6 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Dec 20 11:42 6516c65f-ace9-47a6-bfbd-a92dc730833c -> ../../sdb7
lrwxrwxrwx 1 root root 10 Dec 20 11:42 78b957e9-d8e1-46c4-9de5-bf87d4306876 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Dec 20 11:42 9f239668-b781-4a07-8294-32abe248b63d -> ../../sdb6
lrwxrwxrwx 1 root root 10 Dec 20 11:42 c2543dd5-d5c9-4b64-abc4-b58352a81eee -> ../../sda5
lrwxrwxrwx 1 root root 10 Dec 20 11:42 c4cbeff6-84d7-4b07-be1d-1af2758ac1ab -> ../../sdb8
lrwxrwxrwx 1 root root 10 Dec 20 11:42 caec6ab5-3652-4e0b-9d60-ab29b50d9950 -> ../../sda3
lrwxrwxrwx 1 root root 10 Dec 20 11:42 d41cc754-69f9-47f1-9094-2d090025b270 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 20 11:42 e7002aea-f106-4006-814e-71719368a67f -> ../../sdb4
lrwxrwxrwx 1 root root 10 Dec 20 11:42 fa5eb377-1f30-4a36-b48f-e6c0d6cb61d8 -> ../../sda2
/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 10 Dec 20 11:42 033a8daf-40bb-4dc4-9a56-615430311094 -> ../../sdb8
lrwxrwxrwx 1 root root 10 Dec 20 11:42 28fe077f-cc15-4a12-a4c6-aa4f79a59598 -> ../../sdb7
lrwxrwxrwx 1 root root 10 Dec 20 11:42 426648fd-98f5-4fb0-9114-bdbdfea9047c -> ../../sdb9
lrwxrwxrwx 1 root root 10 Dec 20 11:42 4e37ac0d-ec20-4140-85b0-a471c41c458e -> ../../sda3
lrwxrwxrwx 1 root root 10 Dec 20 11:42 57422bea-c24d-473c-9b5d-9d437c6fd49c -> ../../sdb4
lrwxrwxrwx 1 root root 10 Dec 20 11:42 5d58c89e-5537-4c93-b938-9a3be44b2a6e -> ../../sdb5
lrwxrwxrwx 1 root root 10 Dec 20 11:42 9362116e-ad3b-4140-a96f-04c92e8475a7 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Dec 20 11:42 a12ef4bb-7547-4a5a-ad91-693644087700 -> ../../sdb3
lrwxrwxrwx 1 root root 10 Dec 20 11:42 a228f89c-c179-4e4d-8ade-4cde4171b478 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 20 11:42 a6c840dc-e210-4186-868f-8420ca28c74e -> ../../sda5
lrwxrwxrwx 1 root root 10 Dec 20 11:42 aadf906f-cbd5-4ca5-ab3e-73ac2e33b2df -> ../../sdb6
lrwxrwxrwx 1 root root 10 Dec 20 11:42 b781966f-a92b-47e3-bae4-1ed73b963923 -> ../../sda4
[mak@myhost ~]$ Last edited by jmak (2014-12-20 20:37:11)
Offline
I use udisks2 and this rule at /etc/polkit-1/rules.d/10-enable-mount.rules:
polkit.addRule(function(action) {
if (action.id == "org.freedesktop.udisks2.filesystem-mount-system") {
return polkit.Result.YES;
}
});This seems to work with thunar and my legion of minimal WMs (DWM, Awesome, i3, monsterwm, OpenBox & PekWM).
Jin, Jîyan, Azadî
Offline
Thanks Head_on_a_Stick,
Tried that but still doesn't work.
Offline
What version of udiskie are you using? Do you have a config file? Is /dev/sd9 a partition on an internal drive?
Offline
What version of udiskie are you using? Do you have a config file? Is /dev/sd9 a partition on an internal drive?
[mak@myhost ~]$ pacman -Ss udiskie
community/udiskie 1.1.2-1 [installed]
Removable disk automounter using udisks
[mak@myhost ~]$ /dev/sdb9 is my second internal harddrive.
I don't have any separate udiskie config file, I just installed it but never touched it.
Offline
jasonwryan wrote:What version of udiskie are you using? Do you have a config file? Is /dev/sd9 a partition on an internal drive?
/dev/sdb9 is my second internal harddrive.
So udiskie is not the issue: you need an entry in your fstab, with noauto.
Offline
jmak wrote:jasonwryan wrote:What version of udiskie are you using? Do you have a config file? Is /dev/sd9 a partition on an internal drive?
/dev/sdb9 is my second internal harddrive.
So udiskie is not the issue: you need an entry in your fstab, with noauto.
I have 13 internal partitions.
Offline
jasonwryan wrote:jmak wrote:/dev/sdb9 is my second internal harddrive.
So udiskie is not the issue: you need an entry in your fstab, with noauto.
I have 13 internal partitions.
And, your point is?
udiskie uses UDisks to automatically mount removable media, such as CDs and flash drives. It will mount the media in a new directory under /media or
/run/media, using the device name if available.
Offline
Modify and add the following rule:
/etc/polkit-1/rules.d/10-auth.rules
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.udisks.filesystem-mount-system-internal" && subject.user == "wormzy") {
return polkit.Result.YES;
}
});Then you will be able to mount using, e.g.
udisks --mount /dev/sdb9I really don't know why mount helpers insist on treating internal and external partitions differently.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Modify and add the following rule:
/etc/polkit-1/rules.d/10-auth.rulespolkit.addRule(function(action, subject) { if (action.id == "org.freedesktop.udisks.filesystem-mount-system-internal" && subject.user == "wormzy") { return polkit.Result.YES; } });Then you will be able to mount using, e.g.
udisks --mount /dev/sdb9I really don't know why mount helpers insist on treating internal and external partitions differently.
Hi WorMzy,
It works.
Should I put this
udisks --mount /dev/sdb9in ~/.xinitrc with all the other partitions so that they mount automatically?
Or the openbox autostart?
Last edited by jmak (2014-12-20 20:04:32)
Offline
If you want them mounted when you log in, then yes. If you want the partitions mounted at boot time though, you would be better off following Jasonwryan's hint about fstab.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
If you want them mounted when you log in, then yes. If you want the partitions mounted at boot time though, you would be better off following Jasonwryan's hint about fstab.
Thanks WorMzy,
This is a really elegant solution. I put 3 partitions - what I always need - in .xinitrc, which automounts them and I can always access the other partitions when need be manually typing the
udisks --mount /dev/sdbx command.
The partitions also appear in the left bar of the filemanager.
Thanks a lot once again.
Offline