Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
USB card Reader Won't Unmount
Results 1 to 5 of 5

Thread: USB card Reader Won't Unmount

Hybrid View

  1. #1
    Junior Member
    Join Date
    Jul 2001
    Posts
    91

    USB card Reader Won't Unmount

    Hi,

    I have a USB card reader that I use to swap files between my desktop PC and a laptop- it's a Kodak 6-in-1 card reader and I use a CF 64 MB card.

    For some reason when I try to unmount the card it always says "device is busy". If I try to force the unmount it tells me only root can do that, and as root I get device is busy.

    I have the following in my /etc/fstab:

    /dev/sda1 /mnt/card auto noauto,rw,users 0 0

    Also after mounting and unmounting the device I have the following processes which remain even after killing them

    1682 ? 00:00:00 usb-storage-0
    1683 ? 00:00:00 scsi_eh_0


    I wouldn't mind except that files are not always being written to the card when i expect them to be.

    Can someone tell me what I've done wrong?

    Thanks

  2. #2

    Re: USB card Reader Won't Unmount

    You need to make sure you are not in the directory you are trying to umount, and also any program that is using the drive or has used the drive will need to be shutdown. The later is only a sometimes issue.

    One last thing. This thread might help you a little bit maybe.
    http://www.getlinuxonline.com/yabbse...p/topic,2194.0
    AMD Athlon 2200+ 1.8Ghz
    1280MB PC-3200 CAS2.5 RAM
    ATI Radeon 9600 Pro 128MB AGP
    Western Digital WDC WD2500JB-00FUA0 250GB 7200 rpm ATA/133
    Seagate ST3200822A 200GB 7200 rpm ATA/133
    Western Digital WDC WD1200BB-00CAA1 120GB 7200 rpm ATA/133
    Western Digital WDC WD800BB-00CAA1 80GB 7200 rpm ATA/133
    Maxtor OneTouch 2HA43R32 1TB 7200 rpm USB 2.0
    D-Link DFE-530TX+ 10/100 NIC
    D-Link DWL-G520 Rev.A
    Debian 5.0r1 Lenny

  3. #3
    Junior Member
    Join Date
    Jul 2001
    Posts
    91

    Re: USB card Reader Won't Unmount

    Thanks for the reply SkyNet.

    As far as I can tell no other programs are using the card at the time. But that link you've posted might help. I've got "noauto" in the fstab entry, but it looks like I need to change that to "auto".

    Keith

  4. #4

    Re: USB card Reader Won't Unmount

    I had this problem with an external USB hard drive for a while and with thumbdrives, but found something that kind of works...
    Instead of forcing the umount, use "umount -l /mount/point". In the man page for umount:
    -l = Lazy unmount. Detach the filesystem from the filesystem hier*archy now, and cleanup all references to the filesystem as soon as it is not busy anymore. (Requires kernel 2.4.11 or later.)
    This worked for me, as I can use 'df -h' and the external drive will no longer show as mounted. I don't know if this will help or not...
    Asus A8V Deluxe Mobo
    AMD Athlon64 X2 4400 -939
    2GB Crucial DDR3200 Dual-Channel
    ATi AiW 9800 Pro 128DDR
    Audigy2 ZS
    Sony DRU-810 DVD+RW DL
    3 x Maxtor MaxLine SATA 160Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 300Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 120Gb 16Mb Cache

  5. #5
    Junior Member
    Join Date
    Jul 2001
    Posts
    91

    Re: USB card Reader Won't Unmount

    What I've been doing is using sync to ensure the files are actually written to the card. i think lazy unmount will unmount but it won't necessarily ensure that the contents of the device match what's in the filesystem.

    A week or so ago, it suddenly decided to be read only and had to do mkfs (aka "format") on it to reset it.

    Anyways I think I've got a handle on this for now... at least until it starts misbehaving again!

    Keith

Similar Threads

  1. SD Card Reader (windows)
    By mojo jojo in forum Windows - General Topics
    Replies: 4
    Last Post: 06-09-2005, 11:23 AM
  2. USB Compact Flash Card Reader
    By Lixus Looser in forum Linux - General Topics
    Replies: 20
    Last Post: 02-03-2004, 10:23 PM
  3. 6 in 1 card reader
    By mugs in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 05-28-2003, 02:23 PM
  4. Compact Flash Card Reader
    By mugs in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 10-04-2002, 01:50 AM
  5. magnetic card reader
    By gorn in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 01-15-2002, 01:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •