🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.linux
Article #372

Re: Lost partition

#372
From: sandy
Date: Sun, 25 Feb 2001 19:57
69 lines
3574 bytes
The partition is still in the partition table and look fine, but
you probably over-wrote the boot record at the start of
partition /dev/hda5 when you installed the linux boot loader.
Therefore, I believe if you write a standard FAT32 boot
record back to the beginning of partition /dev/hda5 you may
be able to recover the FAT32 filesystem.

Before you start playing with /dev/hda5 I suggest you try to
make a copy of the partition somewhere else (on /dev/hdb).
This may not work because of the bad boot record in
/dev/hda5 but try anyhow.

First make sure you have gnu "parted" on your distro.

If not download from;

http://www.gnu.org/software/parted/parted.html

Easiest way is to download the boot floppy version from;

/gnu/parted/bootdisk

directory and then "dd if=partboot.img of=/dev/fd0"

to a floppy to make bootable floppy version.

See documentation at;

http://www.gnu.org/software/parted/USER

If you made the floppy boot then insert the floppy and reboot
the computer.  If you parted is under Linux then boot Linux.
Please double check all my commands below. Then run;

parted

enter commands;

select /dev/hdb
print

Now look and find some space to make a new partition to hold
a copy of /dev/hda5.  Enter command;

mkpart PART-TYPE fat START END

PART-TYPE is one of: primary, extended, logical and START, END
are the start and end in Mbytes of some free space on /dev/hdb to hold
the copy of /dev/hda5 (needs to be about the size of /dev/hda5).  Now
enter;

print

Look at the number of the new partition you just created.  Now copy
/dev/hda5 into the new partition.  Enter;

cp /dev/hda 5 NUM

NUM is the number of the partition on /dev/hdb that you just created
Note that the selected drive, /dev/hdb, is the copy-to drive.  If this
works then reboot and see if Windoze or Linux can use the partition
you just copied to on /dev/hdb.

Report back the results.

Also, report a "ls -l /boot" (the original boot record from /dev/hda5
may be backed up in this directory).

Keith
Technical Details
Message-ID: <6tdm6.11657$CW1.8952318@typhoon.ne.mediaone.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!netnews.com!newsfeed.wirehub.nl!news.stealth.net!24.30.200.2.MISMATCH!news-east.rr.com!news.rr.com!chnws02.mediaone.net!chnws05.ne.mediaone.net!24.128.8.202!typhoon.ne.mediaone.net.POSTED!not-for-mail
References: <3a973ada$0$25511$7f31c96c@news01.syd.optusnet.com.au> <TjXl6.10734$CW1.8347507@typhoon.ne.mediaone.net> <3a98a2a6$0$25500$7f31c96c@news01.syd.optusnet.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f8a83,3313a7f9466caaac
X-Google-Attributes: gidf8a83,public
X-Google-Thread: f9382,3313a7f9466caaac
X-Google-Attributes: gidf9382,public
X-Google-Thread: 102983,3313a7f9466caaac
X-Google-Attributes: gid102983,public
X-Google-Thread: 100c5f,3313a7f9466caaac
X-Google-Attributes: gid100c5f,public
X-Google-ArrivalTime: 2001-02-25 12:00:10 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!netnews.com!newsfeed.wirehub.nl!news.stealth.net!24.30.200.2.MISMATCH!news-east.rr.com!news.rr.com!chnws02.mediaone.net!chnws05.ne.mediaone.net!24.128.8.202!typhoon.ne.mediaone.net.POSTED!not-for-mail
From: "sandy" <sandy_pond@altavista.com>
Newsgroups: alt.linux,alt.os.linux.mandrake,aus.computers.linux,comp.os.linux
References: <3a973ada$0$25511$7f31c96c@news01.syd.optusnet.com.au> <TjXl6.10734$CW1.8347507@typhoon.ne.mediaone.net> <3a98a2a6$0$25500$7f31c96c@news01.syd.optusnet.com.au>
Subject: Re: Lost partition
Lines: 80
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Message-ID: <6tdm6.11657$CW1.8952318@typhoon.ne.mediaone.net>
Date: Sun, 25 Feb 2001 19:57:54 GMT
NNTP-Posting-Host: 66.31.172.45
X-Complaints-To: abuse@mediaone.net
X-Trace: typhoon.ne.mediaone.net 983131074 66.31.172.45 (Sun, 25 Feb 2001 14:57:54 EST)
NNTP-Posting-Date: Sun, 25 Feb 2001 14:57:54 EST
Organization: Road Runner