Re: Alias for pen drives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matthew Miller:
>> Or just reformat the drive with
>>
>> mkfs -t vfat -n yourlabel /dev/whatever

Yes, of course, I forgot about that.  If you don't mind formatting a
drive, that's an easy solution.

Paul Smith:
> Thanks to both. Now my pen drive has the label 'MYPEN', and there is
> the following line in /etc/fstab:
> 
> /dev/MYPEN /media/disco vfat noauto,user 0 0
> 
> but the pen drive is mounted on /media/MYPEN and not on /media/disco. Any ideas?

Noticing you've already got an answer, but I'll point out why that
doesn't work, for a couple of reasons:

The label you give it is not a device, it's still going to be a device
at /dev/sdb, or /dev/sdc, etc., the device, itself, has a "volume label"
as part of the file system.  Mounting via labels looks at what's stored
on the device.

Once you plug a device into Fedora that's got a volume, the
auto-mounting system will mount it unless it finds something in the
fstab file with the same details.  If you had an entry for /dev/sdc in
there, it'd never auto mount a /dev/sdc device.  Which might be a
problem, as the /dev/sdc thing you intended it for might be applied to
something else attaining the /dev/sdc position.

-- 
(This box runs FC5, my others run FC4 & FC6, in case that's
 important to the thread.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux