Posts Tagged ‘usb boot’

Day 1: Ubuntu RAID-1 and LVM enabled filer on a USB stick with backuppc

January 9, 2008

Ok for the time being I decided to abandon freenas and openfiler (since I could not get backuppc installed in them) and install Ubuntu Gutsy Gibbon on 4GB A-Data USB stick ($20 from Fry’s).

It is super easy to install Ubuntu on USB stick. Make sure CDROM is the first boot device. Pop-in Ubuntu cdrom and reboot.

I used Ubuntu 7.10 alternate cd image (so no Ubuntu server or Ubuntu desktop cd image). This alternate has no X11 and supports LVM/RAID configs. During install I just picked /dev/sda as drive to partition and install on. It might be good idea to disconnect IDE drives during install no prevent accidentally installing on /dev/hdX drive.

No special usb modules loading andor rebuilding initrd.img tricks were required. Even though initially I thought so that I need to follow instructions outlined at

After reboot change boot device to USB HDD in BIOS settings and remove cd from cdrom drive. It takes a while to boot up…

Then just update Ubuntu and install swat, backuppc, samba, nfs, sshd, apache, webmin etc to help admin etc work.

In my box (Shuttle SK41G AMD Athlon XP 1800+) I have:

  • 2x160GB Hitachi Deskstars in RAID-1 array (file system: ext3 – mounted as /nasse)
  • 1x400GB Seagate (filesystem: ReiserFS – mounted as /storage)

Mount and df from box:

root@nasse:~# mount /dev/sda1 on / type ext3 (rw,errors=remount-ro)

proc on /proc type proc (rw,noexec,nosuid,nodev)

/sys on /sys type sysfs (rw,noexec,nosuid,nodev)

varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)

varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)

udev on /dev type tmpfs (rw,mode=0755)

devshm on /dev/shm type tmpfs (rw)

devpts on /dev/pts type devpts (rw,gid=5,mode=620)

lrm on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw)

/dev/hda1 on /storage type reiserfs (rw)

securityfs on /sys/kernel/security type securityfs (rw)

nfsd on /proc/fs/nfsd type nfsd (rw)

/dev/mapper/nasse-nasse_store on /nasse type ext3 (rw,noatime)

root@nasse:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 3.5G 762M 2.6G 23% / varrun 236M 184K 236M 1% /var/run varlock 236M 0 236M 0% /var/lock udev 236M 88K 236M 1% /dev devshm 236M 0 236M 0% /dev/shm lrm 236M 34M 203M 15% /lib/modules/2.6.22-14-generic/volatile /dev/hda1 373G 35M 373G 1% /storage /dev/mapper/nasse-nasse_store 154G 2.2G 152G 2% /nasse root@nasse:~#

This link was super useful for me.

More on backuppc set up and config later.