LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 04-24-2012, 11:08 AM   #1
ununun
Member
 
Registered: Jun 2011
Posts: 82

Rep: Reputation: Disabled
power failure > fsck -y > ext4 converted into ext3; journel deleted etc > here


i have a desktop at home running arch linux, so yesterday my bro called me about computer not booting up. so like many times before i thought he did or the computer was turned off abruptly (may be after power failure). i told him to fsck.ext -y /dev/sda1 in partedmagic. but he did it while fs was mounted , i told him to hit ctrl+c and run it again with fs unmounted. still os wont boot, grub error 15 is shown instead

so i told him to hold on , i would come and take a look.

so there i am now. in partmagic i fsck.ext4 -y /dev/sda1 then i noticed something like journel not found recreating journel, fs now ext3 etc etc.

so here i am.

what to do now. (if nothing is possible i may have to recover files with hexedit,)
 
Old 04-24-2012, 12:11 PM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 5,953

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
fsck while mounted = shooting yourself in the head.

I suggest an email to the e2fsck author/maintainer, who is a friendly chap with a good knowledge of the subject. Do nothing meanwhile, and convince your brother to do likewise.
 
Old 04-24-2012, 12:27 PM   #3
ununun
Member
 
Registered: Jun 2011
Posts: 82

Original Poster
Rep: Reputation: Disabled
i know, thats why i am so angry with partedmagic. i mean who the hell mount the fs that you are about to repair.
 
Old 04-28-2012, 05:33 AM   #4
ununun
Member
 
Registered: Jun 2011
Posts: 82

Original Poster
Rep: Reputation: Disabled
just one question. can i mv all data from lost+found to the same fs like it was before. can it cause data loss ?
 
Old 04-28-2012, 09:30 AM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 1,167

Rep: Reputation: 505Reputation: 505Reputation: 505Reputation: 505Reputation: 505Reputation: 505
Quote:
Originally Posted by ununun View Post
can i mv all data from lost+found to the same fs like it was before. can it cause data loss ?
No problem, since mv within a file system is just a rename operation. A link to the existing inode gets created in whatever directory you choose, and the link in the lost+found directory gets deleted. No data gets copied; no data will be lost. The only difficulty with recovering files from lost+found is figuring out what the original file name and directory might have been.
 
Old 04-28-2012, 09:45 AM   #6
ununun
Member
 
Registered: Jun 2011
Posts: 82

Original Poster
Rep: Reputation: Disabled
it just few dirs.

thanks for the info. i will post the results.
 
Old 04-30-2012, 03:10 AM   #7
ununun
Member
 
Registered: Jun 2011
Posts: 82

Original Poster
Rep: Reputation: Disabled
all done. all data saved. thanks business_kid & rknichols.

ps it wasnt parted magic . my brother mounted it before fsck. sorry.
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ext3 converted to ext4, still reported as ext3 eduperez Linux - General 3 02-08-2012 12:25 AM
[SOLVED] Permanent filesystem corruption on reiserfs, ext3 and ext4 - disk failure? trumpet_tom Linux - Hardware 9 02-11-2010 05:29 AM
fsck on ext3, failure to extract data :( azsquall Linux - Server 7 07-06-2009 08:30 PM
Removing external drive causes boot failure: fsck.ext3: unable to resolve... David Marks Linux - Hardware 6 06-23-2009 10:14 AM
help!, power failure, fsck lin00b Linux - Newbie 3 08-19-2004 05:48 AM


All times are GMT -5. The time now is 12:16 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration