Re: file recovery ideas? bad boot block

From: Walter Mautner (nextnews.15.eatallspam_at_spamgourmet.com)
Date: 01/06/04


Date: Tue, 06 Jan 2004 22:19:34 +0100

agathon wrote:

> Greetings,
>
> Note, I can ls and navigate through /home directories if
> I boot cdrom.
>
> 1. Running RH 8.0 on disk hdb. Have 2 HD: hda, hdb
> 2. Disk hdb apparently failed. Had message when vi invoked:
> something like "no swap space available; write error" and it went
> downhill from there, to the point where boot doesn't complete. I
> *don't* think I have a swap problem; more likely the disk fried
> or other hardware problem. Rescue diskette boots ok but no
> help otherwise (Am I missing something?).
>
> I'd like to:
>
> Recover about 1GB of important non-system files from
> hdb on /home and recover my installation or just re-install on hdb.
>
>
> ......I'm looking for a strategy to recover the files.......
>
> hda is available (not used in RH installation; it has old RH 7.2
> partitions; I want to put FreeBSD on it after crash problem is solved).
>
> These seem like choices:
>
> ......Without recovering system....
> Move files to hda using some method?

>From the rescue boot (you get a root prompt, don't you?) try to mount your
/home partition readonly. You are in luck if you know which hdb(1...n)
device you had, otherwise call "fdisk /dev/hdb" and "p" to display the
partition table. Figure out which number your /home might have. Then try to
 "mkdir /mnt/home; mount -o ro /dev/hdbX /mnt/home". From the rescue cd,
/mnt is only a mountpoint in ramfs.
Do the same for a partition on /dev/hda where you want to put your data.
Then just cp with wildcards or "cp -a" a whole directory tree preserving
permissions.

> What if hda isn't viable - can I partition it without a working
> system?

>From your questions, I would suggest you install a minimal system or get a
knoppix live cd.

> I have a DDS drive that works; that would be a good option,
> but Rescue Mode from RH CDROM doesn't recognize tape devices,
> even though /dev/* is there.
>
Hmm, have you tried to insmod the necessary scsi modules from rescue?
Usually they are provided for recovery purposes. But that's too much
keyboard hacking for now, try the other option(s) first.

> .... Install 'temp' system on hda ....
> Install RH on hda, then try to move hdb files to hda, then
> reinstall on hdb? (For this, how do I make hdb partitions & files
> readable?) I do need to reinstall on the larger hdb. Obviously,
> I need to check its health after 'temp' installation on hda.
>
*After* you have saved your data, you should download a test utility from
maxtor or seagate. It creates a bootable floppy with a good test program.

-- 
Longhorn error#4711: TCPA / NGSCB VIOLATION: Microsoft optical mouse 
detected penguin patterns on mousepad. Partition scan in progress
 to remove offending incompatible products.  Reactivate your MS software
 (3 days grace period). [LinuxCounter#295241]


Relevant Pages

  • change hdb to hda
    ... floppy and carried on with it on hdb. ... Now I want move the drive with suse from hdb to hda, so I can add a second ... PS When googling on instructions for moving the home partition, ...
    (alt.os.linux.suse)
  • Re: rsync clone - ubuntu failure
    ... boot knoppix, mount drives and ... ... no error messages shown - all good, change jumpers of hdb from slave to ... but what did you do with the original hda? ...
    (Ubuntu)
  • [OT] hardware problem
    ... I put it in and after 20 minutes one disk goes ... partition on hda to another: it takes forever, ... I leave the system powered down overnight, boot a Sarge partition on ... hda and now the system can't access hdb. ...
    (Debian-User)
  • Re: boot hdb?
    ... > hda, i'll lose my mbr. ... i don't see how then to boot into my working rh9 partition on hdb. ... > i can invoke grub while on the rescue cd. ...
    (RedHat)
  • RE: Installing Debian on second hard disk
    ... > instead of hda. ... > or hdb at the time of installation of Debian. ... > will debian still boot or will it refuse to boot? ... initially realize that grub labels drives differently than the kernel does. ...
    (Debian-User)