Changes

Jump to navigation Jump to search
1,112 bytes added ,  00:01, 24 February 2009
→‎On Linux using the shell script: assure bootable partition
Line 43: Line 43:     
====On Linux using the shell script====
 
====On Linux using the shell script====
This is known to work in Fedora and might work in other Linux distributions. There has been one report where this script does not work in Ubuntu. 
+
This is known to work in Fedora and might work in other Linux distributions.
    
* Make sure you have the isomd5sum package installed in your distribution, as it will be needed by the script later on.
 
* Make sure you have the isomd5sum package installed in your distribution, as it will be needed by the script later on.
 
* Plug in a 1GB or larger USB stick into your computer.
 
* Plug in a 1GB or larger USB stick into your computer.
 
* Download the shell script [http://katzj.fedorapeople.org/olpc/livecd-iso-to-disk.sh livecd-iso-to-disk.sh]
 
* Download the shell script [http://katzj.fedorapeople.org/olpc/livecd-iso-to-disk.sh livecd-iso-to-disk.sh]
* Check the USB device. In the example below the device is /dev/sda.
+
* Check the USB device. In the example below the device is /dev/sdb,<br>
 +
: df -h
 +
Filesystem            Size  Used Avail Use% Mounted on
 +
/dev/sda1              19G  7.0G  11G  40% /
 +
tmpfs                1.5G    0  1.5G  0% /lib/init/rw
 +
varrun                1.5G  96K  1.5G  1% /var/run
 +
varlock              1.5G    0  1.5G  0% /var/lock
 +
udev                  1.5G  2.9M  1.5G  1% /dev
 +
tmpfs                1.5G  104K  1.5G  1% /dev/shm
 +
lrm                  1.5G  2.0M  1.5G  1% /lib/modules/2.6.27-11-generic/volatile
 +
/dev/sdb1            996M  913M  84M  92% /mnt/myUSBdisc
   −
marcopg@marcopg-laptop:~$ df -h
+
* Then check to see that the partition is marked as bootable,<br>
Filesystem            Size  Used Avail Use% Mounted on
+
: sudo fdisk -l
  /dev/hda3              36G 3.9G   30G 12% /
+
You should see output that looks like this:
  /dev/sda1            7.5G  716M  6.8G  10% /media/disk
+
  Disk /dev/sdb: 1047 MB, 1047265280 bytes
 +
255 heads, 63 sectors/track, 127 cylinders
 +
Units = cylinders of 16065 * 512 = 8225280 bytes
 +
Disk identifier: 0x0008325f
 +
  .  
 +
  Device Boot      Start        End      Blocks   Id System
 +
  /dev/sdb1  *          1        127    1020096    6  FAT16
 +
The '*' under the Boot column is what you want to see.
 +
: If not, then
 +
:* Try this (at least in Ubuntu 8.10) menu: System -> Administration -> Partition Editor (GParted).
 +
::# Select your USB device (/dev/sdb in your case),
 +
::# then your partition (/dev/sdb1),
 +
::# then menu: Partition -> Manage Flags,
 +
::# check the boot box,
 +
::# and Close to mark the partition as bootable.
    +
* Unmount the drive,<br>
 +
: sudo umount /dev/sdb1
 
* Run it as root, making sure to pass the correct USB device and to set overlay and home size appropriately, depending on the stick size.
 
* Run it as root, making sure to pass the correct USB device and to set overlay and home size appropriately, depending on the stick size.
  sh ./livecd-iso-to-disk.sh --overlay-size-mb 500 --home-size-mb 500 Soas-200902201251.iso /dev/sdb1
+
  sudo ./livecd-iso-to-disk.sh --overlay-size-mb 500 --home-size-mb 500 Soas-200902201251.iso /dev/sdb1
    
====On Windows or Linux using UNetbootin====
 
====On Windows or Linux using UNetbootin====

Navigation menu