LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-22-2006, 09:20 PM   #1
guoruifeng
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
after built my kernel why my hda changed to hde


new to redhatlinux:
my configuration:
root / /dev/hda7.
swap swap /dev/hda8.

i built another kernel 2.4.20 for my redhat AS3.

make xconfig
make bzImage
root device is (3,7)
...
...
make modules
make modules_install
make install

when i reboot my pc with new kernel. a strange thing happened,my hard disk should be "hda" now changed to "hde".so i cannot activating swap-devices in /etc/fstab . it showed "cannot found /dev/hda8".
after logged in,it said "Your last session only lasted for less than 10 seconds."
chaged to failsafe mode.i found my root device was changed to /dev/hde7.
so what happened to my new kernel.how to change it.which should i pay more attention when compile the kernel.

Last edited by guoruifeng; 12-23-2006 at 07:56 AM.
 
Old 12-23-2006, 10:13 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Quote:
Originally Posted by guoruifeng
new to redhatlinux:
my configuration:
root / /dev/hda7.
swap swap /dev/hda8.

i built another kernel 2.4.20 for my redhat AS3.

make xconfig
make bzImage
root device is (3,7)
...
...
make modules
make modules_install
make install
This is not correct for building kernels in the Red Hat family, the steps in order are;

make mrproper (or make clean)
make menuconfig (but make xconfig is OK)
make
make modules_install
make install

Quote:
when i reboot my pc with new kernel. a strange thing happened,my hard disk should be "hda" now changed to "hde".so i cannot activating swap-devices in /etc/fstab .
Did you notice the line root device is (3,7)?? This suggests to me the you may have set the Boot off-board chipsets first support option and need to reverse the boot order on the kernel line when booting (by adding ide=reverse to the line).

A snippet from a kernel .cong file;
#
# IDE chipset support/bugfixes
#
CONFIG_IDE_GENERIC=y
# CONFIG_BLK_DEV_CMD640 is not set
# CONFIG_BLK_DEV_IDEPNP is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
# CONFIG_BLK_DEV_OFFBOARD is not set

The last line above is the boot off-board chipsets first support option, if this is set the add this may explain why the change from hda to hde.
 
Old 12-23-2006, 10:05 PM   #3
guoruifeng
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Original Poster
Rep: Reputation: 0
i donot think that the key.
first i didnot set the Boot off-board chipsets option .
second i type "ls -l /dev/hda7" in my old linux ,it shows :
brw-rw---- 1 root disk 3, 7 Sep 5 07:44 /dev/hda7
$ Notice the 3, 7 in the middle of that -- that's where the kernel's (3, 7) message comes from.
so in such condition,what shoule i do when i compile my kernel.

Last edited by guoruifeng; 12-24-2006 at 01:04 AM.
 
  


Reply

Tags
kernel



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
The kernel I compiled reads my sata drives as hda even though the rpm kernel read sda abefroman Linux - Software 5 07-10-2006 04:42 PM
Why kernel is built this way?. mac1234mac Linux - Kernel 8 05-24-2006 08:28 PM
moving bootable drive from /dev/hde to /dev/hda chromedog Red Hat 1 02-08-2006 04:31 AM
hde/hda problems taren Linux - Hardware 2 02-01-2005 08:38 AM
Just built my first kernel, but... plisken Linux - General 7 10-01-2003 09:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration