Hi, I'm having problems creating a boot/root disk, in particular I the
filesystem I am creating
doesn't seem to have enough "something". By that I mean when I copy
1024 files to the image it
comes back and says "no space left on device". Below is what I have
done. I am taking this from the Redhat 6.0 Bootdisk howto file.
first I create an empty file of xxx block size using dd.
dd if=/dev/zero of=/tmp/fsfile bs=1k count=4000
I have tried increasing the count with little impact on the result.
second I create a filesystem on this file.
mke2fs -F -m 0 -i 2000 /tmp/fsfile
this command returns the following:
mke2fs 1.14, 9-Jan-1999 for EXT2 FS 0.5b, 95/08/09
Linux ext2 filesystem format
Filesystem label=
2104 inodes, 4096 blocks
0 blocks (0.00%) reserved for the super user
First data block=1
Block size=1024 (log=0)
Fragment size=1024 (log=0)
1 block group
8192 blocks per group, 8192 fragments per group
2104 inodes per group
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
finally I count this new filesystem and try to write to it
mount -o loop -t ext2 /tmp/fsfile /tmp/junk
at this point df -k shows:
Filesystem 1k-blocks Used Available Use% Mounted on
/tmp/fsfile 3828 13 3815 0% /tmp/junk
at this point I try to copy the device nodes to /tmp/junk/dev from /dev
using
cp -dpR per the howto.
cp -dpR /dev /tmp/junk
part way through I get a slew of "cp: cannot create special file 'name':
No space left on device"
df -k produces
Filesystem 1k-blocks Used Available Use% Mounted on
/tmp/fsfile 3828 48 3780 1% /tmp/junk
I don't seem to have enough "something" to copy all the files, whether
this is inodes or some
other item is what I am trying to discover. Any help offered would be
greatly appreciated.
Thanks.
--Mike Boyer