Author Topic: Failed creating LiveUSB using dd  (Read 1334 times)

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Failed creating LiveUSB using dd
« on: October 02, 2011, 11:30:28 AM »
I used the following command to copy .iso to a 2 GB usb stick. But the result did not boot. My netbook just looked at it and then decided to boot from HDD instead.

Code: [Select]
dd if=/media/SOFTWARE/ISO/Operating\ Systems/pclinuxos-kde-2011.09.iso of=/dev/sdd

What have I done wrong here?
-SS.

NOTE: PCLinuxOS LiveUSB Creator failed to properly read the .iso I suppose.
But the same ISO properly boots and runs in VirtualBox.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Failed creating LiveUSB using dd
« Reply #1 on: October 02, 2011, 12:23:39 PM »
Hi,

Try to check the boot options in the BIOS.

There might be also an option to enable temporary options of boot (then it is F12 or such which is used to access it)

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10686
  • MLUs Forever!
Re: Failed creating LiveUSB using dd
« Reply #2 on: October 02, 2011, 12:33:18 PM »
I used the following command to copy .iso to a 2 GB usb stick. But the result did not boot. My netbook just looked at it and then decided to boot from HDD instead.

Code: [Select]
dd if=/media/SOFTWARE/ISO/Operating\ Systems/pclinuxos-kde-2011.09.iso of=/dev/sdd

What have I done wrong here?
-SS.

NOTE: PCLinuxOS LiveUSB Creator failed to properly read the .iso I suppose.
But the same ISO properly boots and runs in VirtualBox.

If you wish to 'burn' the image to a disk then it should be in Hybrid format, else it won't boot as you have discovered. An ISO is not a burnable image for a HDD.

There is not sufficient info about what happened with PCLinuxOS LiveUSB to even make a guess at what happened.
Report the error message if you want help with this.
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Failed creating LiveUSB using dd
« Reply #3 on: October 03, 2011, 11:54:51 AM »
[Just18]
Here is the error that pops up with LiveUSB creator:

Quote
An Error has Occured

       Extraction of the OS files from the ISO failed.

           We will now abort this installation.       

          Please give feedback about this error.         


                          Thank you.

-SS.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Failed creating LiveUSB using dd
« Reply #4 on: October 03, 2011, 11:56:13 AM »
Hi,

Try to check the boot options in the BIOS.

There might be also an option to enable temporary options of boot (then it is F12 or such which is used to access it)



It is not a problem with boot order, if that is what you are implying.

Because on boot up I hit Esc and then select to boot from USB (Sandisk Cruizer)
I have used this method previously to install PCLinuxOS 2011.
-SS.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Failed creating LiveUSB using dd
« Reply #5 on: October 03, 2011, 12:02:09 PM »
Code: [Select]
+ run_as_root
+++ dirname /usr/share/live-usb-creator/lusbc_0.9.5.sh
++ cd /usr/share/live-usb-creator
++ pwd
+ this_script_dir=/usr/share/live-usb-creator
++ basename /usr/share/live-usb-creator/lusbc_0.9.5.sh
+ this_script=lusbc_0.9.5.sh
+ this_script_path_n_name=/usr/share/live-usb-creator/lusbc_0.9.5.sh
++ which kdesu
+ GUI_SU=/usr/lib/kde4/libexec/kdesu
+ '[' 0 '!=' 0 ']'
+ usb_install
+ set_variables
+ TMP='~/tmp'
+ DRIVES1=
+ DRIVES2=
+ DEVICE=
+ DEV_PART=
+ Type=
+ Type2=
+ Grub_Part=
+ LABEL=LIVE_PCLinuxOS
+ ISO_FILE=
+ Mnt_Pnt=/media/PCLOS_USB_STICK.3354
+ SIZE1=
+ SIZE2=
+ NAME=
+ JOB=
+ MBR=hd0,
+ ADD=
+ LIVE=
+ sqfs_full=
+ sqfs_name=
+ sqfs_dir=
+ isolin_full=
+ isolin_path=
+ isolin2=
+ sqfs2=
+ mypid=10116
+ get_device
+ zenity --window-icon=/usr/share/icons/pclosusb.png --question --width=650 --no-wrap '--title=        PCLinuxOS LiveUSB Creator 0.9.5-2        ' '--text=
                 <b>Deciding on the Install Device</b>       


                 Please ensure that the device you intend to use     

                               is    <span color='\''red'\''><b>NOT</b></span>   plugged in, else

withdraw it now and wait a few seconds before selecting    <span color='\''blue'\''><b>Yes</b></span>    below.

You must ensure you do not plug in or withdraw any device other than the

            one intended for the OS, while this application is running.

                Are you ready to proceed with the LiveUSB install?

                     Selecting      <span color='\''red'\''><b>No</b></span>     will exit the application.
' 0
+ '[' 0 '!=' 0 ']'
++ sfdisk -s
++ grep -e /dev/
++ cut -d: -f1
+ DRIVES1='/dev/sda
/dev/sdb
/dev/sdc'
+ zenity --window-icon=/usr/share/icons/pclosusb.png --question --width=550 '--title=PCLinuxOS LiveUSB Creator 0.9.5-2' '--text=


           <b> Please plug in your USB flash stick now </b>       


             Please insert it now and select    <span color='\''blue'\''><b>Yes  </b></span> below.


              Selecting    <span color='\''red'\''><b>No</b></span>    will exit this application.

' 0
+ '[' 0 '!=' 0 ']'
+ echo
+ sleep 10
+ zenity --window-icon=/usr/share/icons/pclosusb.png --progress --pulsate '--title=  PCLinuxOS LiveUSB Creator 0.9.5-2    ' --text ' 
                      <b>DEVICE DETECTION</b>   
 
                Your Inserted device is being detected   

                  This will take just a few moments.     

Do   <span color='\''red'\''><b>NOT</b></span>   attempt to view its contents while running this application.

                                  ' --auto-close --auto-kill
++ sfdisk -s
++ grep -e /dev/
++ cut -d: -f1
+ DRIVES2='/dev/sda
/dev/sdb
/dev/sdc
/dev/sdd'
++ echo /dev/sda /dev/sdb /dev/sdc /dev/sdd
+ for file in '$(echo $DRIVES2)'
++ echo /dev/sda /dev/sdb /dev/sdc
++ grep -v /dev/sda
++ head -1
+ tmpstr=
+ '[' '' '!=' '' ']'
+ for file in '$(echo $DRIVES2)'
++ echo /dev/sda /dev/sdb /dev/sdc
++ grep -v /dev/sdb
++ head -1
+ tmpstr=
+ '[' '' '!=' '' ']'
+ for file in '$(echo $DRIVES2)'
++ echo /dev/sda /dev/sdb /dev/sdc
++ grep -v /dev/sdc
++ head -1
+ tmpstr=
+ '[' '' '!=' '' ']'
+ for file in '$(echo $DRIVES2)'
++ echo /dev/sda /dev/sdb /dev/sdc
++ grep -v /dev/sdd
++ head -1
+ tmpstr='/dev/sda /dev/sdb /dev/sdc'
+ '[' '/dev/sda /dev/sdb /dev/sdc' '!=' '' ']'
+ DEVICE=/dev/sdd
+ '[' /dev/sdd == '' ']'
++ fdisk -l
++ grep '^/dev/sdd'
++ zenity --window-icon=/usr/share/icons/pclosusb.png --list --height=550 '--title=   PCLinuxOS LiveUSB Creator 0.9.5-2' '--text=   
                 <b>Select the Partition for the Install</b>

                 On which partition will we install the OS?

                 Highlight your selection and select <span color='\''blue'\''><b>OK</b></span>

                 Select  <span color='\''red'\''><b>Cancel</b></span>  to quit the application

' --width=550 --height=400 '--column=Partitions                                     Details'
+ Selected_Part='/dev/sdd1   *        2048     3905535     1951744   83  Linux'
+ '[' 0 = 1 ']'
+ '[' '/dev/sdd1   *        2048     3905535     1951744   83  Linux' = '' ']'
++ echo '/dev/sdd1   *        2048     3905535     1951744   83  Linux'
++ awk '{print $1}'
+ DEV_PART=/dev/sdd1
++ blkid -c /dev/null -o value -s TYPE /dev/sdd1
+ Type=ext3
+ '[' ext3 = ext2 ']'
+ '[' ext3 = ext3 ']'
+ zenity --window-icon=/usr/share/icons/pclosusb.png --info --no-wrap --width=500 --timeout=6 '--title= PCLinuxOS LiveUSB Creator 0.9.5-2' '--text=<b>Selected Partition</b>
You have chosen to install on /dev/sdd1                           '
+ umount /dev/sdd1
umount: /dev/sdd1: not mounted
++ echo /dev/sdd1
++ cut -c9-10
+ Grub_Part=1
+ let 'Grub_Part = 1 - 1 '
+ write_label
++ e2label /dev/sdd1
+ LABEL_Exist=SanDiskCruizer
+ '[' 0 '!=' 0 ']'
+ get_uuid
++ blkid -c /dev/null -o value -s UUID /dev/sdd1
+ PART_UUID=40550eb6-09a9-41d1-97b0-31afd80ae2c1
+ '[' 40550eb6-09a9-41d1-97b0-31afd80ae2c1 == '' ']'
+ get_job
++ zenity --window-icon=/usr/share/icons/pclosusb.png --list '--title=    PCLinuxOS LiveUSB Creator 0.9.5-2    ' '--text=    <b>Select the Action You Wish to Perform</b>    \n    Please select the action which you wish to perform from the list below   
' --radiolist --height=250 --width=350 --hide-column=2 --column Select --column ' Option ' --column '            - Job Type -        ' FALSE 1 'Create a new Live OS on an USB stick' TRUE 2 'Add a second or subsequent OS to an USB stick partition' FALSE 3 'Exit this utility'
+ JOB=1
+ '[' 1 == 1 ']'
+ ADD=no
++ zenity --window-icon=/usr/share/icons/pclosusb.png --list '--title=    PCLinuxOS LiveUSB Creator 0.9.5-2    ' '--text=    <b>Select the Action You Wish to Perform</b>    \n    Please select the action which you wish to perform from the list below   
' --radiolist --height=250 --width=350 --hide-column=2 --column Select --column ' Option ' --column '            - Job Type -        ' TRUE 1 'Use an ISO file as the source of your install' FALSE 2 'Use the files from a Live Media such as a Live CD as the source' FALSE 3 'Exit this utility'
+ JOB=1
+ '[' 1 == 1 ']'
+ LIVE=no
+ get_name
++ zenity --window-icon=/usr/share/icons/pclosusb.png --list --height=387 --width=350 '--title=  PCLinuxOS LiveUSB Creator 0.9.5-2' '--text= 
        <b>Select the OS NAME</b>     
      Please ensure you do not select a
      name already in use on the device.
Highlight a name and select <span color='\''blue'\''><b>OK</b></span>  to accept it.' --editable --column '               - Suggested Names -
     Click a second time to edit a name
         Press Enter to accept the edit.
            Use no spaces in the name.     ' E17 Gnome KDE LXDE OpenBox Xfce ''
+ NAME=KDE
+ '[' KDE = '' ']'
+ '[' no '!=' yes ']'
+ get_iso
+ zenity --window-icon=/usr/share/icons/pclosusb.png --info --timeout 5 --title 'PCLinuxOS LiveUSB Creator 0.9.5-2 ' --text '<b>Selecting the ISO to be Used </b>
At the following prompt please navigate to, and select the ISO you wish to use for this install
'
++ zenity --window-icon=/usr/share/icons/pclosusb.png --file-selection --file-filter '*.iso' --title '  PCLinuxOS LiveUSB Creator 0.9.5-2   '
+ ISO_FILE='/media/SOFTWARE/ISO/Operating Systems/pclinuxos-kde-2011.09.iso'
+ '[' '/media/SOFTWARE/ISO/Operating Systems/pclinuxos-kde-2011.09.iso' = '' ']'
+ echo /media/SOFTWARE/ISO/Operating Systems/pclinuxos-kde-2011.09.iso
/media/SOFTWARE/ISO/Operating Systems/pclinuxos-kde-2011.09.iso
+ echo
+ sleep 3
+ zenity --window-icon=/usr/share/icons/pclosusb.png --progress --pulsate '--title=   PCLinuxOS LiveUSB Creator 0.9.5-2   ' --text '   
                                                <b>Creating the Operating System on the Device</b>   

 
              This is a visual indication that the script is working. It continues in the background during operation.

                   Some operations such as wiping and copying files to the partition may take a <i><b>very</b></i> long time.

           The speed of completion depends on the size of the OS to be installed and also on the speed of the device in use.   

                                                                    Good Luck!

' --auto-close --auto-kill
+ mount_part
+ pmount /dev/sdd1 /media/PCLOS_USB_STICK.3354
+ '[' 0 '!=' 0 ']'
+ '[' no = yes ']'
+ '[' no '!=' yes ']'
+ wipe_part
+ rm -rf /media/PCLOS_USB_STICK.3354/tmp
+ '[' no '!=' yes ']'
+ get_size
++ df -P -B M /media/PCLOS_USB_STICK.3354
++ cut -d F -f1
++ cut -d M -f3
+ SIZE1='
     1746'
++ cut -d M -f1
++ du -B M '/media/SOFTWARE/ISO/Operating Systems/pclinuxos-kde-2011.09.iso'
+ SIZE2=648
+ SIZE2=658
+ '[' 658 -gt 1746 ']'
+ copy_iso_files
+ mkdir /media/PCLOS_USB_STICK.3354/tmp
+ '[' 0 '!=' 0 ']'
+ 7z x -tiso /media/SOFTWARE/ISO/Operating Systems/pclinuxos-kde-2011.09.iso -o/media/PCLOS_USB_STICK.3354/tmp
+ '[' 2 '!=' 0 ']'
+ zenity --window-icon=/usr/share/icons/pclosusb.png --error '--title= PCLinuxOS LiveUSB Creator 0.9.5-2' '--text=
                <b>An Error has Occured</b>

       Extraction of the OS files from the ISO failed.

           We will now abort this installation.

          Please give feedback about this error.


                          Thank you.
'
+ abort
+ echo
+ pumount /dev/sdd1
+ kill 10116
+ exit

This is the output when run from Konsole.
-SS.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10686
  • MLUs Forever!
Re: Failed creating LiveUSB using dd
« Reply #6 on: October 03, 2011, 02:25:45 PM »
Please check that you have the  P7zip  dependency installed.


Code: [Select]
7z x -tiso /media/SOFTWARE/ISO/Operating Systems/pclinuxos-kde-2011.09.iso -o/media/PCLOS_USB_STICK.3354/tmp
It seems the error may be because of the path not being acceptable .... try changing the folder name from
/Operating Systems/
to
/Operating_Systems/

to see if that cures the problem.

It appears that this command does not have the path escaped/quoted so the space may cause an error.

If this is the problem then it will need to be corrected in an update.

Thanks for the full output ....  appreciated.

regards.

EDIT
          Yes it appears it is the space that is the problem .....  from the man page ....
Quote
Wildcards or filenames with spaces must be quoted:
    "Dir\Program files\*"
    Dir\"Program files"\*

So in the case above the path needs to be quoted because of the space.

Thanks for bringing this to my attention.

regards.
« Last Edit: October 03, 2011, 02:30:47 PM by Just18 »
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT