Linux - lilo and flash media, yet again - TechRepublic
Question
November 18, 2008 at 08:49 AM
charliespencer

Linux – lilo and flash media, yet again

by charliespencer . Updated 17 years, 7 months ago

For those of you who haven’t tripped over my previous questions, I’m trying to automate a manual process performed another of the company’s plant. The end result should be a bootable flash card with an application. Really bored? See

https://www.techrepublic.com.com/5208-6230-0.html?forumID=101&threadID=271142

https://www.techrepublic.com.com/5208-6230-0.html?forumID=101&threadID=277396

Here’s what I’ve got now:

umount /dev/sda1
dd if=nia-720.img of=/dev/sda
sfdisk -f /dev/sda /dev/null
umount /dev/sda1
sfdisk -f /dev/sda <128mb1.part> /dev/null
umount /dev/sda1
mkfs.ext3 /dev/sda1
mount -t ext3 /dev/sda1 /mnt/sda1
tar ?zxf instimage.tgz ?C /mnt/sda1
rm ?rf /mnt/sda1/var
tar ?zxf uss.tgz ?C /mnt/sda1
chroot /mnt/sda1
lilo ?C /etc/lilo.conf

Everything goes fine until the lilo command:

LILO version 21.4-4, Copyright
‘lba32’ extension Copyright

Reading boot sector from /dev/hda
Merging with /boot/boot.b
Invalidating cache entry for /dev/sda1 (0x0801)
Fatal: mknod /tmp/dev.0: No such file or directory.

The lilo.conf looks like:

linear
prompt
boot=/dev/hda
timeout=50
default=nia
disk=/dev/hda bios=0x80
map=/boot/map
install=/boot/boot.b
verbose=3
image=/boot/vmlinuz label=nia read-only root=/dev/hda1

1) I’ve seen the ‘Invalidating…’ message in many lilo posts on the web. Is it a normal informational message or does it indicate a problem? To me it means something is being rendered invalid, but I probably have no business applying English skills to Linux.

2) There is no /tmp/dev.0, or even /tmp on the flash media. My slight understanding of mknod is it tries to create the specified resource, and I can only assume /tmp/dev.0 is a default for it. I don’t understand the error or know how to fix it.

This discussion is locked

All Comments