On Wed, Jul 17, 2002 at 10:33:14AM -0500, P V Juliet wrote: > > Yes, i want to make floppy based distribution with firewall > features and if possible vpn features also. one more doubt i > am having. how to create RAM disk. Is there any limit for the > size (4096). > I tried with this command > dd if=/dev/zero of=/dev/ram0 bs=1K count=4096. > can i give more 4096? > If i can more 4096 what will be the limitation. >
There are quite a few ready-made floppy based firewall distros linked on freshmeat already (e.g. floppyfw). You may like to search http://freshmeat.net/ in case something meets your req- uirements. Are you talking of making your initrd image on ramdisk ? This is not a very convenient system since it is difficult to mani- pulate. It is much easier to do it over a loop device. I have managed 8 mb loop device images compressed to 1.44 mb floppy. Anything above that needs a larger floppy capacity. The steps for using a loop device are: o dd if=/dev/zero of=$IMGNAME bs=1k count=$IMGSIZE o losetup /dev/loop0 $IMGNAME o mkfs.ext2 -F -i 2000 $IMGNAME o mount -o loop $IMGNAME $MOUNTPOINT Then you can cp file to $MOUNTPOINT, delete it, modify it or whatever. You can unmount it and mount it as many times as needed without going through the creation process. Once it is ready for burning to a floppy: o umount $MOUNTPOINT o gzip -9 $IMGNAME (check that the gzipped size is less than 1.44 mb) o Then cp this file to your boot-root floppy OR dd if=$IMGNAME.gz of=/dev/fd0 (for a seperate root floppy). If you want to add vpn, it may not be possible with a combined root-boot floppy, and you need to seperate the two. Make Disk #1 a LILO os syslinux based boot floppy only, and keep your initrd image (base floppy) as disk #2. HTH Bish -- : ####[ Linux One Stanza Tip (LOST) ]########################### Sub : How to make a password [#2] LOST #287 Wondering how to make a safe password ? Use mkpasswd. This is normally standard in all distros. This will produce an unique 8 letter password with minimum 2 digits and 3 letters in upper case: $mkpasswd -l 8 -d 2 -C 3 ####<[EMAIL PROTECTED]>################################# : ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
