Re: Configuring Fedora Core 4 & USB Flash drives?



On Sat, 2005-12-31 at 05:08 -0800, tlhackque wrote:

> Fedora Core 4. Plug in a USB thumb drive.
> Successfully recognized by the kernel & a SCSI "drive" is created.
> But it doesn't get mounted put on the desktop. CDROMs/DVDs do. I
> have the desktop->preferences->removable drives->{mount drives when
> hot-plugged, media when inserted clicked. A manual mount does work;
> the device then appears on the desktop as expected.
>
> So something in the hotplug chain is deciding not to
> do the mount. I got lost in the hal/hotplug/automount scripts.
> Someone's been here before. What's the easiest way to track this down?
> (Or the recipe for configuring this device?)

Show us your /etc/fstab file.

I've just been experimenting with the same thing myself. If I made no
entry for the drive in my fstab file, nor created the mount point
directory, the system took care of everything itself (including mounting
an icon on the desktop). But if I did make an fstab entry, I had to
make one in the same fashion as it did (the auto-mounting routine), and
I had to create the mount point diretory, for it to work.

e.g. Here's mine:
/dev/flashdrive /media/flashdrive vfat pamconsole,noexec,nodev,noauto,dmask=0002,fmask=0113,fscontext=system_u:object_r:removable_t 0 0

(Note the fscontext details. The mask options are just to suit my
needs; I don't want files with executable bits set.)

The flashdrive device was set up by a rule in /etc/udev/rules.d/. I've
a "10-local.rules" file, in there, with this in it:
BUS=="scsi", SYSFS{model}=="USB Flash Driver", SYMLINK="flashdrive"

Some reference material about this:
<http://www.reactivated.net/writing_udev_rules.html>

I've almost got the mounting the way I want it. What I don't want is an
icon on the desktop, or an entry in Nautilus, saying "131M Removeable
Media", I want to pick the name myself. I haven't worked out where
that's set.

And why do I care about that? Because my digital camera auto mounts
with almost the same title (128M instead of 131M). I want names that
mean something to me.

--
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



Relevant Pages

  • Re: RFC: Adding a ``user mount option
    ... media such as CDs, and floppy disks without users necessarily needing to ... I assume GNOME works in a similar way. ... icon of course will mount the media with the 'mount' command. ...
    (freebsd-hackers)
  • fsck does not fix the drive
    ... I've been doing fsck in one of my volume drives so I ... can mount it, but always gets the same error for several times now. ... missing. ...
    (comp.unix.aix)
  • Re: [SLE] USB Mount issue: 9.2
    ... Subject: USB Mount issue: 9.2 ... > Notice the relationship between the SerialNumber entry and the name ... > assigned to the mount point created in /media. ... > Please read the FAQs: ...
    (SuSE)
  • [Solved] usb-storage device wrongly seen as "write protect is on"
    ... when I plug it and I try to mount it, ... so I cannot mount it read-write. ... sd_mod driver says that "write protect is off"). ... reports that the media is write protected. ...
    (Linux-Kernel)
  • Re: 2.6.0-test9 VFAT problem
    ... Friday when I got home I tried to mount my belkin reader with sda in the ... I got 'no media found'. ... if I put the 64mb card in, ...
    (Linux-Kernel)