Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-02-2006, 10:33 PM
|
#1
|
Member
Registered: May 2004
Location: Bangkok, Thailand
Distribution: Simply Mepis 8.0 32bit
Posts: 89
Rep:
|
How to rescue a ruined superblock harddisk?
hello
Firstly, I'll give a sequence that lead to desaster
1. Installed X distro which came with grub
2. Changed my mind that I want slack, in order to do so I then try to remove grub. Unfortunatly due to my carelessness, I issued a wrong command dd if=/dev/zero of=/dev/hda bs=512 which subsequencly wipe out ,what I beleave to be ,the primary partition or the boot sector (I'm not sure). But that is alright since I'm going to install Slack anyway.
3. Managed to installed slackware10.2 from CD from start to finish, with error free. Before the installation, I delete and recreate all the needed partitions with fdisk. That went by ok as well.
4. On first reboot, now here's the problem, my comp can't find the harddisk.
5. Booting from Slack CD1 bypassing a command to boot from harddisk result in a kernel spit out half a page of error messages related to disk error and freezed.
I hope the damage is not permanent, if there's a recovery procedury, I would be so glad to know. Thanks
|
|
|
05-02-2006, 10:46 PM
|
#2
|
Member
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298
Rep:
|
You could troubleshoot this problem for awhile, but in my opinion I would take the fast approach: fdisk and re-install
You have nothing to loose, since you already "flattened" the root partition. On the other hand if you have data in your home directory you may want to boot with a "live CD" get your data and then start all over.
Hope this helps.
|
|
|
05-02-2006, 11:15 PM
|
#3
|
Member
Registered: May 2004
Location: Bangkok, Thailand
Distribution: Simply Mepis 8.0 32bit
Posts: 89
Original Poster
Rep:
|
But before I installed Slack, I've fdisked to delete everything and recreating all the new partitions already. Or is it possible I missed something?
|
|
|
05-02-2006, 11:22 PM
|
#4
|
Member
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298
Rep:
|
Well ... to me you have a problem with the boot loader. But unless you are familiar with Slack and linux it is faster to re-install.
If you feel courageous you can troubleshoot and re-install the boot loader.
BTW, I assume that when you say you mean that the system cannot find the boot sector and therefore it fails to boot. Or you mean that your computer complaints that there is not HDD ?
|
|
|
05-02-2006, 11:55 PM
|
#5
|
Member
Registered: May 2004
Location: Bangkok, Thailand
Distribution: Simply Mepis 8.0 32bit
Posts: 89
Original Poster
Rep:
|
it complains that there is no bootable CDrom in the drive - this, I suspect that the system had skipped the attempt from booting from hdd to looked for CDrom booting instead, as specified by the booting sequence in the BIOS. Therefore I beleave the system can't "see" the harddisk.
|
|
|
05-03-2006, 12:08 AM
|
#6
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,286
|
Get an up-to-date liveCD - Knoppix should do.
Redo the fdisk from there to ensure it writes the partition table and disk signature bytes correctly. Used to be a problem, but I used a Knoppix 3.9 CD to succesfully rebuilt a disk I deliberately trashed like you did (as a test a couple of months ago).
|
|
|
05-03-2006, 12:19 AM
|
#7
|
Member
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 922
|
Just an idea: maybe you installed lilo to the root partition. In your case it needs to be installed to the MBR. In lilo.conf you should have
or whatever your harddisk is. You can fix this by booting off your slackware CD, and then passing some parameters to lilo when you run it (forgot what they are).
|
|
|
05-03-2006, 09:34 PM
|
#8
|
Member
Registered: May 2004
Location: Bangkok, Thailand
Distribution: Simply Mepis 8.0 32bit
Posts: 89
Original Poster
Rep:
|
Quote:
Originally Posted by drumz
Just an idea: maybe you installed lilo to the root partition. In your case it needs to be installed to the MBR. In lilo.conf you should have
or whatever your harddisk is. You can fix this by booting off your slackware CD, and then passing some parameters to lilo when you run it (forgot what they are).
|
Yeah, you're right, it was the misconfigured LILO. I booted up with Slack CD1, chrooted into the drive to make the change. No need for reinstall. Despite having experience with GNU/linux for some time, I tend to freak out with simple problem like this, that I can't help posting. Now it is cured.
|
|
|
All times are GMT -5. The time now is 11:33 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|