The following scripts are used to bootstrap CentOS 5 on to a NAS200.
While this gives the NAS200 the full functionality of a full-blown
Linux distribution, it can be at times painfully slow.
For this to work, your USB key should be formatted with a Linux File
system (so no VFAT), like ext2/3 or xfs.
For ext3, use these commands:
mke2fs -j -L "rootfs" /dev/USB-device
tune2fs -c 0 -i 0 /dev/USB-device
It is important to use the rootfs label as the default root file
system will use that to locate the root partition.
Create the root file system use:
mount /dev/USB-device /mnt
cd /mnt
tar jxvf <path-to-root-fs-tarball>.bz2
cd
umount /mnt
That's all there is to it.
nascc-boot.ssh root@nas-device. The default password isadmin./etc/fstab and thenswapon -a.yum update.As you can imagine, this is a very slow system. So don't expect any
performance gains. However, this is a fully functional CentOS
system.
The bare image is 343M, so the only built-in functionality is
to be able to log-in using ssh and to run yum. Of course, you can now
do yum install pkg to install whatever hits your fancy.
If you are using my nascc boot firmware you will have the original
firmware file system under the /pivot directory. This means, you
can run its utilities by doing for example:
chroot /pivot <cmd>
So you can do things like:
chroot /pivot nasctl beep
To sound a beep. What is more useful is that you can find the booting
kernel loadable modules under /pivot/lib/modules.
The NAS-CC firmware comes with a Coraid Ethernet Console compatible
network console.
The Ethernet console can
be used during the boot process, so it is possible to connect to the
console and do any FSCK type operations in case the CentOS boot
sequence runs into trouble.
In order to use the Ethernet Console you need to install the client:
Further information and source releases can be found
here