Skip to contentSkip to conversation

What init in initrd shold do when booting?

DISCUSSION Masahide Tomita 2 participants 2 messages Apr 6, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to boot Hard Hat Linux on MBX860, and it seems like just kernel worked successfully. But I can't mount any other partition, like hda or sda etc., because (I think) there is no /etc/mtab.
I'm using zImage.initrd made by zvmlinux (kernel) from HHL and sample ramdisk.image.gz in HHL's CDK cdrom combined. And the ramdisk.image.gz contains only few features because of the limitation of ramdisk size (4MB). I can, of course, increase the size of ramdisk, but I would like to mount bigger space for future applications.

So, the real quation is how can I mount regular storage (I mean block devices) from init? What should the init program should do to maount other devices and free the unused memory?

Thanks in advance.

Masahide Tomita

--
Masahide Tomita
Engineer
Information Technology Lab.
NAKAYO Telecommunications, INC.
PHONE:+81-3-3414-3321
mailto:[email protected]

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw

Hi,

PSB,

Quoted 3 lines · Masahide Tomita

Hi,

So, the real quation is how can I mount regular storage (I mean block devices) from init?

As you would mount normally, add the corresponding entries to /etc/fstab and your rc* scripts will mount them

Quoted 1 line

What should the init program should do to maount other devices and free the unused memory?

What is the unsued memory you are refering to? The one used by initrd? In which case doing a umount /initrd should do, though using blockdev command to flushbuffers on /dev/ram0 is advised.

Amit

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/