OESF Portables Forum
Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 Hardware => Topic started by: wmadan 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
-
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
-
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
-
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 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
-
Hello;
If you want to now whitch Application use a device :
Use : fuser
Oncle-dave
-
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] (http://index.php?act=findpost&pid=90645\")
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
-
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] (http://index.php?act=findpost&pid=90645\")
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