Swap Won't Work in New 2.6.6 Kernel, Partition Table Messed Up
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.
Swap Won't Work in New 2.6.6 Kernel, Partition Table Messed Up
Hello,
I am having a problem with building a 2.6.6 kernel. I am able to get the kernel to boot, but in the startup up messages, I noticed that swapon failed because it says it can't find /dev/hda2 (which is my swap parition). Once I am fully booted, I try manual swapon, and get the same error message, that there is no /dev/hda2. I then type fdisk /dev/hda, and then print the partition table. Alas, there is only hda1, no hda2. Also, hda1 is listed as being type 55 "EZ Disk" rather than type 83 linux native. I tried recompiling the kernel, looking over all the config options to make sure I got everything. Still no luck. I am using ReiserFS, and everything works the way it should using the stock Slack 2.4.22 kernel, the partition table looks right in fdisk and everything. Anyone seen this before?
I've been afraid to try the methods described above because I believe that something else is at fault. Why should it work perfectly in 2.4.22 but not in 2.6.6? I'm afraid that if I try to change it in 2.6.6, it will just mess things up further.
The plot thickens: in messing around with fdisk some more, I noticed that my "EZ Drive" partition takes up all of my space, which include what are really my linux and swap partitions. It's somehow seeing both of these as one single partition of a totally different type.
Hmmm Isn't EZ disk one of those Boot Loader programs that are used for drives that are to Big for your Bios. I don't remeber much a about how those prgrams work but I remember them causeing lots of problems. I think it makes a diffrance between if you are loading from a boot disk or the MBR of the HD .. Try searching for info on EZ disk, would be my first sujestion.
I think that's the problem. Once he gets off the cd his orgional Partion table is still there .. I would back up your data. Did you ever have a problem with installing lilo in the MBR. I just remeber haveing the problem years ago and don't remember how I got around it .. I think I had to use a boot disk and Trash the MBR then reboot and fdsik .. Don't know as I said it's been a while ..
Disk /dev/hda: 1630 MB, 1630295040 bytes
64 heads, 63 sectors/track, 789 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 789 1590592+ 55 EZ-Drive
fdisk -l under anything else (2.4.22, boot up fdisk)
Quote:
Disk /dev/hda: 1630 MB, 1630295040 bytes
64 heads, 63 sectors/track, 789 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 729 1469632+ 83 Linux
/dev/hda2 730 789 120960 82 Linux swap
It's pretty clear that this is occuring only in my 2.6.6 kernel. I have had no problems concerning either my MBR or LILO before.
*EDIT*
Progress! Searching around the net tells me that EZ Drive is a part of the EZ Bios System, which was apparently installed on this hdd back when my family upgraded to an 8 gig hard drive! Anywyas, that drive is a part of another system at the moment, leaving me here with the 1.6er. Searching around for ways to uninstall EZ Bios without wiping my MBR, I found that I could use the little MaxBlast disk that game with the other drive to remove EZ BIOS. Booting to MaxBlast, I was dissapointed to find that it just hangs at the splash screen. I suppose it trying to find a new drive, but can't. Anyways, some questions:
1. This EZ BIOS thing wasn't an issue pack in RedHat 6, or in Slackware 9.1 with the stock kernel. Why is it cropping up all of a sudden? Anyways to fix this? Maybe there's an EZ drive option in the kernel config I overlooked...
2. How can I get this thing off my MBR painlessly if I can't do anything else?
if EZ drive was installed on the other HDD why would it show up on this drive? is it a bios update or something? maybe check in your bios for a way to turn it off. if you go into bios setup what type of drive is the hdd listed as lba, large, or what? Is there something in integrated peripherals that has to do with EZ drive?
The mbr is actually a part of the harddrive (hdd) so if it was loaded on the other drive that should have nothing to do with this drive, and when you loaded lilo that would have whipped the mbr out anyways.
Another thing you might want to do before messing with your main MBR is to make sure you have/make a boot disk so you can get back into linux if you mess it up.
If I come accross anything else that might help, I'll follow-up.
Garry
ps. I forgot to mention. Make sure your computer can handle drives > 512 megs before removing EZ-Drive or you'll have to reinstall it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.