PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > /boot partition erased ( needed)
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

/boot partition erased ( needed)

Réponse
 
LinkBack Outils de la discussion
Vieux 16/08/2007, 19h40   #1
Deephay
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut /boot partition erased ( needed)

Greetings all,

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. I then reinstall grub as
well as kernel-images, then I did:

grub-install --recheck /dev/sda

and message said: "/dev/scsi/host1/bus0/target0/lun0/disc does not
have any corresponding BIOS device. I then reboot the machine, grub
appears:

GRUB Loading stage1.5.
GRUB loading, please wait...
Error 15

I then copied all the files from /usr/lib/grub/ to /boot/grub/, the
prompt "grub>" will appear instead of boot into system.
I burned a debian install cd1 and boot into rescue mode, after mount
and chroot into the root file system, grub-install will still give the
same anwser.

Any is very very appreciated.

Cannot Cheers Anymore,
Deephay


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 16/08/2007, 21h50   #2
Mark Neidorff
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: /boot partition erased ( needed)

On Thursday 16 August 2007 01:32 pm, Deephay wrote:
> Greetings all,
>
> 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. I then reinstall grub as
> well as kernel-images, then I did:
>
> grub-install --recheck /dev/sda
>
> and message said: "/dev/scsi/host1/bus0/target0/lun0/disc does not
> have any corresponding BIOS device. I then reboot the machine, grub
> appears:
>
> GRUB Loading stage1.5.
> GRUB loading, please wait...
> Error 15
>
> I then copied all the files from /usr/lib/grub/ to /boot/grub/, the
> prompt "grub>" will appear instead of boot into system.
> I burned a debian install cd1 and boot into rescue mode, after mount
> and chroot into the root file system, grub-install will still give the
> same anwser.
>
> Any is very very appreciated.
>
> Cannot Cheers Anymore,
> Deephay


Ummmmmmmm................

My daughter has this habit of saying "be careful" AFTER someone slips, trips,
drops something, or just messes up in general. I'm not going to act like my
daughter. (suffice it to say, that "be careful is now treated as a joke
around here)

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.

Mark


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 16/08/2007, 22h40   #3
Krzysztof Lubański
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: /boot partition erased ( needed)

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.

Good luck!

--
Krzysztof Lubanski



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 17/08/2007, 21h50   #4
Andrei Popescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: /boot partition erased ( 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)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGxfsUqJyztHCFm9kRAonlAJ4n86Prsq3Fg/1Y2RmLWhCWu/UN4QCgkIRW
4/Qd18DeCMYYpoVlab9Nv9g=
=Fm4s
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 17/08/2007, 21h50   #5
Andrei Popescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: /boot partition erased ( 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)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGxfsUqJyztHCFm9kRAonlAJ4n86Prsq3Fg/1Y2RmLWhCWu/UN4QCgkIRW
4/Qd18DeCMYYpoVlab9Nv9g=
=Fm4s
-----END PGP SIGNATURE-----

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h53.


Édité par : vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12043 seconds with 13 queries