Hello I want make a ramdisk filesystem on slitaz,
every thing is ok, but at last step, I want to gzip the ramdisk, I found the file in the ramdisk is empty after gzip.
the following is my step:
dd if=/dev/zero of=rootfs.img bz=1024 count=131072
mkfs.ext3 -F -m 0 -b 1024 rootfs.img 131072
mkdir img
mount -oloop rootfs.img img
//here copy my rootfs files to img
//and after copy, i check the img size is about 100M
sync
umount img
//above everything is ok
gzip rootfs.img // this step, will zip my rootfs.img to very small size, about 300K
so I unzip the rootfs.img.gz, and mount again, found there's nothing, the rootfs files I copied here is disappear.
and the same step I can make the ramdisk successfully on ubuntu or centos.
thanks