Difference between revisions of "Install From USB"

From SME Server
Jump to navigationJump to search
m
 
(40 intermediate revisions by 9 users not shown)
Line 1: Line 1:
 
{{Level|Medium}}
 
{{Level|Medium}}
  
== Requirements ==
+
=Koozali SME Server 10=
* Bootable USB Disk - 2GB is sufficient
 
* SME Image - SME 8 - download it
 
* USB Disk Creation Software
 
** http://www.pendrivelinux.com/
 
*** Universal USB Installer
 
  
Note: I'm using Windows 7 - Assume rest of World is too
+
A hybrid ISO image is used for creating bootable installation media. Note that not all USB Disk Creation software can properly handle this type of image (yet), See [https://wiki.centos.org/HowTos/InstallFromUSBkey CentOS wiki] for details.
  
== Creating USB stick ==
+
==Requirements==
* USB Disk In
 
* Run the Universal USB Installer
 
* Point to the SME ISO file
 
  
'''ALSO:'''
+
*Bootable USB Disk - 2GB is sufficient. NOTE: some machine will not boot from a USB3 USB Disk, if you have this issue try with a USB2 device.
* Copy the SME ISO you downloaded onto the USB disk
+
*SME Image of your choice - eg SME 9.2 or SME 10.#. See the page [[SME_Server:Download]] for the current images.
** ''SME Installation requires this image, simply copy the iso image to the USB Drive''
+
*For Windows:
 +
**Recommended: Fedora Media Writer availabel from: https://getfedora.org/en/workstation/download/ (previous utility no longer availabe)
 +
**Or Rufus: https://rufus.ie/en/
 +
*For Linux:
 +
**The <tt>dd</tt> command is used from the commandline
 +
*For OS X:
 +
**The <tt>dd</tt> command is used from the commandline
  
== Using ==
+
==Creating the USB stick on Windows with Fedora Media Writer==
In your new Hardware ...
 
# Boot from USB
 
# Select Install from Hard Disk
 
# Choose Partition
 
#* Mine was ''/dev/sdb1'' when there was a partition - it was ''/dev/sda1'' when no partition
 
#* It will want to know where your .iso image is, I just hit enter (because it was in the root of my usb)
 
  
=== Write Grub ===
+
*Insert USB Device and note the drive-letter used for it by Windows
* When it booted I had to write Grub (see: http://wiki.centos.org/HowTos/GrubInstallation)
+
*Fire-up the the Fedora Media Writer
*# find /grub/stage1
+
*Select "Custom Image"
*# root (hd0,0)
+
*Select the downloaded SME Server ISO from the "Open" dialog
*# setup (hd0)
+
*Select the right target USB Device from the pulldown menu
*# reboot
+
*Click 'Write to disk"
 +
*On completion eject the USB disk
  
''Long Live SME ...''
+
==Creating the USB stick on Linux==
  
===References===
+
*Insert USB device
* http://www.pendrivelinux.com/
+
*Go to the commandline
* [http://forums.contribs.org/index.php?topic=48479.0 ''SME Server USB installer'' topic in the Contribs forums]
+
*If the USB device gets automatically mounted, unmount it first.<br />'''PAY ATTENTION! Be sure to use the right device.'''
* http://wiki.centos.org/HowTos/GrubInstallation
+
 
 +
umount /dev/sdX
 +
 
 +
:''Where sdX is your USB device name.''
 +
 
 +
*Write the ISO to the USB device and make sure buffered data is written to disk.<br />'''WARNING! Be sure to pick the right device as you might destroy your system when wrong!!'''
 +
 
 +
dd if=FILENAME.ISO of=/dev/sdX
 +
sync
 +
 
 +
:''Again where sdX is your USB device name.''
 +
 
 +
==Creating the USB stick on OS X==
 +
 
 +
*Insert USB Device
 +
*Start the 'Terminal' program (<tt>Finder → Applications → Utilities</tt>)
 +
*Find out what device name is your USB stick
 +
 
 +
diskutil list
 +
 
 +
*Unmount the USB device.<br />'''PAY ATTENTION! Be sure to use the right device.'''
 +
 
 +
diskutil unmountDisk /dev/diskX
 +
 
 +
:''Where diskX is your USB device name.''
 +
 
 +
*Write the ISO to the USB device and make sure buffered data is written to disk.<br />'''WARNING! Be sure to pick the right device as you might destroy your system when wrong!!'''
 +
 
 +
dd if=FILENAME.ISO of=/dev/diskX conv=sync
 +
 
 +
:''Again where diskX is your USB device name.''
 +
 
 +
The dd command can take a long time, so be patient. The 670MB image transferred to an older USB 2.0 device took about thirteen (13) minutes.
 +
 
 +
==Usage==
 +
Boot your server from USB device and when you get the 'Installation Method' dialog-box choose: <tt>Harddisk → sda1</tt>
 +
 
 +
=Other utilities, untested for v.10=
 +
==Requirements==
 +
 
 +
*Bootable USB Disk - 2GB is sufficient
 +
*SME Image of your choice
 +
*USB Disk Creation Software
 +
**http://unetbootin.sourceforge.net/
 +
**http://liveusb.info/dotclear/index.php?
 +
 
 +
Note: Using Windows 7, should work on XP and later<br />
 +
 
 +
Note: Multisystem can be used on Windows and/or Linux, as can unetbootin :D
 +
 
 +
==Creating USB stick==
 +
 
 +
*Insert USB device
 +
*Run the Software
 +
*Point to the SME ISO file
 +
 
 +
==Using==
 +
On your new Hardware ...
 +
 
 +
#Boot from USB
 +
#Select Install from Hard Disk
 +
#Choose Partition
 +
 
 +
**Generally it will be the last partition
 +
**it was ''/dev/sda1'' when no partition, sde1 when I re-installed on the HP Microserver
 +
**leave the path blank
 +
 
 +
===Make the USB-key with UNetbootin===
 +
{{Note box|5th July 2013: I found that unetbootin-windows-585.exe expanded the smeserver-8.0-i386.iso onto the USB stick (creating the directory structure etc), thus there was no .iso image to be found at the select an image point in the install process. I simply copied the smeserver-8.0-i386.iso into the USB sticks root directory.}}
 +
 
 +
*USB Disk In
 +
*Run Unetbootin
 +
*Point to the SME ISO file
 +
*Wait until Unetbooting has finished
 +
*Simply copy the smeserver-8.0-i386.iso into the USB sticks root directory.
 +
 
 +
Then
 +
 
 +
*Boot from USB
 +
*Select Install from Hard Disk
 +
*Choose Partition
 +
**Generally it will be the last partition
 +
**it was ''/dev/sda1'' when no partition, sde1 when I re-installed on the HP Microserver
 +
**leave the path blank
 +
 
 +
{{Warning box| you don't have the boot menu where you can pass special commands on raid, no lvm...}}
 +
 
 +
===Make the USB-key with Multisystem===
 +
Multisystem is a useful tool when you want to get several isos on your usb key, see [http://liveusb.info/dotclear/index.php? multisystem]<br />
 +
 
 +
The installation is quite easy, drag and drop the iso in the below appropriate place, give the password of the  user who needs the sudo right...it is nearly finished.
 +
 
 +
*USB Disk In
 +
*Run multisystem
 +
*Point to the SME ISO file
 +
*Wait that multisystem is finished
 +
*Simply copy the smeserver-8.0-i386.iso into the USB sticks root directory.
 +
 
 +
Then
 +
 
 +
*Boot from USB, select the right O.S you want to start.
 +
*Optional : At boot prompt if you want to give some options to install sme in a particular way, you have to select the SME Server menu and press "e"
 +
 
 +
Then you need to find the line
 +
linux (loop)/isolinux/vmlinux linux repo=hd:
 +
and insert your option line like this :
 +
linux (loop)/isolinux/vmlinux '''nolvm ext4''' linux repo=hd:
 +
All [[Booting|Booting]] options can be find in the wiki.
 +
once done, you can press ctrl+x or F10 to launch the installation.
 +
 
 +
*Select Install from Hard Disk
 +
*Choose Partition
 +
**Generally it will be the last partition
 +
**it was ''/dev/sda1'' when no partition, sde1 when I re-installed on the HP Microserver
 +
**leave the path blank
 +
 
 +
==References==
 +
 
 +
*http://unetbootin.sourceforge.net/
 +
*[http://forums.contribs.org/index.php?topic=48479.0 ''SME Server USB installer'' topic in the Contribs forums]
 +
*http://wiki.centos.org/HowTos/GrubInstallation
 +
*https://docs.fedoraproject.org/en-US/fedora/f33/install-guide/install/Preparing_for_Installation/#sect-preparing-boot-media
 +
*https://rufus.ie/en/
 +
 
 +
<br />
 
----
 
----
 
[[Category:Howto]]
 
[[Category:Howto]]

Latest revision as of 12:05, 9 April 2021

PythonIcon.png Skill level: Medium
The instructions on this page require a basic knowledge of linux.


Koozali SME Server 10

A hybrid ISO image is used for creating bootable installation media. Note that not all USB Disk Creation software can properly handle this type of image (yet), See CentOS wiki for details.

Requirements

  • Bootable USB Disk - 2GB is sufficient. NOTE: some machine will not boot from a USB3 USB Disk, if you have this issue try with a USB2 device.
  • SME Image of your choice - eg SME 9.2 or SME 10.#. See the page SME_Server:Download for the current images.
  • For Windows:
  • For Linux:
    • The dd command is used from the commandline
  • For OS X:
    • The dd command is used from the commandline

Creating the USB stick on Windows with Fedora Media Writer

  • Insert USB Device and note the drive-letter used for it by Windows
  • Fire-up the the Fedora Media Writer
  • Select "Custom Image"
  • Select the downloaded SME Server ISO from the "Open" dialog
  • Select the right target USB Device from the pulldown menu
  • Click 'Write to disk"
  • On completion eject the USB disk

Creating the USB stick on Linux

  • Insert USB device
  • Go to the commandline
  • If the USB device gets automatically mounted, unmount it first.
    PAY ATTENTION! Be sure to use the right device.
umount /dev/sdX
Where sdX is your USB device name.
  • Write the ISO to the USB device and make sure buffered data is written to disk.
    WARNING! Be sure to pick the right device as you might destroy your system when wrong!!
dd if=FILENAME.ISO of=/dev/sdX
sync
Again where sdX is your USB device name.

Creating the USB stick on OS X

  • Insert USB Device
  • Start the 'Terminal' program (Finder → Applications → Utilities)
  • Find out what device name is your USB stick
diskutil list
  • Unmount the USB device.
    PAY ATTENTION! Be sure to use the right device.
diskutil unmountDisk /dev/diskX
Where diskX is your USB device name.
  • Write the ISO to the USB device and make sure buffered data is written to disk.
    WARNING! Be sure to pick the right device as you might destroy your system when wrong!!
dd if=FILENAME.ISO of=/dev/diskX conv=sync
Again where diskX is your USB device name.

The dd command can take a long time, so be patient. The 670MB image transferred to an older USB 2.0 device took about thirteen (13) minutes.

Usage

Boot your server from USB device and when you get the 'Installation Method' dialog-box choose: Harddisk → sda1

Other utilities, untested for v.10

Requirements

Note: Using Windows 7, should work on XP and later

Note: Multisystem can be used on Windows and/or Linux, as can unetbootin :D

Creating USB stick

  • Insert USB device
  • Run the Software
  • Point to the SME ISO file

Using

On your new Hardware ...

  1. Boot from USB
  2. Select Install from Hard Disk
  3. Choose Partition
    • Generally it will be the last partition
    • it was /dev/sda1 when no partition, sde1 when I re-installed on the HP Microserver
    • leave the path blank

Make the USB-key with UNetbootin

Important.png Note:
5th July 2013: I found that unetbootin-windows-585.exe expanded the smeserver-8.0-i386.iso onto the USB stick (creating the directory structure etc), thus there was no .iso image to be found at the select an image point in the install process. I simply copied the smeserver-8.0-i386.iso into the USB sticks root directory.


  • USB Disk In
  • Run Unetbootin
  • Point to the SME ISO file
  • Wait until Unetbooting has finished
  • Simply copy the smeserver-8.0-i386.iso into the USB sticks root directory.

Then

  • Boot from USB
  • Select Install from Hard Disk
  • Choose Partition
    • Generally it will be the last partition
    • it was /dev/sda1 when no partition, sde1 when I re-installed on the HP Microserver
    • leave the path blank


Warning.png Warning:
you don't have the boot menu where you can pass special commands on raid, no lvm...


Make the USB-key with Multisystem

Multisystem is a useful tool when you want to get several isos on your usb key, see multisystem

The installation is quite easy, drag and drop the iso in the below appropriate place, give the password of the user who needs the sudo right...it is nearly finished.

  • USB Disk In
  • Run multisystem
  • Point to the SME ISO file
  • Wait that multisystem is finished
  • Simply copy the smeserver-8.0-i386.iso into the USB sticks root directory.

Then

  • Boot from USB, select the right O.S you want to start.
  • Optional : At boot prompt if you want to give some options to install sme in a particular way, you have to select the SME Server menu and press "e"

Then you need to find the line

linux (loop)/isolinux/vmlinux linux repo=hd:

and insert your option line like this :

linux (loop)/isolinux/vmlinux nolvm ext4 linux repo=hd:

All Booting options can be find in the wiki. once done, you can press ctrl+x or F10 to launch the installation.

  • Select Install from Hard Disk
  • Choose Partition
    • Generally it will be the last partition
    • it was /dev/sda1 when no partition, sde1 when I re-installed on the HP Microserver
    • leave the path blank

References