LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-21-2006, 01:04 PM   #1
sasa_g
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
chown -R results in Input./Output error (ubuntu Dapper Drake)


Hi,

Thinking I am doing something smart, I recursively changed the group of one directory_name (with many subfolders) on my removable drive:
chown -R my_login_name:users directory_name
Previously the ownership was login_name:login_name

Well, I have a big problem now. I can not access folders, they have unknown size, ownership, group, date, etc. If I try to do anything, I get an Input/Output error.

Help! Is there a way to reverse/undo the damage?

Thanks for any hints

sasa
 
Old 09-21-2006, 04:34 PM   #2
pda_h4x0r
Member
 
Registered: Feb 2006
Location: somewhere in cyberspace
Distribution: Debian, Familiar
Posts: 380

Rep: Reputation: 31
"chown -R login_name:login_name" should reverse this.
 
Old 09-21-2006, 04:52 PM   #3
sasa_g
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you for your advice. Well, I tried exactly that:

chown -R login_name:login_name

It appears that the directory structure was succesfully recovered, as well as some of the files. I can not see any pattern why some files reappeared and the others didn't.

Any suggestions, anyone?

Thanks,

sasa
 
Old 09-21-2006, 05:22 PM   #4
sasa_g
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Original Poster
Rep: Reputation: 0
problem solved

I was hoping that maybe rebooting the machine would force some kind of 'fix-the-corrupt-files' action. And it did. At this point I do not know if the previous step (to change back with chown -R login_name:login_name) was necessary or not.
Initially I was afraid to unmount the external disk or to log off, but then I rebooted out of desperation. And it worked - everything is back, all the files.

Needless to say, lesson learned.

Thanks for helping,

sasa
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Ubuntu Dapper Drake + madwifi koryo Linux - Newbie 15 09-05-2007 04:45 PM
configuring Dapper Drake for Devanagri input adityavpratap Ubuntu 5 09-08-2006 10:07 AM
sharing printer on Ubuntu Dapper Drake wpshooter Linux - Networking 18 08-16-2006 02:27 PM
"Operation not permitted" error logging in to Ubuntu Dapper Drake paulBottomley Linux - Newbie 7 08-10-2006 11:13 AM
LXer: Ubuntu Dapper Drake 6.06 Videos LXer Syndicated Linux News 0 06-04-2006 12:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration