LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-13-2006, 03:52 PM   #1
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Ext2 recovery


I did stupid mistake while copying the script from the web (this site) and so I've got rm -rf. My bin and etc directories were deleted, others were not harmed. It's good that I'm using ext2 so I've found some tools which could help me: e2undel, recover, unrm, also debugfs was mentioned. I could use them if I could boot into my Slackware system, but now it's not bootable (lilo.conf, fstab and all other files in etc are missing). As well, I don't have another Linux system at home and consequently can't mount my damaged partition. Off course I could reinstall Slackware but tweaking everything from the start would be a bit painful. And this restoring task is also a challenge. Any Utopian and not Utopian suggestions how it would be possible to recover my ext2 are welcome.
 
Old 03-13-2006, 04:00 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Can you boot with your install CD as "recovery mode"? Or do you have access to a live Cd like Knoppix?
 
Old 03-13-2006, 07:59 PM   #3
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
What about trying to grep the disk image, since config files are plain text. This wouldn't help your stuff in bin. Read the undeletion HOWTO, if you haven't already. If your stuff is really in ext3, it is pretty much unrecoverable.
 
Old 03-13-2006, 08:55 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Yes. You can use cd1 to boot your system, but it may not work do to loss of major files on your boot drive. Bott to cd1, and at the first 'boot:' prompt, follow the instructions above it.
 
Old 03-13-2006, 08:56 PM   #5
sweetnsourbkr
Member
 
Registered: Aug 2005
Location: Bay
Distribution: Zenwalk, OpenBSD, Slackware
Posts: 167

Rep: Reputation: 30
Another example of how backups are so critical. Hind-sight is always 20/20 like they say.

Reinstall the system, but do not format the partition. That's the easy way around it. You'll keep most of your 3rd party applications, I suppose.
 
Old 03-13-2006, 10:56 PM   #6
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Original Poster
Rep: Reputation: 53
I have several live cds. One of them is knoppix. I've booted it but there wasn't any recover,e2undel stuff.
I've read some. Most of them are about undeleting several mp3 files and so on. Not about restoring all bin and etc directory.
I've booted my system with cd1. But what's now? I mounted my root partition as ro but I can't really do anything else cause all major programs are broken.
Will search something about disk image. At firstly I thought that it won't be suitable for me because you need to do it manually and so skipped it.

One idea came to my head. What if I use Slax and boot from USB key? Maybe I could compile any of these programs there?
 
Old 03-13-2006, 11:01 PM   #7
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
It is POSSIBLE. But, judging from the way you are talking about the system, you maybe best off to reinstall (just don't format when it asks you to).

Sometimes, we all make mistakes of this magnitude. Just try a reload, and MAYBE (80%) everything will be ok. If not, reinstall the extra stuff you can't get to work....
 
Old 03-13-2006, 11:34 PM   #8
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by cwwilson721
But, judging from the way you are talking about the system, you maybe best off to reinstall (just don't format when it asks you to).
Is it bad or good how I am talking?
 
Old 03-14-2006, 12:07 AM   #9
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
I meant with the /bin and other stuff being trashed, you may need to reinstall. Just don't reformat the partitions you have stuff on.
 
Old 03-14-2006, 12:09 AM   #10
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Original Poster
Rep: Reputation: 53
Ok. Got the point.
 
Old 03-14-2006, 12:11 AM   #11
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Sorry....'Americanisms' sneaking into my typing.....lol
 
Old 03-14-2006, 12:15 AM   #12
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by cwwilson721
Sorry....'Americanisms' sneaking into my typing.....lol
No, the problem (my problem) is that I am not the native speaker of English.
 
Old 03-19-2006, 03:46 AM   #13
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Original Poster
Rep: Reputation: 53
To get system to work properly needed to reinstall the whole system. Installing only base system didn't help (not all programs were working properly). Thank's for everybody's help.
 
Old 03-19-2006, 02:34 PM   #14
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
You can try to recover, but it might be alot of work...

I would recommend just backing up yr home drive and making a note of what type of packages you have installed, and do a reinstall...

my .2
 
Old 03-19-2006, 06:18 PM   #15
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Quote:
Originally Posted by Alien_Hominid
Is it bad or good how I am talking?
Side comment: Your English is excellent. The phrase "the way you are talking about the system..." just means "based on your description of the system...."
 
  


Reply



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
EXT2 -fs warning (device sda1): ext2_fill_super:mounting ext3 filesystem as ext2 snakeo2 Linux - Newbie 6 11-19-2006 07:35 PM
CRITICAL data recovery from ext2/3 partition dadim Linux - General 4 01-09-2006 07:26 PM
FAT to ext2 twinkiehunterg Linux - Software 2 10-21-2003 10:28 AM
ext2 and fat32 gag Linux - Newbie 2 10-16-2003 03:02 PM
ext2 to xfs bkmesenbrink Linux - Newbie 1 09-23-2002 09:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:00 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
Open Source Consulting | Domain Registration