LinuxQuestions.org
Help answer threads with 0 replies.
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-29-2010, 04:45 PM   #1
swamp-dog
LQ Newbie
 
Registered: Sep 2010
Posts: 6

Rep: Reputation: 0
Really trashed disk


I managed to stomp on the first 64Gb of a 2Tb ext3 disk (75% used). Unable to back it up first, I was forced to fsck it (using the furthest on the disk superblock). It's now ext2 and the entire disk is sat in "lost+found". Question1 - which forum is best for asking question2?

Question2: (background) Much of the data is large. "ls" doesn't come back, just too much in lost+found. No problem, I can write an opendir/readdir prog "look for large things". Unfortunately the majority of the files/folders (let's say items) have their FIFO bit set. I *know* these items are files.
How the heck does one force the FIFO inode bit clear?

TIA
Guy
 
Old 09-30-2010, 09:56 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,565

Rep: Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696
I think you're in deep.

I feel dd may have been a better thing to start with. As things stand, if the entire disk is in lost+found, fsck has written over the directories with blank ones.

If the data is precious, you can start knitting. where the sector numbers are continuous, you can extract and reassemble chunks of files Otherwise it's off to those forensic type folks with fancy software to see if they can pick up what the data was.
 
Old 09-30-2010, 10:50 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
I don't hope you have valuable data on it. Otherwise it would be a expensive experience. I want not sound offensive, but this experience will hopefully let you think about backups.
 
1 members found this post helpful.
Old 10-01-2010, 09:50 AM   #4
swamp-dog
LQ Newbie
 
Registered: Sep 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the replies folks,

The machine did start out life backed up - through a catalog of mishaps, delays plus increasing lack of sleep on my part, I ended up trashing the second backup.

Lesson(s) learnt this time is "don't use a huge disk that isn't easily replaced" for backups. Also don't use one of those poxy right-angled sata cables when the disks are real close together else you end up with the 3rd drive unconnected, write to sdc and end up trashing what should have been sdd. Most importantly don't yield to pressure to put an OS on the first backup disk in an attempt to recover the raid just because it has to be done before the shops open tomorrow.

Anyways, anybody got any thoughts on the FIFO problem (ie "p---------" from 'ls -l'). Virtually all the entries in lost+found have it set. I've googled for mkfifo() source but only gets links to how to use it rather than mkfifo.c itself. If I can see how it sets the bit likely I'll be able to clear it. Ideally it would be RHEL/Centos 5.5 but anything will do.

TIA
 
  


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
Trashed DVD+RW tpreitzel Linux - General 7 08-15-2009 11:59 PM
I trashed my trash! jsoulejr Linux - Desktop 3 02-01-2007 02:02 AM
Voodoo 2 Glide 3Dfx test trashed my disk?? MKS45 Linux - Newbie 1 03-29-2004 04:46 PM
I trashed my grub.conf and need help vtbludgeon Red Hat 5 01-22-2004 12:32 AM
hdd trashed lackluster Linux - Hardware 10 02-27-2003 01:40 AM


All times are GMT -5. The time now is 06:15 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration