Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
I think I really screwed the pooch this time. I wanted to get rid of Windows on my Slackware box, so I erased the partition Now, I can't do anything with the 30GB that was there. Maybe I should just show what is happening:
[root@slackdell /home/scuzzy]$ fdisk -l
Disk /dev/hda: 40.0 GB, 40000000000 bytes
16 heads, 63 sectors/track, 77504 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 58251 29358472+ 83 Linux
/dev/hda2 58252 76979 9438187+ 83 Linux
/dev/hda3 76979 77505 265072+ 82 Linux swap
[root@slackdell /home/scuzzy]$ lilo
Fatal: First sector of /dev/hda1 doesn't have a valid boot signature
[root@slackdell /home/scuzzy]$ fsck /dev/hda1
fsck 1.35 (28-Feb-2004)
e2fsck 1.35 (28-Feb-2004)
Couldn't find ext2 superblock, trying backup blocks...
/sbin/e2fsck: Bad magic number in super-block while trying to open /dev/hda1
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
I've tried deleting/recreating the drive using fdisk. cfdisk simply craches with this message when I try to run it:
FATAL ERROR: Bad primary partition 2: Partition ends in the final partial cylinder
Press any key to exit cfdisk
and when I try to write a partition to it using parted or mkfs, the programs just crash with no error messages...
What's odd, is through all this partitioning, lilo still works (I wanted to reinstall it after removing the Windows option) so I know the MBR (somehow) survived...
Also, just in case it should help, here's this:
I think the problem is the overlap between hda2 and hda3. They should not used the same cylinder as start and stop. How did that happen? If you deleted hda1, that means it has like this before? Maybe you could resize one of these partitions.