Which device assigned to removable media
Jerry Feldman
gaf at blu.org
Tue May 4 14:26:42 UTC 2010
On 05/03/2010 06:28 PM, g wrote:
> Geoffrey Leach wrote:
> <snip>
>
>
>> My original post was somewhat unclear. The question was which device is
>> assigned to the disk when it's plugged in so I can know which device to
>> mount.
>>
>> It appears that if I look at /dev/disk/by-label, the device name --
>> Sansa\x20e250 for example, is a symbolic link to the device -- ../../
>> sdb1 for example. I can then mount /dev/sdb1.
>>
> so what happens when you use commands 'df' or 'mount'?
>
> i do not have an eSATA drive to check with, but i do know that when plug
> in a usb memory stick, i get following.
>
> +++
> $ mount|grep /dev|sort
> /dev/hda1 on / type ext3 (rw)
> /dev/hda3 on /home type ext3 (rw)
> /dev/hdb6 on /hd/b/06 type ext3 (rw)
> devpts on /dev/pts type devpts (rw,gid=5,mode=620)
> /dev/sde on /media/disk type vfat
> (rw,noexec,nosuid,nodev,noatime,uid=500,utf8,shortname=lower)
> tmpfs on /dev/shm type tmpfs (rw)
>
> $ df|sort
> /dev/hda1 8076508 3842888 3816736 51% /
> /dev/hda3 10721904 6261968 3906500 62% /home
> /dev/hdb6 4814936 140776 4429572 4% /hd/b/06
> /dev/sde 254218 3208 251010 2% /media/disk
> Filesystem 1K-blocks Used Available Use% Mounted on
> tmpfs 192676 0 192676 0% /dev/shm
> +++
>
>
> therefore, i tend to presume that if you set up your eSATA drive in
> '/etc/fstab' for auto mount and connected it, then 'mount' and 'df'
> should show you your eSATA drive.
>
> as i said, i do not have a eSATA to try and i may be wrong.
>
> [and yes, i am not currently under f12. having too many problems with
> kde at this time.]
>
>
As Geoff said previously, if you use /dev/disk/by-label in fstab, then
it does not matter where the disk is inserted in relation to the other
drives. Since eSata drives may be hot pluggable, this is the best option
as the physical device (/dev/sdx) may change. Additionally, the newer
Linux releases now use the SCSI designation, even for IDE drives so you
should not see and /dev/hdx designations any longer.
--
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix
PGP key id: 537C5846
PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB CA3B 4607 4319 537C 5846
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20100504/a458d4ac/attachment.bin
More information about the users
mailing list