Re: /boot partition erased (help needed)
On Thu, Aug 16, 2007 at 10:35:28PM +0200, Krzysztof LubaÅski wrote:
> On Thu, 2007-08-16 at 15:41 -0400, Mark Neidorff wrote: > > On Thursday 16 August 2007 01:32 pm, Deephay wrote: > > > I made a very stupid mistake two hours ago, I bought a new USB storage > > > disk and I was trying to test the speed: > > > > > > dd if=/dev/zero of=/dev/sda1 > > > > > > sadly I typed "sdb1" as "sda1" and that was the /boot partition, I > > > realized it immediately, but it was too late.[...] > > > > Have you tried formatting the partition? You just wrote a series of "0"s > > across the partition...not as files, as raw data. You wiped out the inode > > tables, superblocks, etc. > > As Mark wrote, first format /dev/sda1 using mkfs.ext3, mkfs.ext2, > mkfs.reiserfs etc. - whichever filesystem you use(d) - and then mount it > as /boot. > > After that you have to reinstall your kernel image(s) because this is > what you have essentialy wiped out. The install scripts in the > linux-image-* packages should then automatically recreate GRUB's > configuration.
grub (the package) will probably need a reinstall as well.
Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Fri Aug 17 15:46:54 2007
This archive was generated by hypermail 2.1.8
: Sun Oct 07 2007 - 02:21:00 EDT
|