Installing NetBSD on FFS2 from GNU/Linux

tested for a XEN/PV guest, not yet on bare-metal

Requirements

Obtain NetBSD sets and kernel

Script

This guide has been converted into a script:

https://pub.nethence.com/bin/xen/createslime.bash.txt

TODO

turn the makefs image into an (ext4) sparse file

Troubles

when trying larger volume 3g, 4g, 5g i.e

/var/tmp/usr/tools/bin/nbmakefs -t ffs -o v=2,o=time -s 5g slime.ffs2 tree/

gives

Calculated size of `slime.ffs2': 5368709120 bytes, 21246 inodes
Extent size set to 8192
slime.ffs2: 5120.0MB (10485760 sectors) block size 8192, fragment size 1024
    using 93 cylinder groups of 55.19MB, 7064 blks, 256 inodes.
super-block backups (for fsck -b #) at:
       32,   113056,   226080,   339104,   452128,   565152,   678176,
   791200,   904224,  1017248,  1130272,  1243296,  1356320,  1469344,
  1582368,  1695392,  1808416,  1921440,  2034464,  2147488,  2260512,
  2373536,  2486560,  2599584,  2712608,  2825632,  2938656,  3051680,
  3164704,  3277728,  3390752,  3503776,  3616800,  3729824,  3842848,
  3955872,  4068896,  4181920,nbmakefs: ffs_wtfs: seek error for sector 4294944: Invalid argument

Resources

https://netbsd.gw.com/cgi-bin/man-cgi?makefs


HOME | GUIDES | BENCHMARKS | html