Line 1: |
Line 1: |
| ==Problem == | | ==Problem == |
− | Imagine you have a server that wont boot from USB CDROM drive or have no internal CDROM drive. | + | Imagine that you have a server that won't boot from USB CDROM drive or that it has no internal CDROM drive. Perhap you prefer to install from a USB stick instead of physical media. |
− | Or even you prefer to install from a USB stick instead a physical media.
| |
| | | |
| ==Solution == | | ==Solution == |
− | Create a USB stick with SME software on it | + | Create a USB stick with SME software on it. |
| | | |
| == Requirements == | | == Requirements == |
| | | |
− | You'll need a usb stick with more space than the sme.iso something like 800mb should do | + | You'll need a usb stick with more space than the sme.iso something like 800mb should do. |
| | | |
− | Tested with SME v7.3 ~ v7.5.1 and SME8B6, so download one or the other iso file. | + | Tested with SME v7.3 ~ v7.5.1 and SME8B6, so download your preferred iso file. |
| | | |
| The latest GRUB4DOS (no Grub/Grub2 wont do). | | The latest GRUB4DOS (no Grub/Grub2 wont do). |
Line 19: |
Line 18: |
| | | |
| '''1) Getting the usb to boot<br>''' | | '''1) Getting the usb to boot<br>''' |
− | unpack the grub4dos.zip.<br>
| + | * Unpack the grub4dos.zip.<br> |
− | Now to install to you usb drive, cd into the grub4dos dir, find and run<br>
| + | Plug in your USB drive and identify what device it is. U can see it by using: |
− | ./bootlace /dev/<Make SURE this is your usbdrive) MINE was /dev/SDD YMMV<br> | + | fdisk -l |
| + | |
| + | * Installing to your usb drive |
| + | cd into directory where you expanded the grub4dos, find and run this command:<br> |
| + | ./bootlace /dev/<YOUR USB DEVICE FROM STEP ABOVE> <br> |
| + | |
| take a peek at http://diddy.boot-land.net/grub4dos/files/install.htm for more hints on this<br> | | take a peek at http://diddy.boot-land.net/grub4dos/files/install.htm for more hints on this<br> |
− | Now we need a couple of files too.<br>
| |
| | | |
− | So we copy grldr and menu.lst to the root of the usb drive.<br>
| + | * Mount you usbdrive, well use /media/usb <br> |
| + | mount /dev/<YOUR USB DEVICE FROM STEP ABOVE> /media/usb <br> |
| | | |
− | There, now it would try to boot.<br>
| + | |
| + | * Copy files to USB root drive: |
| + | cp grldr menu.lst /media/usb |
| | | |
| | | |
| '''2) Getting the iso ready for the boot<br>''' | | '''2) Getting the iso ready for the boot<br>''' |
− | Copy the file smeserver*.iso to the usb stick.<br> | + | * Copy the file smeserver*.iso to the usb stick.<br> |
− | its important to NOT rename this iso, as sme's install program will search for it<br>
| + | |
− | now if you know you will newer have to work on servers with less than 1GB ram, then skip this<br>
| + | cp smeserver*.iso /media/usb |
| + | |
| + | Its important to NOT rename this iso, as sme's install program will search for it<br> |
| + | If you know you will never have to work on servers with less than 1GB ram, then skip next step<br> |
| + | |
| + | |
| + | * for servers with less than 1GB RAM you'll need to<br> |
| | | |
− | Otherwise<br>
| |
| mount the iso in a temporary directory and copy the boot.iso to the root.<br> | | mount the iso in a temporary directory and copy the boot.iso to the root.<br> |
| Something like <br> | | Something like <br> |
Line 42: |
Line 53: |
| mkdir /media/iso | | mkdir /media/iso |
| mount -t iso9600 -o loop smeserver*.iso /media/iso | | mount -t iso9600 -o loop smeserver*.iso /media/iso |
− | cp /media/iso/images/boot.iso /media/<usbstick>/SMEboot.iso | + | cp /media/iso/images/boot.iso /media/usb/SMEboot.iso |
| umount /media/iso | | umount /media/iso |
| rmdir /media/iso | | rmdir /media/iso |
Line 49: |
Line 60: |
| '''3) now for the magic.'''<br> | | '''3) now for the magic.'''<br> |
| On USB edit the menu.lst to include this <br> | | On USB edit the menu.lst to include this <br> |
− |
| |
| | | |
| <pre> | | <pre> |
Line 69: |
Line 79: |
| savedefault --wait=2 | | savedefault --wait=2 |
| </pre> | | </pre> |
| + | |
| + | If you want, you can delete the rest of the entries in the menu.lst <BR> |
| + | It's the std example file we're using, so there are a lot of other boot options we won't need.<BR> |
| + | |
| | | |
| '''4) Read this too'''<BR> | | '''4) Read this too'''<BR> |
| When booting, grub4dos, will cache the cd image to memory <BR> | | When booting, grub4dos, will cache the cd image to memory <BR> |
− | Thats why i included the boot.iso method<BR> | + | Thats why I included the boot.iso method<BR> |
− | the Boot.iso just isnt as polished as the normal installer, so avoid if you can <BR> | + | the Boot.iso just isn't as polished as the normal installer, so avoid if you can <BR> |
− | When booting the smeserver, the initial caching will take a looong time <BR> | + | When booting the smeserver, the initial caching will take some time (mine took 2.5 minutes) <BR> |
− | If anyone has any idea how to get an invadeaload game on, ill take it, otherwise just wait<BR> | + | Therefore, booting from the Boot.iso will be quicker <BR> |
− | Your not working.. SME is working for you <BR>
| + | If anyone has any idea how to get an invadeaload game on, I'll take it, otherwise just wait<BR> |
| + | You're not working.. SME is working for you <BR> |
| | | |
| '''5) IMPORTANT '''<BR> | | '''5) IMPORTANT '''<BR> |
| When the installer is running, it will ask where to find the install image.<BR> | | When the installer is running, it will ask where to find the install image.<BR> |
| + | THAT is also why the smeserver can be booted like this.<BR> |
| + | If it isn't booted from the cd, it will ask where you placed it<BR> |
| Point it at the usbdrive.<BR> | | Point it at the usbdrive.<BR> |
| When asked if you want to format/repartition the drive with the loopback device <BR> | | When asked if you want to format/repartition the drive with the loopback device <BR> |
| ''' JUST SAY NO '''<BR> | | ''' JUST SAY NO '''<BR> |
− | Otherwise i suspect you'll have to start over ;-) | + | Otherwise, I suspect you'll have to start over ;-) |