On Fri, 1 Oct 1999, Tony Hernandez wrote:
>Does anyone know how to make a 1.44 MB image file that contains no files
>just empty ramdisk? I want to load an "empty " ramdisk that contains n ext2
>filesystem for rescue disk purposes. any ideas on how to use dd to make this
>image ?
dd if=/dev/zero of=image bs=1024 count=4096
mke2fs -q -F -Lblank-ramdisk -m0 -b 1024 image 4096
gzip -c -9 image >/dev/fd0
If you would like to put files into the ext2 file system, then insert commands
like the following between mke2fs and gzip:
mkdir /mnt
mount -t ext2 -o loop image /mnt
# Create directories on, and copy files to, /mnt (which is the root).
umount /mnt
rmdir /mnt
--
Dave Mielke | 856 Grenon Avenue | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me
EMail: [EMAIL PROTECTED] | Canada K2B 6G3 | if you're concerned about Hell.