LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 08-01-2014, 09:23 AM   #1
theguardian
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Rep: Reputation: 0
Bad system disk


Not new to Linux, but have not worked in any detailed way w/ext or lvm.

Disk (RHEL4) has some mechanical issues, and most likely has experienced a head crash. It's a very old 40Mb external (USB), and I would like to retrieve files/dirs from this disk.

What's the procedure to take this disk and mount it on a new RHEL/CentOS 5.10 or 6.3 system.

I assume it will require some use of lvm commands such as vgscan, etc.

Thanks.
 
Old 08-01-2014, 11:00 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
40 MB or 40 GB?? I can't imagine a disk drive from the "40 MB" era still being operational, much less having a USB interface.

The first step in rescuing data from a failing disk should be to use ddrescue to recover as much data as possible to a file or disk partition on the new system. Then, depending on what could be recovered, we can take a look at what needs to be done to access the data. You should not try to play directly with the failing drive. Damage from a head crash can expand rapidly. ddrescue will make a quick pass to recover those sectors that can be read easily, and then go back to work on the troublesome ones.
 
Old 08-01-2014, 05:11 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Mounting it should be easy enough.

Two steps generally. One is can it be mounted and filesystem accessed to read files? If not then can a program like testdisk or some form of unstoppable copier be used?

I'd think it unlikely that you have a lvm setup but maybe. Almost any live cd/dvd/usb could be used I'd think to try to recover files.

Depending on how valuable versus how bad it is you may wish to try to dd (or special dd that ignores errors) the drive to an image file and then work on just the image file. As rknichols suggested.
 
  


Reply

Tags
lvm, rhel4



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Disk trouble -- bad disk or bad controller? r.stiltskin Linux - Hardware 4 02-26-2010 10:09 AM
Bad disk, bad disk controller, or bad memory? NULL Pointer Linux - General 2 03-01-2009 05:21 PM
"Mount: wrong file system type, bad option, bad superblock" User Name. Linux - Newbie 9 09-03-2008 03:40 PM
RAID1 array down to one disk with bad blocks, clone to good disk with dd noerror? ewolf Linux - Server 2 05-10-2008 12:40 AM
Running a mixed system: Bad? How bad? haertig Debian 5 11-09-2005 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:00 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
Open Source Consulting | Domain Registration