|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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----- |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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----- |
|
![]() |
| Outils de la discussion | |
|
|