Re: fstab to mount as hal does it
Hi Seb,
You can do this by following these steps:
1°) Install packages: usbmount, hal and pmount
2°) Edit the file /etc/usbmount/usbmount.conf and modify these lines like that:
FILESYSTEMS="ext2 ext3 vfat"
FS_MOUNTOPTIONS="fstype=vfat,gid=floppy,dmask=0007,fmask=0117"
3°) Add your user to the group plugdev:
# adduser <your-user> plugdev
4°) To finish remount your fs:
mount -a -o remount
Or reboot your computer.
Ben
2009/6/11 Seb <spluque@gmail.com>
>
> Hi,
>
> I think it's hald daemon that mounts an external USB hard drive to
> /media/DISK_LABEL whenever one clicks on its icon in a file browser or
> the like. This works very nicely if you're at the desktop, plug in a
> device and want to access it for a while, then unplug it and go away
> with your USB drive. Permissions are left untouched in the USB tree,
> and /media/DISK_LABEL has root permisions. It's not practical though if
> the drive is always by the desktop, as backup space or normal
> filesystem. I have a few such devices and would like to do what hal
> does here, and avoid having to create a directory under /media with the
> label of all the drives, and worry about all the different mounting
> options and any other tricks hal does here. Is there a way to have any
> of these devices that are plugged in at boot up be mounted
> automatically, to avoid having to mount them manually after booting?
> Thanks.
>
>
> --
> Seb
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
Reply to: