Re: Automatically mounting USB storage devices under their correct mount points
- From: Ignoramus23760 <ignoramus23760@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 02 May 2008 14:02:47 -0500
On 2008-05-02, K. Jennings <kjennings@xxxxxxxxxxxxxx> wrote:
I have two USB sticks and two USB hard drives connected to a PC.
The USB sticks have been formatted as ext2, whereas the drives have been
formatted as jfs. My question is, how can things be configured so that
each of those drives gets mounted under its correct mount point at boot
time?
Very easy.
Look under /dev/disk/by-id/
ls -l /dev/disk/by-id/
Let's say that your stick's partition shows as
/dev/disk/by-id/usb-USB_USB_2.0_Flash_13DFA16D-0:0-part1
(my actual example)
Then you can add a line to /etc/fstab like this:
/dev/disk/by-id/usb-USB_USB_2.0_Flash_13DFA16D-0:0-part1 /mnt/4gb auto noauto,user 0 0
and create directory
mkdir /mnt/4gb
and then it will be automounted the next time you insert the thumb
drive.
I do it all the time;
i
If I understand it correctly, the actual SCSI device associated
to each piece of hardware will be selected at boot time, but I do not
understand how that is done, or whether one has any control over it. For
example, USB stick #1 might be associated with /dev/sda in one occasion,
but with /dev/sdb on another. How can one then make sure that USB stick
#1 will always be mounted under (say) /Stick1, stick #2 under /Stick2,
etc.? (For simplicity, I am assuming a single partition in each of the
USB storage devices.)
--
Due to extreme spam originating from Google Groups, and their inattention
to spammers, I and many others block all articles originating
from Google Groups. If you want your postings to be seen by
more readers you will need to find a different means of
posting on Usenet.
http://improve-usenet.org/
.
- Follow-Ups:
- Re: Automatically mounting USB storage devices under their correct mount points
- From: Dances With Crows
- Re: Automatically mounting USB storage devices under their correct mount points
- References:
- Prev by Date: Automatically mounting USB storage devices under their correct mount points
- Next by Date: A new reader? Welcome to comp.os.linux.misc, read this first if you're new here (FAQ)
- Previous by thread: Automatically mounting USB storage devices under their correct mount points
- Next by thread: Re: Automatically mounting USB storage devices under their correct mount points
- Index(es):
Relevant Pages
|