Osamu Aoki wrote, on 2009-03-02 01:25:
On Sun, Mar 01, 2009 at 01:56:12PM +0100, Robert Latest wrote:
Hello people,
the subject says it all. I (often, but not always) have a portable USB
disk connected to the computer that I would like to have automounted
on boot. I could just knit some init script for this task, but before
I do that I'd like to check if there is a "canonical Debian way" to
achieve it.
I do not know if it is "canonical Debian way" or not ... but there are
few ways.
Do you use modern desktop? Gnome, KDE, ... then it automounts.
If non X system, just add it to /etc/fstab
Osamu
It didn't work for me in KDE 3.5.10 (running Debian unstable here). I
might have the wrong packages installed.
What I did was identify the 2 usbdrives I own and set up mount points
for them and put the following in /etc/fstab:
# line for first drive
/dev/disk/by-id/usb-Verbatim_STORE_N_GO_078A18B40293-0:0-part1
/mnt/usbdrive vfat
defaults,users,uid=65534,gid=65534,umask=000 0 2
# line for second drive
/dev/disk/by-id/usb-Flash_Drive_AU_USB2.0_OGUN4WMN-0:0 /mnt/usb8gig
vfat
defaults,users,uid=65534,gid=65534,umask=000,shortname=win95 0
2
"shortname=win95" was needed to enable me to create a dvd directory tree
on the second drive - the joys of case-sensitive versus case insensitive
systems. The "defaults" word is only needed if there are no other
entries in that field of /etc/fstab.
Arthur.
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org