[arch-general] Softlink /media
Am I the only one mounting e.g. an USB stick by the desktop and then using a terminal emulation? Is /media still needed by anything? If not I would prefer a softlink media -> /run/media. Hm? There's no big difference between typing # ls /run/media/spinymouse/INTENSO and # ls /media/spinymouse/INTENSO I wonder if it's possible to use $HOME for the softlink? IMO an USB stick etc. should be auto-mounted at /media, I prefer to type /media/INTENSO only. For now I added the softlink media -> /run/media. Regards, Ralf Regards, Ralf
On Sun, 05 Aug 2012 17:56:22 +0200 Ralf Mardorf <ralf.mardorf@alice-dsl.net> wrote:
Am I the only one mounting e.g. an USB stick by the desktop and then using a terminal emulation?
No... I have never even started my thunar :)
Is /media still needed by anything? If not I would prefer a softlink media -> /run/media.
Your email client is Evolution 3.4.2 which probably means you use gnome3 with gvfs and udisks{,2}. For the rest of us /media is still a valid place to dynamically create mountpoints. For instance, pmount uses only /media.
Hm?
There's no big difference between typing
# ls /run/media/spinymouse/INTENSO
and
# ls /media/spinymouse/INTENSO
I wonder if it's possible to use $HOME for the softlink?
IMO an USB stick etc. should be auto-mounted at /media, I prefer to type /media/INTENSO only. For now I added the softlink media -> /run/media.
Well... First, automounting is a serious security hole. Nothing should be automounted unless explicitly permitted by the user. Second, adding softlinks is not a good idea IMHO because /media belongs to core/filesystem and your modifications will most likely to disappear on update. If you really don't like /run/media -- try bind-mounting it to /media in fstab.
Regards, Ralf
Regards, Ralf
-- Leonid Isaev GnuPG key: 0x164B5A6D Fingerprint: C0DF 20D0 C075 C3F1 E1BE 775A A7AE F6CB 164B 5A6D
On Sun, 2012-08-05 at 11:12 -0500, Leonid Isaev wrote:
Your email client is Evolution 3.4.2 which probably means you use gnome3
No it does mean that I used GNOME2 and I will continue sharing Evolution's maildir with other Linux installs on my computer, while keeping flags etc. too. I'm running Xfce4, but I start sessions using GDM, since I'm accustomed to GDM.
Well... First, automounting is a serious security hole.
Oops, pardon, I need to run Thunar first to mount by click.
Second, adding softlinks is not a good idea IMHO because /media belongs to core/filesystem and your modifications will most likely to disappear on update. If you really don't like /run/media -- try bind-mounting it to /media in fstab.
Ok, thank you. Unfortunately it doesn't work without running "sudo mount -a" after each reboot ... [spinymouse@archlinux ~]$ cat /etc/fstab # # /etc/fstab: static file system information # # <file system> <dir> <type> <options> <dump> <pass> tmpfs /tmp tmpfs nodev,nosuid 0 0 /dev/sda10 swap swap defaults 0 0 /dev/sda9 / ext3 defaults 0 1 /dev/sdb7 swap swap defaults 0 0 /run/media /media none bind 0 0 ... more precise ... [spinymouse@archlinux ~]$ sudo mount -a mount: special device /run/media does not exist I first need to mount something by Thunar and then "sudo mount -a", then everything is ok. Can I mkdir /run/media or will this cause a conflict or will it be removed at shutdown or when unmounting. On Sun, 2012-08-05 at 19:13 +0300, Mantas Mikulėnas wrote:
I wonder if it's possible to use $HOME for the softlink?
Not directly, but you can have ~/media → /run/media/spinymouse.
Yes, but it would be nice if it would work for all potential users too.
IMO an USB stick etc. should be auto-mounted at /media, I prefer to type /media/INTENSO only.
It's certainly more convenient – but there's still tab-completion, so it's not too bad now.
Good point, I'm not accustomed to use tab-complete for paths.
they don't want user A to see user B's mounted disks.
That's reasonable, but a disadvantage on my machine. Even if someday there should be several users, it would be one user after the other, not several users at the same time, since my machine is for making arts, especially for making audio productions. Regards, Ralf
Ok, thank you. Unfortunately it doesn't work without running "sudo mount -a" after each reboot ...
I have some simple udev rules and scripts that I have not had time to make Generic and so will need a little customising, if your interested? They enable gui-less automounting, easily customised mount options per filesystem type and easily customised mounts to /media/usb0, /media/usb1 etc. but currently break the multi-seat that alost no-one uses, even that shouldn't be hard to fix though, if anyone cared. At http://igurublog.wordpress.com/ and in arch packages there is also a more Generic supported mounting daemon called udevil that may or may not work for you? -- _______________________________________________________________________ 'Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface' (Doug McIlroy) _______________________________________________________________________
On Mon, 2012-08-06 at 12:48 +0100, Kevin Chadwick wrote:
Ok, thank you. Unfortunately it doesn't work without running "sudo mount -a" after each reboot ...
I have some simple udev rules and scripts that I have not had time to make Generic and so will need a little customising, if your interested?
They enable gui-less automounting, easily customised mount options per filesystem type and easily customised mounts to /media/usb0, /media/usb1 etc. but currently break the multi-seat that alost no-one uses, even that shouldn't be hard to fix though, if anyone cared.
At http://igurublog.wordpress.com/ and in arch packages there is also a more Generic supported mounting daemon called udevil that may or may not work for you?
Hi Kevin, I've got a long todo list, so no time at the moment, but FWIW I flag your reply. "mount -a" is ok and much better is tab key completion, I only need to change my work-flow a little bit. Thank you for your offer, Ralf
Well... First, automounting is a serious security hole.
Serious? In what way? There are far more serious security holes enabled by default that if your concerned have to be disabled or be prevented by disabling the usb port in the bios. Also if a user has physical access on 99.9% of desktops he has root no matter what your OS, local or remote says. -- _______________________________________________________________________ 'Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface' (Doug McIlroy) _______________________________________________________________________
On Sun, Aug 5, 2012 at 6:56 PM, Ralf Mardorf <ralf.mardorf@alice-dsl.net> wrote:
Is /media still needed by anything?
Yes, I think udisks (v1) still mounts stuff there.
There's no big difference between typing
# ls /run/media/spinymouse/INTENSO
and
# ls /media/spinymouse/INTENSO
Then `rm /media` and create the symlink yourself.
I wonder if it's possible to use $HOME for the softlink?
Not directly, but you can have ~/media → /run/media/spinymouse.
IMO an USB stick etc. should be auto-mounted at /media, I prefer to type /media/INTENSO only.
It's certainly more convenient – but there's still tab-completion, so it's not too bad now. AFAIK, the change was made for security/privacy reasons, though. Fedora is trying to have multi-seat working transparently, and I think they don't want user A to see user B's mounted disks. -- Mantas Mikulėnas
participants (4)
-
Kevin Chadwick
-
Leonid Isaev
-
Mantas Mikulėnas
-
Ralf Mardorf