Openfiler on USB stick

I followed h@nnes instructions. The only thing I had to do was to add more sleep to load modules.

Here is my init file:

[root@nasse ~]# cat /tmp/a/init
#!/bin/nashmount -t proc /proc /proc
echo Mounted /proc filesystem
echo Mounting sysfs
mount -t sysfs /sys /sys
echo Creating /dev
mount -o mode=0755 -t tmpfs /dev /dev
mknod /dev/console c 5 1
mknod /dev/null c 1 3
mknod /dev/zero c 1 5
mkdir /dev/pts
mkdir /dev/shm
echo Starting udev
echo -n “/sbin/hotplug” > /proc/sys/kernel/hotplug
echo “Loading jbd.ko module”
insmod /lib/jbd.ko
echo “Loading ext3.ko module”
insmod /lib/ext3.ko
insmod /lib/scsi_mod.ko
insmod /lib/sr_mod.ko
insmod /lib/sd_mod.ko
insmod /lib/ehci-hcd.ko
insmod /lib/ohci-hcd.ko
insmod /lib/uhci-hcd.ko
echo Sleeping 10secs…
sleep 10
insmod /lib/usb-storage.ko
echo Sleeping 12secs…
sleep 12
echo Creating root device
mkrootdev /dev/root
#/sbin/sfdisk -R /dev/sda
echo Mounting root filesystem
mount -o defaults –ro -t ext3 /dev/root /sysroot
echo Switching to new root
switchroot –movedev /sysroot
[root@nasse ~]#



2 Responses to “Openfiler on USB stick”

  1. h@nnes Says:

    As an addition to my article I wanted to tell that we had a serious crash (beyond repair) of OpenFiler running from a USB stick. It seemed the USB stick ran out of available space, and such seriously corrupted the whole OpenFiler installation (even had problems with existing VG’s after reinstall). You should make sure you have 1/ enough available space (probably more than 1GB is advised!) and 2/ that you don’t increase the usage of available space by log files (this was the problem in my case). You should purge logs an a very regular base to prevent such problems I experienced!

  2. lordbinky Says:

    You should also note that media such as usb sticks, disk on modules, CF cards, etc. . . all have limited writes due to it internal nature. Storing logs, temp files and swap files should be avoided to extend the life of the media. There are media types that have been manufactured to extend the longevity, but even so, logs, temp files, and swap should not be stored on this type of media.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: