LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-17-2004, 03:02 PM   #1
DvChWi
LQ Newbie
 
Registered: Mar 2004
Distribution: Slackware 9.1
Posts: 24

Rep: Reputation: 15
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?
 
Old 06-17-2004, 04:52 PM   #2
slackwarefan
Member
 
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Rep: Reputation: 30
Have you tried changing the type back and mabye using parted or some other tool to re-create /dev/hda2?
 
Old 06-17-2004, 05:40 PM   #3
major.tom
Member
 
Registered: Jun 2003
Location: Canada
Distribution: Slackware (current); Gentoo (newbie)
Posts: 142

Rep: Reputation: 15
Have you tried using mkswap?

mkswap /dev/hda2
swapon -a

Garry
 
Old 06-17-2004, 11:36 PM   #4
DvChWi
LQ Newbie
 
Registered: Mar 2004
Distribution: Slackware 9.1
Posts: 24

Original Poster
Rep: Reputation: 15
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.
 
Old 06-17-2004, 11:48 PM   #5
DvChWi
LQ Newbie
 
Registered: Mar 2004
Distribution: Slackware 9.1
Posts: 24

Original Poster
Rep: Reputation: 15
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.
 
Old 06-18-2004, 01:57 AM   #6
major.tom
Member
 
Registered: Jun 2003
Location: Canada
Distribution: Slackware (current); Gentoo (newbie)
Posts: 142

Rep: Reputation: 15
Please post the results of "fdisk -l" the contents of /etc/fstab.

Last edited by major.tom; 06-18-2004 at 01:58 AM.
 
Old 06-18-2004, 02:11 AM   #7
acidraven
LQ Newbie
 
Registered: Dec 2003
Location: Salem, Oregon
Distribution: Slackware 7 upgraded to 8.1
Posts: 15

Rep: Reputation: 0
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.
 
Old 06-18-2004, 04:07 PM   #8
skog
Member
 
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301

Rep: Reputation: 30
can you boot the slack install cd and then run fdisk ... skipping the hdd's mbr?
 
Old 06-18-2004, 04:57 PM   #9
acidraven
LQ Newbie
 
Registered: Dec 2003
Location: Salem, Oregon
Distribution: Slackware 7 upgraded to 8.1
Posts: 15

Rep: Reputation: 0
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 ..
 
Old 06-18-2004, 11:49 PM   #10
DvChWi
LQ Newbie
 
Registered: Mar 2004
Distribution: Slackware 9.1
Posts: 24

Original Poster
Rep: Reputation: 15
Here goes:

/etc/fstab:
Quote:
/dev/hda2 swap swap defaults 0 0
/dev/hda1 / reiserfs defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
fdisk -l under 2.6.6:
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 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?

Last edited by DvChWi; 06-19-2004 at 12:16 AM.
 
Old 06-19-2004, 12:49 AM   #11
skog
Member
 
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301

Rep: Reputation: 30
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.
 
Old 06-19-2004, 12:51 AM   #12
major.tom
Member
 
Registered: Jun 2003
Location: Canada
Distribution: Slackware (current); Gentoo (newbie)
Posts: 142

Rep: Reputation: 15
If you can't get it to uninstall, this link might help.

http://www.linux.com/howtos/Large-Disk-HOWTO-8.shtml

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.

Last edited by major.tom; 06-19-2004 at 12:57 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Messed up partition table. randrake Linux - General 3 12-15-2005 01:50 PM
Messed up partition table, DOH javamdk Slackware 2 03-17-2005 07:14 PM
Really messed up my partition table scuzzman Linux - Hardware 7 02-04-2005 12:17 PM
Restoring working but messed up partition table mjs2020 Linux - Hardware 1 12-06-2004 06:19 PM
HELP machine won't boot (partition table messed up???) nfisk Linux - General 7 02-02-2003 05:12 AM


All times are GMT -5. The time now is 07:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration