Ramdisk Size - correction
Tony Travis
ajt at rri.sari.ac.uk
Mon Sep 22 14:12:54 EDT 2003
Tony Travis wrote:
> [...]
> For example, you could create a 10Mb initrd image of a RAM disk using:
>
> dd if=/dev/zero of=/var/tmp/initrd.img bs=1024 count=10240
> mkfs -t ext3 /tftpboot/initrd.img
> mkdir /mnt/ramdisk
> mount -o loop /tftpboot/initrd.img /mnt/ramdisk
> cp -a /stuff /mnt/ramdisk # stuff you want on RAM disk
> umount /var/tmp/initrd.img
> zcat /tftpboot/initrd.img > /tftpboot/zinitrd.img
Hello, Eric.
Sorry, I was careless about pathnames - Here's a correction:
dd if=/dev/zero of=/var/tmp/initrd.img bs=1024 count=10240
mkfs -t ext3 /var/tmp/initrd.img
mkdir /mnt/ramdisk
mount -o loop /var/tmp/initrd.img /mnt/ramdisk
cp -a /stuff /mnt/ramdisk # stuff you want on RAM disk
umount /var/tmp/initrd.img
zcat /var/tmp/initrd.img > /tftpboot/zinitrd.img
You don't need the ramdisk image in /var/tmp once you've saved the
compressed image: In my case, I'm PXE booting diskless openMosix from
/tftpboot which is where the kernel and ramdisk image are stored.
Tony.
--
Dr. A.J.Travis, | mailto:ajt at rri.sari.ac.uk
Rowett Research Institute, | http://www.rri.sari.ac.uk/~ajt
Greenburn Road, Bucksburn, | phone:+44 (0)1224 712751
Aberdeen AB21 9SB, Scotland, UK. | fax:+44 (0)1224 716687
_______________________________________________
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf
More information about the Beowulf
mailing list