Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
I was being stupid by trying to help a friend with a computer problem, he wanted to get his windows xp back up and etc.
anyways, i got this dd line which i told him to do to erase his MBR.
dd if=/dev/zero of =/dev/hdc bs=512 count=1
anyways, i thought it was suppose to ONLY erase my MBR, which hopefully, i was hoping it'd do.
so I reran Lilo but i get this weird problem with my /dev/hdc1 partition, which is my Windows98 partition, I take it out and I wind up with only my Slackware partition on /dev/hdc5 still active.
so I thought, well that's not too bad, I'll just fix windows98 sometimes later and I loaded up Slackware after a reboot.
However, it didn't detect my /dev/hdc5 root partition either, so I was going CRAZY here.
I tried popping in the Slackware 10.0 CD 2 Rescue Disc. I add in the "root=/dev/hdc5" and it DOES THE SAME THING THAT HAPPENS ON SLACKWARE!!!
So now I'm panicking, I loaded up SimplyMEPIS cause I know it has qtparted. With qtparted, it doesn't show anything about my hard drive and reiserfsck doesn't seem to be helping my poor reiserfs on /dev/hdc5.
You *REALLY* don't want to be screwing with the first block of a disk.
I mean
You *REALLY* don't want to be screwing with the first block of a disk.
As you probably already suspect, you zero'd the MBR and the partition table. Whilst you had the system active that issued the dd you had an in-storage copy.
After boot, you are history.
and perhaps back up your partition table after everything's fixed, with fdisk -l
gpart helps you guess the partition table. it's usually pretty good at it, but if you want to be 100% certain, you want to keep an exact copy (fdisk -l) of your partition table. if you wipe your partition table by accident, you can just use fdisk and recreate the table again
Originally posted by jacks4u Sounds to me like you need to run gpart.
Thought about mentioning that, but I wan't sure if it only used the in-storage copy.
Never used it. Guess I'm going to have to set up a "trashable" system to test all these things
hahahahaha, well, after having losing all of my newest Linux downloads as well as alot of stuff which I downloaded and being stuck with 56k, it's not too much of a problem. Slackware is actually going much faster than it is now.
There's almost always a way to fix a gone-bad-system, without re-fomatting, re-installing. find that way, and save your data, configuration, and settings.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.