LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 01-02-2010, 02:02 PM   #1
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Rep: Reputation: 30
accidentally deleted jfs partition


just pluged a USB drive in and it messed up the divice locations so sdc became sdd. I issumed sdd was the new drive and did mkfs.jfs /dev/sdd1 which was full of data.

the original file system was also jfs and I havent writen any files to this partition.

Does anybody know of a way I can recover this lost partition as there is over 600GB of data on this partition that I cant realy loose

help please

berrance
 
Old 01-02-2010, 03:49 PM   #2
janoszen
Member
 
Registered: Oct 2009
Location: Budapest
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143

Rep: Reputation: 22
TestDisk

You could try this utility. No promises though. We have lost valuable data due to the JFS corrupt superblock issue, so the only thing I can recommend, that you migrade the heck away from JFS once you got your data back. And DO HAVE BACKUPS!

Oh yes, and BEFORE you try ANYTHING, do a DD copy of the whole disk.
 
1 members found this post helpful.
Old 01-02-2010, 05:46 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,803

Rep: Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923
Had you (actually) deleted your partition, you'd have been better off - testdisk would certainly be useful. You might want to look at photorec on the same site, but I don't know if it handles jfs.
You might be forced to use forensic recovery - that will be time consuming. And ugly.
 
Old 01-03-2010, 09:55 AM   #4
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Original Poster
Rep: Reputation: 30
found this http://jfsrec.sourceforge.net/ I hope it works. also just giving testdisk a go.

thanks guys for the info

berrance
 
Old 01-03-2010, 09:57 AM   #5
janoszen
Member
 
Registered: Oct 2009
Location: Budapest
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143

Rep: Reputation: 22
Good luck to you, I really mean it. JFSrec didn't help with the superblock issue, but maybe it helps with this.
 
Old 01-03-2010, 03:29 PM   #6
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Original Poster
Rep: Reputation: 30
jfsrec is working , the inode scan took over 24h to compleat but now it is recovering lost files.

Now I would say I hope this will help others who have accidently reforated a jfs partition but in reality I hope no one is as stupid as me to do that sort of thing.

the funny thing is I didnt have a back up of anything exept my photo's. The drive I was sopposed to have formated was going to be a back up drive for all the data I deleated. Oh the irony.

Thanks for the input guys, and if I remember I will post an update when the recovery is compleat.

Just entering my 10th year as a linux user and still a newbie.

berrance
 
Old 01-03-2010, 03:31 PM   #7
janoszen
Member
 
Registered: Oct 2009
Location: Budapest
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143

Rep: Reputation: 22
Nice

Good for you. I hope, you don't run into the superblock issue.
 
Old 01-06-2010, 06:49 AM   #8
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Original Poster
Rep: Reputation: 30
As it turns out I am better off for re formating the wrong partition and deleating all my files. I now have all my lost data back plus some files I thought I had lost ages ago.

Any way long story short, if anybody does accidently reformat a JFS partition use jfsrec. It may take a few days to get working again but it works.

Hope this is helpfull to sombody else.

berrance
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accidentally deleted NTFS partition with GParted theblang Linux - Software 17 08-07-2009 04:48 PM
Accidentally Deleted Partition Table jani_fedora Linux - Hardware 3 03-27-2008 05:24 PM
Accidentally Deleted my Linux Partition...Need Help ASAP robbs Linux - Newbie 3 07-10-2005 07:26 PM
Accidentally deleted debian partition PLZ HELP andymadigan Debian 7 09-01-2004 10:09 PM
accidentally deleted /boot partition, yet it boots timsch75 Linux - General 6 04-08-2004 02:51 PM


All times are GMT -5. The time now is 07:58 PM.

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