Author Topic: Unmounting Problems  (Read 4248 times)

wmadan

  • Full Member
  • ***
  • Posts: 164
    • View Profile
    • http://
Unmounting Problems
« on: August 03, 2005, 03:51:18 pm »
I am having problems unmounting various media on my C1K. I am running the stock ROM with Tetsu's kernel.

CF cards mount and unmount fine. Two different Corsair I gig SD cards formatted ext2 mount, but I cannot umount them from the command line or by pressing the SD icon in the system tray. From the command line I get the message "Device or resource busy." From the system tray, I get a message saying I should close all applications and remove the card when the Zaurus is powered off.

I also had a similar problem with a microdrive mounted to usbstorage through a USB card reader.

Any help to point me in the right direction is appreciated.

Thanks,
Bill

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Unmounting Problems
« Reply #1 on: August 03, 2005, 09:07:15 pm »
Did you try closing all applications and then umounting the card?

Linux is very fussy about unmounting a drive that is being used, have a look at what is running by typing "ps ax" on the konsole. This will give a list of running apps, if you have no qtopia apps running it sounds like you have another process that has an open file on the SD card that is still running in the background. Occasionally I get this when I test shell scripts that don't finish properly and I have to kill them before I can unmount the device.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

wmadan

  • Full Member
  • ***
  • Posts: 164
    • View Profile
    • http://
Unmounting Problems
« Reply #2 on: August 03, 2005, 09:30:42 pm »
Quote
Did you try closing all applications and then umounting the card?

Linux is very fussy about unmounting a drive that is being used, have a look at what is running by typing "ps ax" on the konsole. This will give a list of running apps, if you have no qtopia apps running it sounds like you have another process that has an open file on the SD card that is still running in the background. Occasionally I get this when I test shell scripts that don't finish properly and I have to kill them before I can unmount the device.

Stu
[div align=\"right\"][a href=\"index.php?act=findpost&pid=90671\"][{POST_SNAPBACK}][/a][/div]

Stu,

Thanks for responding. As far as I know, all apps are closed. When I type "ps ax" at the Konsole, it looks like a there's a lot of stuff running, but I can only see the last screen. How do I see all of the output? And, what am I looking for specifically that could be causing the SD not to unmount?

Bill

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Unmounting Problems
« Reply #3 on: August 04, 2005, 10:35:20 am »
Code: [Select]
ps ax | more will allow you to see a screen full at a time.

Things that could be running in the background and locking SD are bash, or some script. Are you running X/Qt or debian pocket workstation from the SD? They could be locking a file on the SD.

Rebooting will of course unlock any files on the SD and should therefore allow you to umount them at your leisure, but if it happens againafter a reboot then something is running that is opening a file on the SD card.

If you don't want to reboot or it still happens after reboot, try
Code: [Select]
ps ax > process.txt and copy the process.txt here (or attach it) and we can have a look at what might be locking the SD

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

oncle-dave

  • Newbie
  • *
  • Posts: 47
    • View Profile
Unmounting Problems
« Reply #4 on: August 05, 2005, 02:58:29 pm »
Hello;

If you want to now whitch Application use a device :  

Use : fuser


Oncle-dave
SL-C3000
PdaXrom Build3 from Meanie
CF Wifi Linksys WF12
SD Card 1Go

inode0

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Unmounting Problems
« Reply #5 on: August 05, 2005, 08:50:52 pm »
Quote
I am having problems unmounting various media on my C1K. I am running the stock ROM with Tetsu's kernel.
...
Any help to point me in the right direction is appreciated.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
You might try using fuser or lsof to see what is using the media. I'm not sure if programs compiled on a 6k will run ok on a C1k, but here is a link to [a href=\"http://rose.public.iastate.edu/zaurus/lsof_4.75_arm.ipk]lsof 4.75[/url] compiled on a 6k if that helps.

John

edoc

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
    • http://bibleseven.com
Unmounting Problems
« Reply #6 on: February 24, 2006, 12:31:46 am »
Quote
Quote
I am having problems unmounting various media on my C1K. I am running the stock ROM with Tetsu's kernel.
...
Any help to point me in the right direction is appreciated.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
You might try using fuser or lsof to see what is using the media. I'm not sure if programs compiled on a 6k will run ok on a C1k, but here is a link to [a href=\"http://rose.public.iastate.edu/zaurus/lsof_4.75_arm.ipk]lsof 4.75[/url] compiled on a 6k if that helps.

John
[div align=\"right\"][a href=\"index.php?act=findpost&pid=90890\"][{POST_SNAPBACK}][/a][/div]


Just read this thread and am still stuck on my C1000.

I cannot eject my CF card "CF/PCMCIA Card Eject Failed!"

I have tried cardctl suspend and cardctl suspend 0 and cardctl resume and cardctl resume 0
and most cause errors and others occasionally are accepted but I still cannot access my CF
card as it is said to be busy!

Help, please?  Thanks!  doc
Sharp SL-C1000 Linux handheld pc, Nokia 6255i cellphone,<BR>
Puppy Linux on powernotebooks.com Z500 laptop,<BR>
<I>IBM TP 600x laptop, and custom assembled desktops.<BR>
Amateur Radio packet, aprs, pactor, psk31, sstv, etc. for<BR>
emergency communications and weak signal experiments.</I>
My Webpage