LinuxQuestions.org
Visit Jeremy's Blog.
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 10-05-2008, 02:42 AM   #1
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Rep: Reputation: 30
recovering data


Hai all,
Is there any way to recover data after formatting a hard disk using mkfs command.

Thanks
 
Old 10-05-2008, 03:57 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
You might try the photorec program. It may depend on whether the formatting process zeroed out the contents or just created a new file structure. Also look at using "dd" and the "file" program. You can cut out a few blocks from the device and then see if the file program can recognize magic bytes for a particular file type.

Work from a live distro so that you don't have the system write to the partition. You could also make a bit copy of the device and try to rescue files from the image.
 
Old 10-05-2008, 10:30 AM   #3
linuxer8786
Member
 
Registered: Sep 2008
Posts: 43

Rep: Reputation: 15
Quote:
Originally Posted by yusufs View Post
Hai all,
Is there any way to recover data after formatting a hard disk using mkfs command.

Thanks
you try to use "recover lost data" software

Last edited by Tinkster; 10-30-2010 at 04:45 PM.
 
Old 10-06-2008, 05:52 AM   #4
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by linuxer8786 View Post
you try to use "recover lost data" software
Thanks friends.. anyway I tried to install RHEL ES 4.0.. but my hard drive is not detected this time.. what could be the reason ?



yusuf
 
Old 10-07-2008, 12:58 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Check your cables. If it is a sata drive, does the kernel for that version have sata support? You may need to modprobe a device so the drive is detected. Which module depends on the hardware in your computer:
Code:
/lib/modules/2.6.25.16-0.1-default/kernel/drivers/ata/sata_inic162x.ko
/lib/modules/2.6.25.16-0.1-default/kernel/drivers/ata/sata_mv.ko
/lib/modules/2.6.25.16-0.1-default/kernel/drivers/ata/sata_nv.ko
/lib/modules/2.6.25.16-0.1-default/kernel/drivers/ata/sata_promise.ko
/lib/modules/2.6.25.16-0.1-default/kernel/drivers/ata/sata_qstor.ko
/lib/modules/2.6.25.16-0.1-default/kernel/drivers/ata/sata_sil.ko
/lib/modules/2.6.25.16-0.1-default/kernel/drivers/ata/sata_sil24.ko
/lib/modules/2.6.25.16-0.1-default/kernel/drivers/ata/sata_sis.ko
/lib/modules/2.6.25.16-0.1-default/kernel/drivers/ata/sata_svw.ko
/lib/modules/2.6.25.16-0.1-default/kernel/drivers/ata/sata_sx4.ko
/lib/modules/2.6.25.16-0.1-default/kernel/drivers/ata/sata_uli.ko
/lib/modules/2.6.25.16-0.1-default/kernel/drivers/ata/sata_via.ko
/lib/modules/2.6.25.16-0.1-default/kernel/drivers/ata/sata_vsc.ko
 
  


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
Recovering Data KrazyKanuk Linux - Newbie 4 10-25-2007 03:43 PM
data recovering ??? Dmitry Bandurin Linux - General 2 07-25-2006 07:03 PM
recovering data pirozzi Linux - General 5 11-30-2004 03:08 AM
recovering data... marsques Linux - General 18 09-01-2004 03:36 PM
Recovering data CatSC Linux - Newbie 3 01-01-2004 12:25 AM


All times are GMT -5. The time now is 04:23 PM.

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