[LIVE] HOW-TO create a bootable XBMC Live 9.11 USB disk (on Windows and Linux)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
lcapriotti Offline
a.k.a Luigi, Team-XBMC XBMCbuntu Dev
Posts: 806
Joined: Jan 2008
Reputation: 12
Location: Italy
Thumbs Up  [LIVE] HOW-TO create a bootable XBMC Live 9.11 USB disk (on Windows and Linux)
Post: #1
The easiest way to create bootable USB disks out of the new XBMCLive (Beta1) CD image is to use unetbootin, available for Windows and Linux:

Start unetbootin, select disk image and choose the ISO file.

A second step is required if you want to have the changes to be persistent: creation of a permanent storage file.

Using Windows:
The neat utility TopoResize can be used to create the "permanent storage file".
Grab the tool and create an ext3-formatted file called "live-rw" (no quotes), and place it in the root of the flash disk.

Using Linux:
boot the flash disk in safe mode, logon at console prompt and type

Code:
sudo mount -t vfat /dev/sda1 /mnt
dd if=/dev/zero of=/mnt/live-rw bs=1M count=600
mkfs.ext3 -F /mnt/live-rw

(replace 600 with your preferred size in MB).

After a reboot you will have a complete XBMC Live bootable disk.


NEW: the changes to the system configuration are being written on the permanent storage file in real time, hence a small amount of flash disk writes occur. If you want to minimize the disk writes there is a new feature that can be utilized: snapshots.
Snapshot files are handled by XBMC Live during startup and shutdown/reboot, no writes to flash disks are performed during runtime.
This means that boot time and shutdown/reboot will take slightly longer due to the changes to be retrieved and saved. However if you don't install/modify/update too many system files the amount of time needed for the snapshots handling is barely noticeable.

Creation of a snapshot file is as easy as creating an empty file called live-sn.cpio.gz in the root of the flash disk. The file will grow according to the amount of files added/changed during runtime.

UPDATE: grub4dos can be used to create a bootable usb disk!
1. Format the flash disk as FAT32 DOS bootable disk
2. Use grubinst to install grub4dos in the MBR
3. Copy all the files from the CD to the flash disk
4. Copy the file /boot/grub/menu.lst from the cd to the root directory of the flash disk.

UPDATE: see post #9 for installing from an USB disk

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
(This post was last modified: 2009-11-25 18:31 by lcapriotti.)
find quote
Mnuu Offline
Member
Posts: 53
Joined: Nov 2009
Reputation: 0
Post: #2
Works great for booting from, but I cant seem to use the installer , it demands a cdrom from me.
(This post was last modified: 2009-11-25 12:09 by Mnuu.)
find quote
lcapriotti Offline
a.k.a Luigi, Team-XBMC XBMCbuntu Dev
Posts: 806
Joined: Jan 2008
Reputation: 12
Location: Italy
Post: #3
installation has to be performed from CD.

UPDATE: see post #9

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
(This post was last modified: 2009-11-25 15:36 by lcapriotti.)
find quote
erhnam Offline
Team-XBMC Live Developer
Posts: 667
Joined: May 2009
Reputation: 2
Location: The Netherlands
Post: #4
l.capriotti, I used to work with the previous versions of XBMC live. What will happen when I boot XBMC Live from an USB, choose to format my harddrive and install XBMC. Will it copy the settings or files from live-rw image?

I would like to use the XBMC Live version as an USB installer. What do I need to do in order to add more files to the system while installing or after the installation?
find quote
lcapriotti Offline
a.k.a Luigi, Team-XBMC XBMCbuntu Dev
Posts: 806
Joined: Jan 2008
Reputation: 12
Location: Italy
Post: #5
erhnam Wrote:What will happen when I boot XBMC Live from an USB, choose to format my harddrive and install XBMC. Will it copy the settings or files from live-rw image?
it won't, as in previous versions. Besides, the installer now runs only from the CD.
UPDATE: see post #9

erhnam Wrote:I would like to use the XBMC Live version as an USB installer. What do I need to do in order to add more files to the system while installing or after the installation?

you would have to customize the installer that was used for the previous versions of XBMCLive.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
(This post was last modified: 2009-11-25 15:36 by lcapriotti.)
find quote
erhnam Offline
Team-XBMC Live Developer
Posts: 667
Joined: May 2009
Reputation: 2
Location: The Netherlands
Post: #6
l.capriotti Wrote:it won't, as in previous versions. Besides, the installer now runs only from the CD.

you would have to customize the installer that was used for the previous versions of XBMCLive.

Ok thanks. And is it possible to put the iso on an usb-drive with unetbootin, make some changes with the live-rw option and put it back on a cd-drive to use it as a bootable live-cd?

I'm questioning because I want equip a lot of machines (with cd-drives) with xbmc-live versions.

I also tried to build my own xbmc live 9.04 version but the guide is a little bit outdated. So I wonder if you have plans to update the wiki to outline how to create your own live version version.
(This post was last modified: 2009-11-25 14:02 by erhnam.)
find quote
lcapriotti Offline
a.k.a Luigi, Team-XBMC XBMCbuntu Dev
Posts: 806
Joined: Jan 2008
Reputation: 12
Location: Italy
Post: #7
erhnam Wrote:Ok thanks. And is it possible to put the iso on an usb-drive with unetbootin, make some changes with the live-rw option and put it back on a cd-drive to use it as a bootable live-cd?
sure, you will have to play a little bit with the content of the live-rw image and with d-i late preseeding.

erhnam Wrote:I also tried to build my own xbmc live 9.04 version but the guide is a little bit outdated. So I wonder if you have plans to update the wiki to outline how to create your own live version version.
I will commit all needed files and instructions when the 9.11 stable will be released.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Mnuu Offline
Member
Posts: 53
Joined: Nov 2009
Reputation: 0
Post: #8
I don't have a CD drive I can use with my HTPC , this kinda sucks seeing as the old installer did the job fine.
find quote
lcapriotti Offline
a.k.a Luigi, Team-XBMC XBMCbuntu Dev
Posts: 806
Joined: Jan 2008
Reputation: 12
Location: Italy
Post: #9
a last minute breakthrough! add the following to the installer kernel cmdline:

Code:
cdrom-detect/try-usb=true

and let me know how it goes

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
erhnam Offline
Team-XBMC Live Developer
Posts: 667
Joined: May 2009
Reputation: 2
Location: The Netherlands
Post: #10
Luigi,

Intel Safe mode doesn't work, file not found (error 15). You might want to have a look at that.
find quote
Eldandoerino Offline
Junior Member
Posts: 19
Joined: Nov 2009
Reputation: 0
Post: #11
l.capriotti Wrote:a last minute breakthrough! add the following to the installer kernel cmdline:

Code:
cdrom-detect/try-usb=true

and let me know how it goes

Sorry but where do i need to add this is it to a file on the pen drive?
find quote
wireless Offline
Junior Member
Posts: 1
Joined: Nov 2009
Reputation: 0
Post: #12
l.capriotti Wrote:a last minute breakthrough! add the following to the installer kernel cmdline:

Code:
cdrom-detect/try-usb=true

and let me know how it goes

worked for me. thanks
find quote
M@rtijn Offline
Junior Member
Posts: 33
Joined: Nov 2008
Reputation: 0
Post: #13
Eldandoerino Wrote:Sorry but where do i need to add this is it to a file on the pen drive?

Select "Install to hardrive" from the boot menu. Push "Tab" instead of "Enter". Write "cdrom-detect/try-usb=true" before the "--" and hit "Enter"
find quote
Eldandoerino Offline
Junior Member
Posts: 19
Joined: Nov 2009
Reputation: 0
Post: #14
M@rtijn Wrote:Select "Install to hardrive" from the boot menu. Push "Tab" instead of "Enter". Write "cdrom-detect/try-usb=true" before the "--" and hit "Enter"

Ah cheers for that Big Grin
find quote
windirt Offline
Junior Member
Posts: 10
Joined: Jul 2009
Reputation: 0
Post: #15
if the bootable-usb made by unetbootin

edit the syslinux.cfg on the root folder.

find the "label ubnentry6"
edit the last line, add "cdrom-detect/try-usb=true" before "--"

Zotac ION ITX A-E/AOPEN S100 Case/DDR2 4GB/20GB SATA internel/1TB ESATA external/ Crystal HD Decoder/Logitech Harmony remote/MCE IR Receiver

Windows7 Ultimate 64bit / XBMC Windows 26459 GL
find quote
Post Reply