[aklug] Re: Automounting to the directory of your choice

From: barsalou <barjunk@attglobal.net>
Date: Sun Apr 05 2009 - 16:24:24 AKDT

Quoting Greg Madden <gomadtroll@acsalaska.net>:

> Mike, have you considered using UUID instead of /dev/sda1. ? FYI, UUID is
> a distintive identifier for each drive or maybe file system ? If you use
> externel usb devices the same device gets mounted the same place each
> time, no switching of sda to sdb etc.
>
> UUID=06e2f9c4-046b-46fa-b49c-7ae18bccc7cf /media/usbdisk xfs user,rw 0 1
> UUID=4eb66a47-7b39-42c7-97ee-f81ebd173d88 /media/usbkey4gb ext2
> user,rw 0 1
> UUID=4559-03C1 /media/usbkey1gb vfat user,rw 0 0

A quick google search showed that I could find the UUID of the device
by doing:

ls -al /dev/disk/by-uuid | grep sda1

This would alleviate worrying about multiple devices being plugged in.

Thanks Greg.

Mike B.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sun Apr 5 16:24:34 2009

This archive was generated by hypermail 2.1.8 : Sun Apr 05 2009 - 16:24:34 AKDT