Reply
Thread Tools
jedi's Avatar
Posts: 1,411 | Thanked: 1,330 times | Joined on Jan 2010 @ Tatooine
#11
Originally Posted by ejasmudar View Post
Please I need help. I tried unmounting MyDocs to run fsck but I get error "Device or rescource busy"

I also tries umount -f but I get error "You can't unmount forcibly"

On connecting via USB, only mem card is connected as "device is busy"

What do I do? Please help me.
It means a process running has a file open on the MyDocs partition.

Give it a reboot, then try the umount etc as soon as the phone has booted.

If it still complains about open files, then it's probably a widget that's got an open file lock...
__________________
May the source be with you.
 

The Following User Says Thank You to jedi For This Useful Post:
slvr32's Avatar
Posts: 168 | Thanked: 104 times | Joined on Feb 2008 @ California, USA
#12
Originally Posted by ejasmadur
Please I need help. I tried unmounting MyDocs to run fsck but I get error "Device or rescource busy"

I also tries umount -f but I get error "You can't unmount forcibly"

On connecting via USB, only mem card is connected as "device is busy"

What do I do? Please help me.
Originally Posted by jedi View Post
It means a process running has a file open on the MyDocs partition.

Give it a reboot, then try the umount etc as soon as the phone has booted.

If it still complains about open files, then it's probably a widget that's got an open file lock...
One other thing to try, to avoid a reboot, would be to just 'cd' to another directory outside of /home/user/MyDocs, in case you're the one sitting in /home/user/MyDocs in the Terminal, holding up the umount.

I added 'cd /' after 'sudo gainroot' in the orginal commands

Code:
sudo gainroot
cd /
umount /dev/mmcblk0p1
fsck -af /dev/mmcblk0p1
mount /dev/mmcblk0p1 /home/user/MyDocs
 

The Following User Says Thank You to slvr32 For This Useful Post:
jedi's Avatar
Posts: 1,411 | Thanked: 1,330 times | Joined on Jan 2010 @ Tatooine
#13
Originally Posted by slvr32 View Post
... 'cd' to another directory outside of /home/user/MyDocs, in case you're the one sitting in /home/user/MyDocs in the Terminal, holding up the umount.
That's a very good point...
__________________
May the source be with you.
 

The Following User Says Thank You to jedi For This Useful Post:
Posts: 74 | Thanked: 45 times | Joined on Dec 2010
#14
You do not have to avoid a reboot, but in that case, if you are not on that directory and you would like which program is blocking the partition and avoiding it to be umount you can use
lsof /dev/mmcblk0p1

and you'll see which applications are using that device, of course that command can be usefull in other situations
 

The Following User Says Thank You to antviro For This Useful Post:
slvr32's Avatar
Posts: 168 | Thanked: 104 times | Joined on Feb 2008 @ California, USA
#15
Originally Posted by slvr32
... 'cd' to another directory outside of /home/user/MyDocs, in case you're the one sitting in /home/user/MyDocs in the Terminal, holding up the umount.
Originally Posted by jedi View Post
That's a very good point...
And actually, you'd probably want to something like...

Code:
cd
sudo gainroot
...
where the first 'cd' would put you in /home/user, with the unprivileged 'user' account.

because if you were sitting in /home/user/MyDocs before you did the 'sudo gainroot', you'd still have the same problem

Last edited by slvr32; 2011-03-11 at 00:52.
 

The Following User Says Thank You to slvr32 For This Useful Post:
ejasmudar's Avatar
Posts: 800 | Thanked: 957 times | Joined on Sep 2010 @ India
#16
Thank you Guys!! I finally got fsck to work. I cd'd to / both before after becoming root,

lsof sounds like an interesting command, but It didn't give me any result, even when dropbox was syncing in the background...

I hope all my read-only file systems are gone for good. Once again, thanks to all!
__________________
My Device History:Nokia 3510 > SE T230 > Nokia 6600 > HP2210 > SE p910i > SE p990i > N95 > I-mate 9502 > itouch > Nokia N900 > ? N9
My apps for N900:
Conversation Modder

My apps for N9:
LockScreenQuotes
USbS


If you feel I have helped you, don't forget to press Thanks!
 
normaltusker's Avatar
Posts: 129 | Thanked: 11 times | Joined on Feb 2010 @ Bangalore, India
#17
fsck did not help me here! will formatting the MyDocs partition lead me to a state where I have to reinstall the EMMC image?
 
normaltusker's Avatar
Posts: 129 | Thanked: 11 times | Joined on Feb 2010 @ Bangalore, India
#18
basically I have one rogue directory that I am not able to delete including its contents. Plus my MyDocs partition keeps turning into readonly on its own!
 
Posts: 237 | Thanked: 274 times | Joined on Jul 2010
#19
install backup menu , let it load ,connect your n900 to your pc, press "w" , do whatever repairs or format the first partition on the emmc .
if it gets mounted automatically on your box , unmount it by issuing
umount /dev/sdb1 , replace sdb1 with the correct name in your situation .
don't forget to format it as fat32 . I recommend that you use gparted for any modifications to your partition .
 
Reply

Tags
edit tags


 
Forum Jump


All times are GMT. The time now is 05:15.