RE: [SLUG] Changing media

From: Eben King (eben1@tampabay.rr.com)
Date: Fri Mar 05 2004 - 22:10:39 EST


On Fri, 5 Mar 2004 wchast@utilpart.com wrote:

> Eben King wrote:
> > On Fri, 5 Mar 2004, Joe Brandt wrote:
> >
> >> On Fri, 2004-03-05 at 21:06, wchast@utilpart.com wrote:
> >>> I have a floppy disk based system that I would like to put on
> >>> either a small hard drive or CF card.
> >>>
> >>> It is a combination firewall and router. Is there a way to moving
> >>> this bootable floppy image to either a HD or CF card so I can
> >>> have the larger space and yet conserve all of the stuff on the
> >>> floppy in the same layout.
> >>>
> >>> My second reason is to get something that will boot faster than the
> >>> floppy.
> >>>
> >>> If anyone is interested I can send you the image that I have.
> >>>
> >>> It uses busybox for the commands and I think the kernel is 2.0
> >>> or 2.2.
> >>
> >> My swag (silly wild a--ed guess) would be dd if=/dev/fd0 of=/boot
> >
> > That would make a 1.44MB filesystem on the CF card/HD. Also, floppies
> > don't (usually?) have partitions; CF cards/HDs usually do. My best
> > guess is
> >
> > { cd /mnt/floppy && tar cf - . ; } | { cd /mnt/hda1 && tar xvpsf - ; }
> > lilo -r /mnt/hda1 -b /dev/hda
> >
> > Adjust as needed. You'll probably need an IDE CF reader, unless your
> > motherboard can boot from USB. Also, arrange to put the router's /
> > on a RAMdisk and mount the CF ro. http://ide-cf.info-for.us/mtbf.html
>
> Do you want me to send you the image file so you can take a look
> at it?

This should send a list of the floppy's contents to the list under this
subject:

find / -xdev | xargs ls -ldh | mail -s 'RE: [SLUG] Changing media' slug@nks.net

I thought about putting a '| gzip | uuecode' or '| gzip | mpack' in there,
but I didn't think I could get it right without seeing the errors..

I'm not sure how to put / on a RAMdisk. I've never done it, but I think
it has something to do with an initrd, See
http://www.linuxfaq.de/f/Files/initrd-boot.txt for clues.

You can skip dealing with that if you just mount a rw RAMdisk on /var/log,
and have / ro. That is, if Linux will deal with a read-only root. This
transition is much easier if it will. Or, if you get a HD instead of a
CF, nothing has to be ro. OTOH, a HD is noisier.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar

Unix is user-friendly; it's just picky about who it makes friends with.

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:04:23 EDT