Re: FC 2: Hotplug service works only once?

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

 



Hi Andy,

I just installd the script.
Its not working and I think that the issue is the unmounting, but as I looked in the logs I can see that the umount command gets executed but with an error.


LOG:
May 25 16:55:55 fedora kernel: usb 2-1: new full speed USB device using address 2
May 25 16:55:56 fedora kernel: Initializing USB Mass Storage driver...
May 25 16:55:56 fedora kernel: scsi0 : SCSI emulation for USB Mass Storage devices
May 25 16:55:56 fedora kernel: Vendor: LEXAR Model: JUMPDRIVE Rev:
1.01
May 25 16:55:56 fedora kernel: Type: Direct-Access ANSI
SCSI revision: 02
May 25 16:55:56 fedora scsi.agent[4846]: disk at
/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/host0/0:0:0:0
May 25 16:55:56 fedora kernel: usbcore: registered new driver usb-storage
May 25 16:55:56 fedora kernel: USB Mass Storage support registered.
May 25 16:55:56 fedora kernel: SCSI device sda: 251904 512-byte hdwr sectors
(129 MB)
May 25 16:55:56 fedora kernel: sda: assuming Write Enabled
May 25 16:55:56 fedora kernel: sda: assuming drive cache: write through
May 25 16:55:56 fedora kernel: sda: sda1
May 25 16:55:56 fedora kernel: Attached scsi removable disk sda at scsi0,
channel 0, id 0, lun 0
May 25 16:56:06 fedora udev[5023]: creating device node '/udev/sda'
May 25 16:56:06 fedora udev[5024]: creating device node '/udev/sda1'
May 25 16:56:39 fedora kernel: usb 2-1: USB disconnect, address 2
May 25 16:56:50 fedora udev[5178]: removing device node '/udev/sda1'
May 25 16:56:50 fedora udev[5179]: removing device node '/udev/sda'
May 25 16:57:06 fedora kernel: usb 2-1: new full speed USB device using address 3
May 25 16:57:06 fedora kernel: scsi1 : SCSI emulation for USB Mass Storage devices
May 25 16:57:06 fedora kernel: Vendor: LEXAR Model: JUMPDRIVE Rev:
1.01
May 25 16:57:06 fedora kernel: Type: Direct-Access ANSI
SCSI revision: 02
May 25 16:57:06 fedora kernel: SCSI device sda: 251904 512-byte hdwr sectors
(129 MB)
May 25 16:57:06 fedora kernel: sda: assuming Write Enabled
May 25 16:57:06 fedora kernel: sda: assuming drive cache: write through
May 25 16:57:06 fedora kernel: sda: sda1
May 25 16:57:06 fedora kernel: Attached scsi removable disk sda at scsi1,
channel 0, id 0, lun 0
May 25 16:57:07 fedora scsi.agent[5258]: disk at
/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/host1/1:0:0:0
May 25 16:57:14 fedora udev[5442]: creating device node '/udev/sda'
May 25 16:57:14 fedora udev[5443]: creating device node '/udev/sda1'
May 25 16:57:46 fedora kernel: usb 2-1: USB disconnect, address 3
May 25 16:57:46 fedora kernel: scsi1 (0:0): rejecting I/O to device being removed
May 25 16:57:46 fedora kernel: Buffer I/O error on device sda1, logical block 1976
May 25 16:57:46 fedora kernel: lost page write due to I/O error on sda1
May 25 16:57:46 fedora udev[5530]: removing device node '/udev/sda1'
May 25 16:57:47 fedora udev[5554]: removing device node '/udev/sda'
May 25 16:57:55 fedora kernel: scsi1 (0:0): rejecting I/O to dead device
May 25 16:57:55 fedora kernel: FAT: Directory bread(block 1976) failed
May 25 16:57:55 fedora kernel: scsi1 (0:0): rejecting I/O to dead device
May 25 16:57:55 fedora kernel: FAT: Directory bread(block 1977) failed
May 25 16:58:01 fedora kernel: usb 2-1: new full speed USB device using address 4
May 25 16:58:01 fedora kernel: scsi2 : SCSI emulation for USB Mass Storage devices
May 25 16:58:01 fedora kernel: Vendor: LEXAR Model: JUMPDRIVE Rev:
1.01
May 25 16:58:01 fedora kernel: Type: Direct-Access ANSI
SCSI revision: 02
May 25 16:58:01 fedora kernel: SCSI device sdb: 251904 512-byte hdwr sectors
(129 MB)
May 25 16:58:01 fedora kernel: sdb: assuming Write Enabled
May 25 16:58:01 fedora kernel: sdb: assuming drive cache: write through
May 25 16:58:01 fedora kernel: sdb: sdb1
May 25 16:58:01 fedora kernel: Attached scsi removable disk sdb at scsi2,
channel 0, id 0, lun 0
May 25 16:58:02 fedora scsi.agent[5641]: disk at
/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/host2/2:0:0:0
May 25 16:58:05 fedora automount[5795]: >> mount: /dev/sda1 ist kein gültiges
blockorientiertes Gerät
May 25 16:58:05 fedora automount[5795]: mount(generic): failed to mount
/dev/sda1 (type vfat) on /misc/usbautocam
May 25 16:58:05 fedora automount[5795]: failed to mount /misc/usbautocam
May 25 16:58:05 fedora automount[5799]: >> mount: /dev/sda1 ist kein gültiges
blockorientiertes Gerät
May 25 16:58:05 fedora automount[5799]: mount(generic): failed to mount
/dev/sda1 (type vfat) on /misc/usbautocam
May 25 16:58:05 fedora automount[5799]: failed to mount /misc/usbautocam
May 25 16:58:05 fedora automount[5806]: >> mount: /dev/sda1 ist kein gültiges
blockorientiertes Gerät
May 25 16:58:05 fedora automount[5806]: mount(generic): failed to mount
/dev/sda1 (type vfat) on /misc/usbautocam
May 25 16:58:05 fedora automount[5806]: failed to mount /misc/usbautocam
May 25 16:58:05 fedora automount[5811]: >> mount: /dev/sda1 ist kein gültiges
blockorientiertes Gerät
May 25 16:58:05 fedora automount[5811]: mount(generic): failed to mount
/dev/sda1 (type vfat) on /misc/usbautocam
May 25 16:58:05 fedora automount[5811]: failed to mount /misc/usbautocam
May 25 16:58:05 fedora automount[5816]: >> mount: /dev/sda1 ist kein gültiges
blockorientiertes Gerät
May 25 16:58:05 fedora automount[5816]: mount(generic): failed to mount
/dev/sda1 (type vfat) on /misc/usbautocam
May 25 16:58:05 fedora automount[5816]: failed to mount /misc/usbautocam
May 25 16:58:05 fedora automount[5820]: >> mount: /dev/sda1 ist kein gültiges
blockorientiertes Gerät
May 25 16:58:05 fedora automount[5820]: mount(generic): failed to mount
/dev/sda1 (type vfat) on /misc/usbautocam
May 25 16:58:05 fedora automount[5820]: failed to mount /misc/usbautocam
May 25 16:58:09 fedora udev[5862]: creating device node '/udev/sdb'
May 25 16:58:09 fedora udev[5863]: creating device node '/udev/sdb1'



This time it worked a few times but the again the error. I was logged in, in KDE but nothing happened.

I think I will reinstall FC2 and try it again.

What would you say?

Thank You

Dalibor Malek

Andy Green wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 25 May 2004 13:48, Dalibor Malek wrote:



The first time I plug the stick in its called sda1 the second time its
called sdb1.
Why is that?



Sounds like you are not unmounting the stick before your pull it out? (I meant to say this in my first reply but wrote mount instead of umount)




Shouldn’t it be that the same stick is always called the same.



I think it will get called the first free name.



I’m going to tray your script now.



If unmounting was the issue, you may find it helps, it sets up autofs to auto mount and unmount the device.


- -Andy

- -- Automatic actions for USB cameras, cardreaders, memory sticks, MP3 players
http://warmcat.com/usbautocam
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)


iD8DBQFAs0mEjKeDCxMJCTIRAgK1AJ9l76lSeunVDLVANZPy+/XIJiP9pQCZAXYC
XtRgzOzWZvvo/3MsEhQmEhc=
=NTRD
-----END PGP SIGNATURE-----







[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux