LinuxQuestions.org
Help answer threads with 0 replies.
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
  Search this Thread
Old 08-13-2016, 06:34 PM   #16
lilzz
Member
 
Registered: Aug 2006
Posts: 73

Original Poster
Rep: Reputation: 15

Quote:
Originally Posted by Emerson View Post
This is why SystemRescueCD was invented.
I have my Ubuntu live CD but not this SystemRescueCD and looks like I have to get this CD first.
 
Old 08-13-2016, 06:49 PM   #17
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
USB stick with SystemRescueCD, I always have one ready to use. USB sticks are not that expensive nowadays.
 
Old 08-13-2016, 07:42 PM   #18
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
Quote:
Originally Posted by lilzz View Post
How do I use that?
dd if=/dev/sda5 of=my_file.img?
Then fsck my_file.img?
You might try
Quote:
dd if=/dev/sda5 of=my_file.img conv=noerror,sync
and check the man page for other conv= options available.
 
Old 08-18-2016, 11:57 AM   #19
lilzz
Member
 
Registered: Aug 2006
Posts: 73

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Doug G View Post
You might try and check the man page for other conv= options available.
OK, i did create my_file.img with dd command
and fsck my_file.img

then what next in order to see my file?
 
Old 08-18-2016, 12:44 PM   #20
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,566

Rep: Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093Reputation: 2093
Quote:
Originally Posted by lilzz View Post
OK, i did create my_file.img with dd command
and fsck my_file.img

then what next in order to see my file?
Code:
mount -r -o loop my_file.img /mnt/tmp
In place of "/mnt/tmp" you can use any existing (preferably empty) directory. The "-r" (read-only) is for safety. Omit it if you really want read/write access to that image.
 
Old 08-18-2016, 12:58 PM   #21
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by lilzz View Post
How do I use that?
dd if=/dev/sda5 of=my_file.img?
Then fsck my_file.img?
No.
fsck repairs file systems.
 
Old 08-18-2016, 02:25 PM   #22
LukeRFI
Member
 
Registered: Jun 2016
Location: Canada
Distribution: Various versions of Fedora
Posts: 30

Rep: Reputation: Disabled
At this point in the game, there is a good chance that the heads are starting to crash on this drive. It is ill advised to be trying to repair anything on the original drive, as it has a very good chance of making things worse. The first and wisest course of action is to get a full sector-by-sector copy of the drive (if you can) with ddrescue, logging the sectors that are not accessible. If your data is of any value at all and/or you run into issues reading the drive, you should consider seek the assistance of a data recovery professional who has the facilities to safely recover your data.
 
  


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
[SOLVED] Hard drives crashed on CentOS-64 server - installed new drive, need to recover data rolandpi Linux - Server 2 07-29-2013 04:51 AM
Linux Blade server detecting only 1 hard rive nehad Linux - Newbie 3 07-09-2013 01:43 AM
Second hard rive questions zappadragon Linux - Newbie 3 11-01-2010 07:51 PM
Why did Linux give most of my hard rive to /home? gram_vaz Linux - General 2 06-03-2004 06:21 AM
Quick hard rive question ixus_123 Linux - Hardware 5 04-30-2004 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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