LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-07-2010, 10:35 PM   #1
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 564

Rep: Reputation: 56
ext4 partition turned into Unknown according to gparted


I was using gparted to resize my /var partition, which is supposed to be an ext4 partition, and during the beginning stages of the resize/move procedure I cancelled out of the process despite the warning this might be bad. The process was in the middle of the "read" stage so I figured nothing can go wrong during a read, but now I cannot access this partition mount wise. Is there anyway to repair this?
 
Old 07-08-2010, 02:18 AM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Think you have it. If you resized the partition the filing index could be among the first few that get changed but you stopped the files moved to the correct position.
 
Old 07-08-2010, 03:10 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
You could try to fix the partition table with "testdisk". As long as the only thing that has been broken is that, of course. You might need to run fsck on the fs afterwards (if you manage to get it back at all first).

But first, if you value the data inside that fs, you should be doing an integral backup using an fs-agnostic tool like dd, so you can dump back the contents of the disk if something goes wrong and try again (and it will likely be that way).
 
Old 07-08-2010, 06:00 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
I don't know that testdisk (good as it is) can help with this.
If you choose to ignore warning messages, your backups had better be good - and current.
 
Old 07-08-2010, 01:13 PM   #5
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 564

Original Poster
Rep: Reputation: 56
Very fortunate for me the partition that was affected was the /var partition and being that this system was fairly new, it is not as serious as if it were / or /home. I had a feeling I should have used dd to back up the partitions before attempting anything, but I neglected to heed my own inner warning =( It is probably more trouble to fix this than reinstall Slackware and copy /etc and /root over. I believe saikee is right in that the files and their index are in limbo, which is why testdisk was not able to help in this situation...
 
Old 07-09-2010, 04:28 AM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Testdisk excels at repairing partition tables, even in rare cases. But it doesn't do a thing related to the data inside. There's a tool for that from them as well, it's "photorec", regardless of its name it can recover many types of files.

This is just for the record, since you seem to have sorted your problem already.

/var issues should be taken seriously hehe
 
Old 07-09-2010, 04:28 AM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Testdisk excels at repairing partition tables, even in rare cases. But it doesn't do a thing related to the data inside. There's a tool for that from them as well, it's "photorec", regardless of its name it can recover many types of files.

This is just for the record, since you seem to have sorted your problem already.

/var issues should be taken seriously hehe
 
  


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
boot error mount:unknown filesystem type 'ext4' vinvishwa Linux - Distributions 3 02-06-2010 08:19 AM
boot error mount:unknown filesystem type 'ext4' vinvishwa Fedora 1 02-05-2010 03:10 PM
Gparted: Joining 2 partition ext3 within one partition (data saved) Davno Linux - Software 1 12-11-2009 04:24 PM
Ext4 partition corrupted by resized NTFS Vista C:\ partition? graviton-boson Linux - Newbie 2 03-16-2009 01:26 PM
Help with C code for detecting ext4 in VisParted (fork of GParted) Patrick Verner Programming 6 03-03-2008 08:00 PM

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

All times are GMT -5. The time now is 08:37 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