You are not logged in.
Pages: 1
I'm using i3 instead of a DE, so I have to configure a lot of things myself. One of the things that I cannot get working is removable devices. I'd like USB flash drives and CDs/DVDs to mount automatically (I'm using external optical drive via USB). devmon script detects CDs/DVDs successfully, but it usually doesn't mount them. Thunar doesn't show an optical disc at all, while PCManFM does, but sometimes disc isn't mounted.
At the moment I want to burn an ISO on a blank DVD. I've tried xfburn and graveman. None of these detect my optical drive, but I can point graveman to /dev/sr0. Still can't burn because it says there's no disc in the drive.
Here's error message when I try to mount optical disc in PCManFM:
Error mounting: mount: block device /dev/sr0 is write-protected, mounting read-only
mount: /dev/sr0: can't read superblock
What can I do? How do DEs handle this? Is there any way to reproduce DEs' behavior?
I'm already launching i3 with ck-launch-session dbus-launch. I've also added .pkla file regarding storage to polkit.
Offline
Do you have installed gvfs?
If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau
Registered Linux User: #559057
Offline
Is there no other way than installing gvfs (which has GNOME dependencies)? I'm hoping for a few packages and a magic configuration to save the day. Does gvfs mount external devices even when not in X or does X have to be running?
I'll install it anyway and will report back.
Offline
You can't mount a blank disc because it doesn't have a filesystem, let the disc-burning app handle it.
I'm using cdrkit:
[karol@black ~]$ type cdr
cdr is a function
cdr ()
{
cdrecord -v blank=fast -dao -eject dev=/dev/sr0 "$1"
}
No gvfs required.
I'm using a regular CD & DVD burners, not external usb ones.
Last edited by karol (2011-10-28 18:16:09)
Offline
Is there no other way than installing gvfs (which has GNOME dependencies)? I'm hoping for a few packages and a magic configuration to save the day. Does gvfs mount external devices even when not in X or does X have to be running?
I'll install it anyway and will report back.
Mounting with gvfs will be successful only in X, i think.
Another way of mounting when not in X could be with /etc/fstab file.Create device locations and mounting points.
If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau
Registered Linux User: #559057
Offline
gvfs shows everything nicely in thunar and PCManFM, along with other filesystems (which didn't work before either). But GUI burners still don't detect the blank disc.
@karol: Thanks, this works nicely for ISOs. It outputs this when trying the same thing on a directory:
Track 01: data unknown length
wodim: Track 1 has unknown length.
wodim: Use tsize= option in SAO mode to specify track size.
Is this because it only works with ISOs? I didn't find any mention on the man pages of how to get tsize for a directory.
How would I set up fstab to mount automatically? I've tried to do this for a flash drive a few days ago, but if I remember correctly I still had to do "mount /mnt/path". And the flash drive didn't always have the same device path (/dev/sdb in my case).
Offline
@karol: Thanks, this works nicely for ISOs. It outputs this when trying the same thing on a directory:
Track 01: data unknown length wodim: Track 1 has unknown length. wodim: Use tsize= option in SAO mode to specify track size.
Is this because it only works with ISOs? I didn't find any mention on the man pages of how to get tsize for a directory.
Oh yes, these particular settings are perfect for isos but I simply haven't tried burning directories, I use pendrives instead.
Offline
How would I set up fstab to mount automatically? I've tried to do this for a flash drive a few days ago, but if I remember correctly I still had to do "mount /mnt/path". And the flash drive didn't always have the same device path (/dev/sdb in my case).
You could try without fstab but with udev https://wiki.archlinux.org/index.php/Ud … SB_devices
Or with fstab:
https://wiki.archlinux.org/index.php/US … with_Fstab
If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau
Registered Linux User: #559057
Offline
The fstab way isn't working nicely, since device path sometimes changes. I've added one of the udev rules and it works.
Thanks for the help
Offline
The fstab way isn't working nicely, since device path sometimes changes.
If you're using e.g. '/dev/sda1' as the device path then yes, it will change. You need to https://wiki.archlinux.org/index.php/Pe … ming#Fstab or use udev, whichever you prefer.
Offline
That would work great if there was a persistent name for USB ports. Udev conflicts with gvfs (which I'll actually keep because of easy network browsing) and I can't mount manually with write permissions as normal user, even with options described on the wiki.
Pmount in combination with bashmount (from AUR) works great, it doesn't need X and it doesn't conflict with gvfs, so it doesn't matter if I mount a device outside of X, from bash or from file manager.
The only issue that I have now is that unmounting with gvfs also removes the device under /dev. Is it possible to configure gvfs not to do this? It's a microscopic annoyance and I can live with it.
Offline
Pages: 1