* [gentoo-user] Uh Oh!! Made the contents of my directory unreadable
@ 2010-02-11 17:58 ubiquitous1980
2010-02-11 18:18 ` Alan McKinnon
2010-02-11 23:18 ` Iain Buchanan
0 siblings, 2 replies; 12+ messages in thread
From: ubiquitous1980 @ 2010-02-11 17:58 UTC (permalink / raw
To: gentoo-user
With this command or similar, I made my directory and one file in /
unreadable:
for entry in $(find $HOME); do $entry >> found; done
the same of output for ls is similar:
????????-k?x?B?{????U?I?3s??
???N???Q
?ܝw?Ϭw??9c̃}}Wz????Ǹ??t
Ƿ~???
?^8?O?
?^????cB?f???????v????????V?!?@
???8%??????{??8?y??R??g??
??=c
?$??????̝????????????~Ќ?t?)i}ˌW?6?
??:????G?x??g*D???S(?I%?=?m?ۼVݶT??ն)u??K[(????[??4?u???g?_??1M???QL?8*9?P
㓋?8M??4=?έ?w3?m?'?Dv??u? ?s?Ƭ????A?q??a]??~:??????.Kd??뗕oi?y????6:˿???
N}Y?C????ậ?WŠ?W???K0???vY? Z?1??
?U0?T*?A??̻?ɸ?ȶ?IJ???????????????????
Any ideas on how to fix this?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Uh Oh!! Made the contents of my directory unreadable
2010-02-11 17:58 [gentoo-user] Uh Oh!! Made the contents of my directory unreadable ubiquitous1980
@ 2010-02-11 18:18 ` Alan McKinnon
2010-02-11 19:47 ` Neil Bothwick
2010-02-11 20:07 ` Peter Humphrey
2010-02-11 23:18 ` Iain Buchanan
1 sibling, 2 replies; 12+ messages in thread
From: Alan McKinnon @ 2010-02-11 18:18 UTC (permalink / raw
To: gentoo-user
On Thursday 11 February 2010 19:58:25 ubiquitous1980 wrote:
> With this command or similar, I made my directory and one file in /
> unreadable:
>
> for entry in $(find $HOME); do $entry >> found; done
>
> the same of output for ls is similar:
>
> ????????-k?x?B?{????U?I?3s??
> ???N???Q
> ?ܝw?Ϭw??9c̃}}Wz????Ǹ??t
> Ƿ~???
> ?^8?O?
> ?^????cB?f???????v????????V?!?@
> ???8%??????{??8?y??R??g??
> ??=c
> ?$??????̝????????????~Ќ?t?)i}ˌW?6?
> ??:????G?x??g*D???S(?I%?=?m?ۼVݶT??ն)u??K[(????[??4?u???g?_??1M???QL?8*9?P
> 㓋?8M??4=?έ?w3?m?'?Dv??u? ?s?Ƭ????A?q??a]??~:??????.Kd??뗕oi?y????6:˿???
> N}Y?C????ậ?WŠ?W???K0???vY? Z?1??
> ?U0?T*?A??̻?ɸ?ȶ?IJ???????????????????
>
> Any ideas on how to fix this?
Is the output given from the same shell session in which you ran the command?
Switch to a text console (Ctrl-Alt-Fx) and ls things there, perhaps the
garbage dumped to the screen in your for simply upset the terminal emulation.
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Uh Oh!! Made the contents of my directory unreadable
2010-02-11 18:18 ` Alan McKinnon
@ 2010-02-11 19:47 ` Neil Bothwick
2010-02-11 20:32 ` Alan McKinnon
2010-02-11 20:07 ` Peter Humphrey
1 sibling, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2010-02-11 19:47 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 386 bytes --]
On Thu, 11 Feb 2010 20:18:29 +0200, Alan McKinnon wrote:
> Switch to a text console (Ctrl-Alt-Fx) and ls things there, perhaps the
> garbage dumped to the screen in your for simply upset the terminal
> emulation.
In which case, running reset in the affected terminal should clear it.
--
Neil Bothwick
Bookmark - A means of returning to where you got lost last time.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Uh Oh!! Made the contents of my directory unreadable
2010-02-11 18:18 ` Alan McKinnon
2010-02-11 19:47 ` Neil Bothwick
@ 2010-02-11 20:07 ` Peter Humphrey
1 sibling, 0 replies; 12+ messages in thread
From: Peter Humphrey @ 2010-02-11 20:07 UTC (permalink / raw
To: gentoo-user
On Thursday 11 February 2010 18:18:29 Alan McKinnon wrote:
> perhaps the garbage dumped to the screen in your for simply upset the
> terminal emulation.
...in which case, perhaps typing RESET in the terminal will help.
--
Rgds
Peter.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Uh Oh!! Made the contents of my directory unreadable
2010-02-11 19:47 ` Neil Bothwick
@ 2010-02-11 20:32 ` Alan McKinnon
2010-02-11 22:26 ` Neil Bothwick
0 siblings, 1 reply; 12+ messages in thread
From: Alan McKinnon @ 2010-02-11 20:32 UTC (permalink / raw
To: gentoo-user
On Thursday 11 February 2010 21:47:33 Neil Bothwick wrote:
> On Thu, 11 Feb 2010 20:18:29 +0200, Alan McKinnon wrote:
> > Switch to a text console (Ctrl-Alt-Fx) and ls things there, perhaps the
> > garbage dumped to the screen in your for simply upset the terminal
> > emulation.
>
> In which case, running reset in the affected terminal should clear it.
Every time I've tried to tell people to do that, they tell me they can't do it
because
%#!*^
obviously is not a valid command.
I've given up explaining :-)
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Uh Oh!! Made the contents of my directory unreadable
2010-02-11 20:32 ` Alan McKinnon
@ 2010-02-11 22:26 ` Neil Bothwick
2010-02-11 22:35 ` Alan McKinnon
0 siblings, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2010-02-11 22:26 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 549 bytes --]
On Thu, 11 Feb 2010 22:32:44 +0200, Alan McKinnon wrote:
> > In which case, running reset in the affected terminal should clear
> > it.
>
> Every time I've tried to tell people to do that, they tell me they
> can't do it because
>
> %#!*^
>
> obviously is not a valid command.
It's not, if it were reset the second and fourth characters would be the
same :P
This tagline generator's at it again :)
--
Neil Bothwick
Light travels faster than sound. This is why some people appear bright
until you hear them speak.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Uh Oh!! Made the contents of my directory unreadable
2010-02-11 22:26 ` Neil Bothwick
@ 2010-02-11 22:35 ` Alan McKinnon
2010-02-12 0:02 ` Neil Bothwick
0 siblings, 1 reply; 12+ messages in thread
From: Alan McKinnon @ 2010-02-11 22:35 UTC (permalink / raw
To: gentoo-user
On Friday 12 February 2010 00:26:56 Neil Bothwick wrote:
> On Thu, 11 Feb 2010 22:32:44 +0200, Alan McKinnon wrote:
> > > In which case, running reset in the affected terminal should clear
> > > it.
> >
> > Every time I've tried to tell people to do that, they tell me they
> > can't do it because
> >
> > %#!*^
> >
> > obviously is not a valid command.
>
> It's not, if it were reset the second and fourth characters would be the
> same :P
Smartass :-)
You owe me a year's subscription from your employer for that wise-crack.
Postage paid by sender, naturally.
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Uh Oh!! Made the contents of my directory unreadable
2010-02-11 17:58 [gentoo-user] Uh Oh!! Made the contents of my directory unreadable ubiquitous1980
2010-02-11 18:18 ` Alan McKinnon
@ 2010-02-11 23:18 ` Iain Buchanan
2010-02-11 23:34 ` Alan McKinnon
2010-02-11 23:47 ` ubiquitous1980
1 sibling, 2 replies; 12+ messages in thread
From: Iain Buchanan @ 2010-02-11 23:18 UTC (permalink / raw
To: gentoo-user
On Fri, 2010-02-12 at 01:58 +0800, ubiquitous1980 wrote:
> With this command or similar, I made my directory and one file in /
> unreadable:
>
> for entry in $(find $HOME); do $entry >> found; done
er... you just executed everything in your home directory and piped the
output to a file... I think you wanted "do echo $entry"? or the simpler
"find $HOME >> found"?
anyway, it shouldn't have corrupted your filesystem, but it looks like
it did.
> Any ideas on how to fix this?
you probably want to shutdown and fsck your filesystem. Then, start
looking for your backups :(
--
Iain Buchanan <iaindb at netspace dot net dot au>
Even with nougat you can have a perfect moment.
-- (Terry Pratchett, Thief of Time)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Uh Oh!! Made the contents of my directory unreadable
2010-02-11 23:18 ` Iain Buchanan
@ 2010-02-11 23:34 ` Alan McKinnon
2010-02-11 23:47 ` ubiquitous1980
1 sibling, 0 replies; 12+ messages in thread
From: Alan McKinnon @ 2010-02-11 23:34 UTC (permalink / raw
To: gentoo-user
On Friday 12 February 2010 01:18:33 Iain Buchanan wrote:
> On Fri, 2010-02-12 at 01:58 +0800, ubiquitous1980 wrote:
> > With this command or similar, I made my directory and one file in /
> > unreadable:
> >
> > for entry in $(find $HOME); do $entry >> found; done
>
> er... you just executed everything in your home directory and piped the
> output to a file... I think you wanted "do echo $entry"? or the simpler
> "find $HOME >> found"?
>
> anyway, it shouldn't have corrupted your filesystem, but it looks like
> it did.
I thought the same and wondered "How? How could it corrupt stuff?"
So assuming the for did do the corruption and it isn't coincidence, what would
make this happen? Or is the OP just seriously out of luck and hit the one in a
gazillion unjackpot?
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Uh Oh!! Made the contents of my directory unreadable
2010-02-11 23:18 ` Iain Buchanan
2010-02-11 23:34 ` Alan McKinnon
@ 2010-02-11 23:47 ` ubiquitous1980
1 sibling, 0 replies; 12+ messages in thread
From: ubiquitous1980 @ 2010-02-11 23:47 UTC (permalink / raw
To: gentoo-user
Iain Buchanan wrote:
> On Fri, 2010-02-12 at 01:58 +0800, ubiquitous1980 wrote:
>
>> With this command or similar, I made my directory and one file in /
>> unreadable:
>>
>> for entry in $(find $HOME); do $entry >> found; done
>>
>
> er... you just executed everything in your home directory and piped the
> output to a file... I think you wanted "do echo $entry"? or the simpler
> "find $HOME >> found"?
>
> anyway, it shouldn't have corrupted your filesystem, but it looks like
> it did.
>
>
>> Any ideas on how to fix this?
>>
>
> you probably want to shutdown and fsck your filesystem. Then, start
> looking for your backups :(
>
>
Did just that. But no luck with fsck. So I had a tarballed and bzip2ed
backup from about a month ago and used that. Thanks for the suggestions
anyway guys :)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Uh Oh!! Made the contents of my directory unreadable
2010-02-11 22:35 ` Alan McKinnon
@ 2010-02-12 0:02 ` Neil Bothwick
2010-02-12 6:24 ` Alan McKinnon
0 siblings, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2010-02-12 0:02 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 483 bytes --]
On Fri, 12 Feb 2010 00:35:37 +0200, Alan McKinnon wrote:
> > It's not, if it were reset the second and fourth characters would be
> > the same :P
>
> Smartass :-)
You're too kind :)
> You owe me a year's subscription from your employer for that
> wise-crack. Postage paid by sender, naturally.
This year, I seem to be working mainly for the Inland Revenue. I'll give
them your address :P
--
Neil Bothwick
I wouldn't be caught dead with a necrophiliac.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Uh Oh!! Made the contents of my directory unreadable
2010-02-12 0:02 ` Neil Bothwick
@ 2010-02-12 6:24 ` Alan McKinnon
0 siblings, 0 replies; 12+ messages in thread
From: Alan McKinnon @ 2010-02-12 6:24 UTC (permalink / raw
To: gentoo-user
On Friday 12 February 2010 02:02:27 Neil Bothwick wrote:
> > You owe me a year's subscription from your employer for that
> > wise-crack. Postage paid by sender, naturally.
>
> This year, I seem to be working mainly for the Inland Revenue. I'll give
> them your address :P
How odd. I do the same with the local version. Our Receiver of Revenge is the
company main shareholder [in-joke, you're not supposed to get it ;-) ]
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2010-02-12 6:26 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-11 17:58 [gentoo-user] Uh Oh!! Made the contents of my directory unreadable ubiquitous1980
2010-02-11 18:18 ` Alan McKinnon
2010-02-11 19:47 ` Neil Bothwick
2010-02-11 20:32 ` Alan McKinnon
2010-02-11 22:26 ` Neil Bothwick
2010-02-11 22:35 ` Alan McKinnon
2010-02-12 0:02 ` Neil Bothwick
2010-02-12 6:24 ` Alan McKinnon
2010-02-11 20:07 ` Peter Humphrey
2010-02-11 23:18 ` Iain Buchanan
2010-02-11 23:34 ` Alan McKinnon
2010-02-11 23:47 ` ubiquitous1980
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox