Sponsored Content
Top Forums UNIX for Advanced & Expert Users Problems with udev & mounting fat32 usb storage Post 302510714 by jjinno on Monday 4th of April 2011 06:41:39 PM
Old 04-04-2011
Problems with udev & mounting fat32 usb storage

I have been trying to get USB storage devices to auto-mount themselves under "/media/usb/<dev>" but have been running into some problems with udev (on FC7, btw... running udevd v.106)

Every time I put in a FAT (not 32) USB stick, udev identifies it as "USB storage", identifies the partition and calls it "/dev/sdb1", triggers my rule to create a dev-alias of "/dev/sdb1" to something like "/dev/usb-sdb1", and triggers my other rule to run a "safely mount/unmount" script on that dev-alias.

The problem is when I try to use FAT32. I never get more than a "SCSI Generic" detection, thus never get a "sdb1"... in other words, it looks like FC7/udev cant identify that there is a valid partition there? The problem I have with this is that it kills the auto-mounting. I dont care if there is a dev-node for the partition itself, but if I cannot detect this situation, then I cant run the subsequent mount on "/dev/sdb" for example (which does actually work)

Is there some kind of Kernel USB/FAT32 options that need to be used for this to work? Or am I doing something stupid?

BTW - I will try to get udevmonitor output, but I don't own the machine
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

mounting USB

Hi I was trying to mount my USB flashdrive on solaris 10 and I am getting the message saying that (I have already gone through the previous blogs in the forum) mount: Block device required. I have tried most of the possible ways. #rmformat(gives me the necessary information about my flash... (1 Reply)
Discussion started by: akhil1460
1 Replies

2. Solaris

FAT32 usb external hard drive - how to mount??

Hello ! What is the comand to mount and usb hard disk ? I have Solaris 10 installed! 10nx! (1 Reply)
Discussion started by: daniel.balasa
1 Replies

3. UNIX for Dummies Questions & Answers

Need help with mounting my USB

My previous post seems to be erased and I didn't get any help. I'm logged as root now but no mounting command seems to work, I've tried: Mount -t vfat /dev/sdc1 /mnt/USB Changing "sdc1" for hda1-7, and sdc1-7, and still nothing. Sometimes i get: "special device not found" and others "device... (4 Replies)
Discussion started by: Dax01
4 Replies

4. Solaris

Amazon S3 storage mounting.

We need to mount an amazon S3 share on windows as well as Solaris servers. Any help is appreciated. Thanks in advance. (5 Replies)
Discussion started by: uxadmin007
5 Replies

5. Solaris

Mounting USB HD

I am very new to Solaris. The machine I am working with is running Solaris 10. I have a 1.5 TB hard drive plugged into a USB dock plugged into the Solaris machine. I ran 'cfgadm -al' and can see that the usb0/1 is usb-storage that was not there before. How do i mount this drive and format... (3 Replies)
Discussion started by: mcdef
3 Replies

6. AIX

Mounting USB Mass Storage

Hi experts, recently i'm exploring USB with filesystem FAT32 mounting on my aix oslevel 6100-04-02-1007. I tried to google to get solutions but failed. Thus, i post it here hope to get solution. Appreciate :) This is my usb drives: (5 Replies)
Discussion started by: polar
5 Replies

7. Ubuntu

FAQ adding rules in udev for my usb 8G to autorun rsync

Hi, I would like to ask if someone knows and show/point me or simple help me how udev rules work in lucyd, upon my quest and search all the tuts i used is based on old udev since something i read the udev change in lucyd version.. I want to accomplised when i plug my usb 8Gb device and automount... (0 Replies)
Discussion started by: jao_madn
0 Replies

8. Shell Programming and Scripting

udev rules for mounting CDROM

Hi All, I need a simple udev rules in my server Centos 5.4. This rules needs to get trigger my script whenever the cdrom is attached to the server. Could you please provide your suggestion on it. Thanks, Kalai (0 Replies)
Discussion started by: kalpeer
0 Replies

9. Programming

Look-up USB mounting point

Hi all, I'm developing a short program to look-up for all devices connected to the computer. Using udev and libusb libraries I achieved some progress but I can not find the way to find the mount point. For instance, given a device that I can retrieve using libusb, I would like to know... (4 Replies)
Discussion started by: Carles Rabaneda
4 Replies

10. Shell Programming and Scripting

Fixed mount point for a USB cardreader (Raspberry Pi, UDEV)

Hey all! :) I'm trying to create a fixed mount point for an usb cardreader. I've found a script on a raspberry pi forum which does the following: usb stick is plugged in -> script checks the mount point for data -> script starts copying the files automatically -> script unmounts the... (0 Replies)
Discussion started by: Eomer
0 Replies
SYSTEMD-UDEVD.SERVICE(8)                                       systemd-udevd.service                                      SYSTEMD-UDEVD.SERVICE(8)

NAME
systemd-udevd.service, systemd-udevd-control.socket, systemd-udevd-kernel.socket, systemd-udevd - Device event managing daemon SYNOPSIS
systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket /lib/systemd/systemd-udevd [--daemon] [--debug] [--children-max=] [--exec-delay=] [--event-timeout=] [--resolve-names=early|late|never] [--version] [--help] DESCRIPTION
systemd-udevd listens to kernel uevents. For every event, systemd-udevd executes matching instructions specified in udev rules. See udev(7). The behavior of the daemon can be configured using udev.conf(5), its command line options, environment variables, and on the kernel command line, or changed dynamically with udevadm control. OPTIONS
-d, --daemon Detach and run in the background. -D, --debug Print debug messages to standard error. -c=, --children-max= Limit the number of events executed in parallel. -e=, --exec-delay= Delay the execution of RUN instructions by the given number of seconds. This option might be useful when debugging system crashes during coldplug caused by loading non-working kernel modules. -t=, --event-timeout= Set the number of seconds to wait for events to finish. After this time, the event will be terminated. The default is 180 seconds. -N=, --resolve-names= Specify when systemd-udevd should resolve names of users and groups. When set to early (the default), names will be resolved when the rules are parsed. When set to late, names will be resolved for every event. When set to never, names will never be resolved and all devices will be owned by root. -h, --help Print a short help text and exit. --version Print a short version string and exit. KERNEL COMMAND LINE
Parameters starting with "rd." will be read when systemd-udevd is used in an initrd. udev.log_priority=, rd.udev.log_priority= Set the log level. udev.children_max=, rd.udev.children_max= Limit the number of events executed in parallel. udev.exec_delay=, rd.udev.exec_delay= Delay the execution of RUN instructions by the given number of seconds. This option might be useful when debugging system crashes during coldplug caused by loading non-working kernel modules. udev.event_timeout=, rd.udev.event_timeout= Wait for events to finish up to the given number of seconds. This option might be useful if events are terminated due to kernel drivers taking too long to initialize. net.ifnames= Network interfaces are renamed to give them predictable names when possible. It is enabled by default; specifying 0 disables it. SEE ALSO
udev.conf(5), udev(7), udevadm(8) systemd 237 SYSTEMD-UDEVD.SERVICE(8)
All times are GMT -4. The time now is 09:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy