PDA

View Full Version : How to tell which dev is kernel?


santakrooz
03-24-2003, 02:30 AM
How do you tell which dev (ie hda3) is your kernel on?

-sk

mrblack51
03-24-2003, 02:48 AM
the kernel is either hda3 or hda6, depending on whether your root partition is hda4 or hda7, respectively

santakrooz
03-24-2003, 02:52 AM
Originally posted by mrblack51
the kernel is either hda3 or hda6, depending on whether your root partition is hda4 or hda7, respectively

how do you tell the difference? what can i type from the bash prompt to determine it? thx -sk

BubbleLamp
03-24-2003, 03:06 AM
Originally posted by santakrooz
how do you tell the difference? what can i type from the bash prompt to determine it? thx -sk

Type mount at the bash prompt. The first line will tell you what partition is mounted as root.

[/var/tmp]$ mount
/dev/hda4 on / type ext2 (ro)
/dev/hda9 on /var type ext2 (rw)
/proc on /proc type proc (rw)
[/var/tmp]$

santakrooz
03-24-2003, 03:11 AM
Originally posted by BubbleLamp
Type mount at the bash prompt. The first line will tell you what partition is mounted as root.
[/code]

Excellent. Thanks. So based on the following

bash-2.02# mount
/dev/hda4 on / type ext2 (ro)
/dev/hda9 on /var type ext2 (rw)
/proc on /proc type proc (rw)
bash-2.02#

I assume my kernel dev is hda3?

thanks again.

BubbleLamp
03-24-2003, 12:28 PM
Originally posted by santakrooz
Excellent. Thanks. So based on the following

bash-2.02# mount
/dev/hda4 on / type ext2 (ro)
/dev/hda9 on /var type ext2 (rw)
/proc on /proc type proc (rw)
bash-2.02#

I assume my kernel dev is hda3?

thanks again.

You got it.

wejones
03-24-2003, 07:33 PM
I know this is not as easy as typing mount, but might be easier to remember.
I think the same information is stored in the
/etc/mtab file. If you type

cat /etc/mtab it gives the same info.

I didn't know about the kernel being 1 less than the root. Thanks.