Reply
Thread Tools
Posts: 446 | Thanked: 79 times | Joined on Mar 2010
#1
oK, so here is the prob

I was backing up my dad's memory card from his black berry bold to my n900 internal storage memory. the phone was taking for ever to do it and i wasn't sure if it was frozen or not so i interrupted it and powered off the phone during the transfer. ( i know that wasn't smart)

so it seems that this some how corrupted my internal memory because now i am unable to delete the folder "Dad backup" from my internal memory. some of the files were copied to it but not all as i interrupted. what can i do? the error msg is "can not delete folder is read only"

So i go to x terminal and google and research through like a gazillion chmod, and rmdir, and rm -rf command i can find and still having trouble with this.

can some one please help me get this crap off my phone with out lossing all of my precious media files. I just want this nagging folder out of my internal storage
 
Posts: 446 | Thanked: 79 times | Joined on Mar 2010
#2
btw i am very new to linux and x terminal so pls be abc with me
 
Posts: 61 | Thanked: 83 times | Joined on Feb 2010 @ Estonia
#3
Install rootsh package. become root user by typing 'sudo gainroot' and try then.
 
Posts: 446 | Thanked: 79 times | Joined on Mar 2010
#4
already root already. still cant delete the file i am using rm -rf home/user/MyDocs/Dad\ backup
 
Marcus's Avatar
Posts: 173 | Thanked: 72 times | Joined on Mar 2010 @ Denmark
#5
You have to delete all the files in the folder first I believe. (I don't remember the -rf though)
Also, try to put / infront of home.
/home/user/MyDocs/Dad\ backup

Incase you have to remove files, do:
rm /home/user/MyDocs/Dad\ backup/*

EDIT: And to delete the directory at last, do
rmdir /home/user/MyDocs/Dad\ backup
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#6
Originally Posted by andraeseus1 View Post
already root already. still cant delete the file i am using rm -rf home/user/MyDocs/Dad\ backup
It's always helpful to supply as much information as possible. So, use the command "ls -l" on the directory that just won't go away and paste the result here.

When it comes to the rm command, -r means "recursive" and -f means "force" (as in, don't ask me about anything, just do it). If you actually are root (which is something else than to stand in the root directory, and still can't remove things with rm -rf it surely looks weird.

I have no idea why people use "sudo gainroot", just typing "root" with rootsh installed works, in my opinion, better.
 

The Following User Says Thank You to Joorin For This Useful Post:
Marcus's Avatar
Posts: 173 | Thanked: 72 times | Joined on Mar 2010 @ Denmark
#7
Joorin:
I am using "sudo gainroot", but only because that I've never heard you could use anything else. Thanks!
 
Posts: 446 | Thanked: 79 times | Joined on Mar 2010
#8
Originally Posted by Marcus View Post
You have to delete all the files in the folder first I believe. (I don't remember the -rf though)
Also, try to put / infront of home.
/home/user/MyDocs/Dad\ backup

Incase you have to remove files, do:
rm /home/user/MyDocs/Dad\ backup/*

EDIT: And to delete the directory at last, do
rmdir /home/user/MyDocs/Dad\ backup

so i go deeper and deepr into the /Dad\ backup directory untill i reach a folder named Babies. but when i try and do anything with the folder Babies it says "Imput/output error.

it wont allow me to cd to it or rmdir i. it just keeps spitting out that error. i tried to ls that directory but it wont allow that either.

there are a few folders like this in the /home/user/MyDocs/Dad\ backup/BlackBerry/pictures file path. i supposed these are the currupt fiels that make the whole Dad back up folder read only any other ideas?
 
Posts: 61 | Thanked: 21 times | Joined on Jan 2010
#9
I use both, depending on the situation.
"sudo gainroot" leave you in the same directory when "root" put you in 'root' home directory
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#10
Did you try to access the internal memory card from your pc via USB, not ssh, and delete the files or directories while not under the control of your maemo5 system?
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:28.