LinuxQuestions.org
Review your favorite Linux distribution.
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 01-02-2008, 06:03 PM   #1
DeuceNegative
LQ Newbie
 
Registered: May 2006
Location: Boston, MA
Distribution: Gentoo
Posts: 29

Rep: Reputation: 16
mounting a bad hard drive read-only (like the kernel does during boot)


Hello,

My root filesystem is on a failing hard drive, and I want to backup the data. Normal booting fails at the point when it tries to remount the root filesystem read/write. I can successfully boot into emergency mode, with the root filesystem mounted read-only, and I can browse the filesystem. However, in order to backup some precious files, I would like to use the network and other things that are not available in emergency mode.

So, I would like to load a Knoppix LiveCD, mount my bad drive read-only, copy some important files over the network, and deal with the rest of the drive later. However, when I try to mount the drive with something along the lines of:

Code:
# mount -vi -t reiserfs -o ro,noatime,notail /dev/sda3 /mnt/rescue
it fails, looping with this error about bad blocks:

Code:
ata1: translated ATA stat/err 0x51/40 to SCSI SK/ASC/ASCQ 0x3/11/04
ata1: status=0x51 { DriveReady SeekComplete Error }
ata1: error=0x40 { UncorrectableError }
The same thing happens whether or not I use all those options with mount. I can mount other partitions on the drive without problems.

Given that an emergency mode boot can mount the drive read-only, I'm hoping a LiveCD can also. Does anybody know how?

Thanks!
 
Old 01-02-2008, 06:21 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Try "errors=remount-ro"
 
Old 01-02-2008, 06:44 PM   #3
DeuceNegative
LQ Newbie
 
Registered: May 2006
Location: Boston, MA
Distribution: Gentoo
Posts: 29

Original Poster
Rep: Reputation: 16
Thanks for the help.

Unfortunately, the errors=remount-ro option seems to only be available for ext2, ext3, and jfs. I'm using reiserfs.
 
Old 01-02-2008, 09:48 PM   #4
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
If you get yourself the Helix Live CD you can just click on the device icon on the desktop. Because it is a forensics CD, it defaults to mounting in read only mode. It also has a lot of nifty data recovery tools and great documentation.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Can't Read Superblock" when mounting a second hard drive Maeltor Linux - Software 7 01-18-2007 01:13 PM
hard drive with bad read/write caching Old_Fogie Slackware 5 08-24-2006 08:01 AM
Read only hard drive causes hang at boot Chrontius Debian 6 08-03-2005 09:38 AM
Bad superblock when mounting hard drive... SamJ Linux - Hardware 5 06-04-2005 07:32 PM
main hard drive won't boot...read-only mode? mr_a_ali Linux - General 14 04-23-2005 07:03 AM

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

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