Jump to content

USB removeable drives [solved - sort of]


Trio3b
 Share

Recommended Posts

2 separate PCs. Same problem with 2 separate USB flashdrives.

Initially, insert drive and fstab is updated, mtab indicates when drive is in or out, and icon placed on desktop - all OK.

 

As time wears on however, things deteriorate to the point where icon is no longer placed on desktop and must 'create" a link to device. Sometimes the link gives me the ability to select 'trash' or 'delete' the link from context menu. Sometimes it does not. Now MCC recognizes sda in hdwr list when pendrive is in, but not showing in mtab. Altering options in config tool in MCC seems to have no effect. This has happened on 2 diff PCs running MDV 10.2 and leads me to believe there is problem with udev?

 

MDK 10.0 was rock solid about USB removeable. (mounted first time everytime).

haldaemon is running

 

Has anything changed ?

Thanks

Edited by Trio3b
Link to comment
Share on other sites

Have you checked and applied updates to your system since installation? Is harddrake running as well? I found this morning that my usb stick would not work unless harddrake service is running.

 

I have also noticed this problem on MDK 10.0/10.1/LE2005 as well. I'm using 2006 now.

Link to comment
Share on other sites

This is the default 'virgin' Mandriva10.2 (2005LE) fstab and mtab before and after insertion of USB flashdrive.

 

without flashdrive

fstab:

# This file is edited by fstab-sync - see 'man fstab-sync' for details

/dev/hda6 / ext3 defaults 1 1

/dev/hda8 /home ext3 defaults 1 2

/dev/hdc /mnt/cdrom iso9660 user,iocharset=iso8859-1,noauto,ro,exec 0 0

none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0

/dev/hda1 /mnt/windows ntfs umask=0,nls=iso8859-1,ro 0 0

none /proc proc defaults 0 0

/dev/hda7 swap swap defaults 0 0

 

mtab:

/dev/hda6 / ext3 rw 0 0

none /proc proc rw 0 0

none /proc/bus/usb usbfs rw 0 0

none /sys sysfs rw 0 0

/dev/hda8 /home ext3 rw 0 0

none /mnt/floppy supermount rw,sync,dev=/dev/fd0,fs=ext2:vfat,-- 0 0

/dev/hda1 /mnt/windows ntfs ro,umask=0,nls=iso8859-1 0 0

 

WITH flashdrive

fstab:

# This file is edited by fstab-sync - see 'man fstab-sync' for details

/dev/hda6 / ext3 defaults 1 1

/dev/hda8 /home ext3 defaults 1 2

/dev/hdc /mnt/cdrom iso9660 user,iocharset=iso8859-1,noauto,ro,exec 0 0

none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0

/dev/hda1 /mnt/windows ntfs umask=0,nls=iso8859-1,ro 0 0

none /proc proc defaults 0 0

/dev/hda7 swap swap defaults 0 0

/dev/sda1 /mnt/removable vfat pamconsole,exec,noauto,noatime,sync,codepage=850,iocharset=iso8859-1,managed 0 0

 

mtab:

/dev/hda6 / ext3 rw 0 0

none /proc proc rw 0 0

none /proc/bus/usb usbfs rw 0 0

none /sys sysfs rw 0 0

/dev/hda8 /home ext3 rw 0 0

none /mnt/floppy supermount rw,sync,dev=/dev/fd0,fs=ext2:vfat,-- 0 0

/dev/hda1 /mnt/windows ntfs ro,umask=0,nls=iso8859-1 0 0

/dev/sda1 /mnt/removable vfat rw,nosuid,nodev,sync,noatime,codepage=850,iocharset=iso8859-1,user=noah 0 0

 

MDV seems to be consistent about detecting insertion of the removable drive, but is inconsistent about placing an icon on the desktop.

Eventually, fstab and mtab scripts become corrupted to point where there is a permanent entry in either file. I believe these entries should only be there when the drive is inserted and gone when it is removed.

 

To fix this problem on the 2 'inoperative' PCs, deleted any reference to the USB_removable in both fstab and mtab, then

made sure haldaemon and harddrake were both running. Then inserted the drive into each PC. Drive in both cases was detected, but in one PC, icon was placed on desktop but not on the other PC.

 

 

Try inserting and removing USB flashdrive several times, waiting about 10 sec. between each action. Since this did not result in an icon consistently being placed on desktop, did next best thing:

 

insert the drive

right click on empty desktop

select 'create new device'

scroll to hard disk device

select device tab

scroll to and select /mnt/removable

 

This gives a permanent USB flashdrive icon on desktop. If anyone can explain why USB drive entries get schmeared or why icon placement is inconsistent, please let us know.

Thanks

Link to comment
Share on other sites

On the most current versions of udev/dbus/hal all the automounting work is done by pmount, and there's no fstab-sync thingy. Cooker is already there, not sure about 2006.0 (I don't use it).

HardDrake isn't needed for anything (almost).

May I ask which udev/dbus/hal versions you are running?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...