Results 1 to 1 of 1
#!/bin/sh
echo INITRD: Trying to mount /dev/mmcblk0p1 as msdos
mount -n -t msdos /dev/mmcblk0p1 /mnt
echo INITRD: Mounted OK
losetup /dev/loop0 /mnt/linux/linuxdsk.img
That is the text of my /sbin/init. the ...
- 01-26-2010 #1Just Joined!
- Join Date
- Jan 2010
- Posts
- 1
Q. Mounting a root file system with the /sbin/init file of a ramdisk?
#!/bin/sh
echo INITRD: Trying to mount /dev/mmcblk0p1 as msdos
mount -n -t msdos /dev/mmcblk0p1 /mnt
echo INITRD: Mounted OK
losetup /dev/loop0 /mnt/linux/linuxdsk.img
That is the text of my /sbin/init. the screen displays "INITRD: Mounted OK" and then "kernel panic-not syncing:.." and a lot of numeric trace information.
Any ideas? I want the loop to be mounted as the new root file system. Do I need to call "pivot_root"?


Reply With Quote
