FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-07-2012, 07:38 PM
Dom
 
Default custom kernel without initrd and with udev

On 07/07/12 16:46, Mike McClain wrote:

Hi Dom,


Thanks for your suggestions and letting me know this is still possible.

On Sat, Jul 07, 2012 at 04:56:10AM +0100, Dom wrote:

On 07/07/12 00:08, Mike McClain wrote:

<snip>

Is anyone running a custom kernel without an initrd with udev?


Yes, I am. Although I believe there are some circumstances where
this may not be possible. eg. where something else needs to be
started in order to mount the root filesystem first.


How do you get around the fact that udev is not running yet?
May I see what your entry in grub.cfg looks like for this kernel?


By using the device name, rather than UUID or Label, it seems.

grub.cfg (for grub2) is:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root bad6c13d-19f0-47ad-bc6e-542a911d4178
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=800x480x24
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root
bad6c13d-19f0-47ad-bc6e-542a911d4178

set locale_dir=($root)/boot/grub/locale
set lang=en_GB
insmod gettext
fi
terminal_output gfxterm
set timeout=5
play 480 440 1
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 3.2.19.libby2-586' --class
debian --class gnu-linux --class gnu --class os {

load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root
bad6c13d-19f0-47ad-bc6e-542a911d4178

echo 'Loading Linux 3.2.19.libby2-586 ...'
linux /boot/vmlinuz-3.2.19.libby2-586 root=/dev/hda1 ro quiet noapm
}

(irrelevant bits trimmed)
--
Dom


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4FF8904B.7060104@rpdom.net">http://lists.debian.org/4FF8904B.7060104@rpdom.net
 
Old 07-07-2012, 11:18 PM
Pascal Hambourg
 
Default custom kernel without initrd and with udev

Mike McClain a écrit :
>
> VFS: Cannot open root device "sdb5" or unknown-block(0,0)
> Please append correct "root=" boot option; here are available partitions:
> Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
>
> Note that there are no 'available partitions' listed though before I reach this
> point

If the kernel cannot find any partitions, it could be because any of the
following configuration options are missing :
- disk controller handling (depends on your hardware)
- disk handling (BLK_DEV_SD as sdb is an SCSI-style disk)
- partition table handling (usually MSDOS_PARTITION on PC)

> So you are running two systems one with udev and one without?

Yes. The only useful udev feature I needed on that system was firmware
loading, but I implemented it with a simple shell script as /sbin/hotplug.

> If so, on the one without did you populate /dev by hand?

No, the static /dev was populated by default.

> On the one with udev what does your grub.cfg entry look like?

Nothing worth mentionning, I guess. Just root=/dev/sda1 on the kernel
command line.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4FF8C3C4.6040406@plouf.fr.eu.org">http://lists.debian.org/4FF8C3C4.6040406@plouf.fr.eu.org
 

Thread Tools




All times are GMT. The time now is 11:53 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org