SlackwareThis 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.
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.
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
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.
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
Quote:
can't find the harddisk
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 ?
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.
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).
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
Code:
boot = /dev/hda
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).
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
Code:
boot = /dev/hda
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.