Question

Locked

Linux - lilo and flash media, yet again

By CharlieSpencer ·
Tags: Off Topic
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

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

http://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 <blank.part> /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 conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
Thread display: Collapse - | Expand +

All Answers

Collapse -

2 options and the invalidating message

by Jaqui In reply to Linux - lilo and flash me ...

The invalidating message is an informational message, so it isn't a problem. What it means is that it is removing pointers to the specified resource.

Now, the other problem.
1) you could use grub instead of lilo. actually a bit easier to install and configure than lilo

2) um, you chroot the flash disk, does pwd give you only the flash disk information? if not, then you didn't actually go into the chroot environment.
you need to be root after chroot to install lilo, mknod ... these activities require root privileges.
there has to be a /tmp in the flash disk, that is the system level temp files folder.
and finally, to install lilo you have to have it mounted read-write.

Collapse -

Response

by CharlieSpencer In reply to 2 options and the invalid ...

"there has to be a /tmp in the flash disk, that is the system level temp files folder."

Nope, there wasn't. I'm not installing Linux from scratch, but instead importing files previously created by someone else long ago and far away. (At least, that's how I interpret the dd and tar commands.) Apparently that person deleted the /tmp folder before creating the .tar files.

I did find a file, not folder, named tmp. The properties for it identified it as a 'broken link' (or something similar) to a file that wasn't on the flash media. I deleted the tmp file, created a /tmp folder, and lilo ran without incident.

I've turned the flash media over to the requesting department for testing. It will be a couple of weeks before they complete a production run of the product so they don't have anything to stick the card in and test. In hindsight I could get it back and see if I can boot my desktop from the flash media. I'm reluctant because I don't know what the application does or how to prevent it from starting automatically (assuming it does so).

Thanks for the assistance, but I -think- I've finally finished this.

Collapse -

A sweet little link....

by ---TK--- In reply to Linux - lilo and flash me ...

http://www.pendrivelinux.com/2007/01/01/usb-knoppix-510/

They have listed a way to install it within Windows or in Linux, I thought it was neat... I just thought I would throw it out there.

Collapse -

Another one

by The Scummy One In reply to A sweet little link....

When I was downloading Mandriva09 the other day, they had an install for a flash drive -- just plug the drive in and run the install to set it up

Back to After Hours Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums