Author Topic: [ Testing Completed ] LiveUSB Testers  (Read 6118 times)

Offline johnmart

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1095
  • Make Love Not War
Re: [ Testing Completed ] LiveUSB Testers
« Reply #60 on: January 03, 2012, 09:25:31 PM »
Well, now the full code will upload. Server truble, I guess.
This is the konsole response when I navigate to /home/john to select an iso located in /home/john/Downloads. I open /home ok, but as soon as I open/john script exits, without response.
Choosing an iso located in /root/Downloads/ runs as expected. Hope that helps.
Great work Just18.  :)

Code: [Select]
[john@localhost Downloads]$ sh lusbc_0.9.7.sh
+ run_as_root
+++ dirname lusbc_0.9.7.sh
++ cd .
++ pwd
+ this_script_dir=/home/john/Downloads
++ basename lusbc_0.9.7.sh
+ this_script=lusbc_0.9.7.sh
+ this_script_path_n_name=/home/john/Downloads/lusbc_0.9.7.sh
++ which kdesu
+ GUI_SU=
++ which gksu
+ GUI_SU=/usr/bin/gksu
+ '[' 500 '!=' 0 ']'
+ zenity --window-icon=/usr/share/icons/pclosusb.png --width 440 --question --ok-label=Yes --cancel-label=No '--title=PCLinuxOS LiveUSB Creator 0.9.7' '--text=            <b>*** ALERT ***</b>  \n     This script must be run as root\n     Would you like to continue?'
+ '[' 0 -eq 0 ']'
+ /usr/bin/gksu bash /home/john/Downloads/lusbc_0.9.7.sh
+ run_as_root
+++ dirname /home/john/Downloads/lusbc_0.9.7.sh
++ cd /home/john/Downloads
++ pwd
+ this_script_dir=/home/john/Downloads
++ basename /home/john/Downloads/lusbc_0.9.7.sh
+ this_script=lusbc_0.9.7.sh
+ this_script_path_n_name=/home/john/Downloads/lusbc_0.9.7.sh
++ which kdesu
+ GUI_SU=
++ which gksu
+ GUI_SU=/usr/bin/gksu
+ '[' 0 '!=' 0 ']'
+ usb_install
+ set_variables
+ DRIVES1=
+ DRIVES2=
+ DEVICE=
+ DEV_PART=
+ Type=
+ Type2=
+ Grub_Part=
+ LABEL=LIVE_PCLinuxOS
+ ISO_FILE=
+ Mnt_Pnt=/media/PCLOS_USB_STICK.4039
+ SIZE1=
+ SIZE2=
+ NAME=
+ JOB=
+ MBR=hd0,
+ ADD=
+ LIVE=
+ sqfs_full=
+ sqfs_name=
+ sqfs_dir=
+ isolin_full=
+ isolin_path=
+ isolin2=
+ sqfs2=
+ mypid=9389
+ STANDARD=
+ COPY2RAM=
+ PERSIST=
+ MEMTEST=
+ get_device
+ zenity --window-icon=/usr/share/icons/pclosusb.png --question --width=650 --no-wrap '--title=        PCLinuxOS LiveUSB Creator 0.9.7        ' '--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
+ zenity --window-icon=/usr/share/icons/pclosusb.png --question --width=550 '--title=PCLinuxOS LiveUSB Creator 0.9.7' '--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 ']'
+ zenity --window-icon=/usr/share/icons/pclosusb.png --progress --pulsate '--title=  PCLinuxOS LiveUSB Creator 0.9.7    ' '--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
+ echo
+ sleep 10
++ cut -d: -f1
++ grep -e /dev/
++ sfdisk -s
+ DRIVES2='/dev/sda
/dev/sdc'
++ echo /dev/sda /dev/sdc
+ for file in '$(echo $DRIVES2)'
++ echo /dev/sda
++ grep -v /dev/sda
++ head -1
+ tmpstr=
+ '[' '' '!=' '' ']'
+ for file in '$(echo $DRIVES2)'
++ echo /dev/sda
++ head -1
++ grep -v /dev/sdc
+ tmpstr=/dev/sda
+ '[' /dev/sda '!=' '' ']'
+ DEVICE=/dev/sdc
+ '[' /dev/sdc == '' ']'
+ '[' '' '!=' ext2 ']'
+ '[' '' '!=' ext3 ']'
+ '[' '' '!=' ext4 ']'
++ fdisk -l
++ grep '^/dev/sdc'
++ zenity --window-icon=/usr/share/icons/pclosusb.png --list --height=550 '--title=   PCLinuxOS LiveUSB Creator 0.9.7' '--text=  
                 <b>Select a <span color='\''blue'\''><b>Linux ext</b></span> Partition for the Install</b>

                 You must select a <span color='\''blue'\''><b>Linux</b></span> partition (type #83).

                 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'

(zenity:9477): GLib-WARNING **: Invalid file descriptor.

+ Selected_Part='/dev/sdc1   *          63    15644159     7822048+  83  Linux'
+ '[' 0 = 1 ']'
++ awk '{print $1}'
++ echo '/dev/sdc1   *          63    15644159     7822048+  83  Linux'
+ DEV_PART=/dev/sdc1
++ blkid -c /dev/null -o value -s TYPE /dev/sdc1
+ 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.7' '--text=<b>Selected Partition</b>
You have chosen to install on /dev/sdc1     ext3                 '
+ umount /dev/sdc1
umount: /dev/sdc1: not mounted
++ cut -c9-10
++ echo /dev/sdc1
+ Grub_Part=1
+ let 'Grub_Part = 1 - 1 '
+ write_label
++ e2label /dev/sdc1
+ LABEL_Exist=KINGSTON
+ '[' 0 '!=' 0 ']'
+ get_uuid
++ blkid -c /dev/null -o value -s UUID /dev/sdc1
+ PART_UUID=5e279028-799c-4e93-9bc3-e8b474125e91
+ '[' 5e279028-799c-4e93-9bc3-e8b474125e91 == '' ']'
+ get_job
++ zenity --window-icon=/usr/share/icons/pclosusb.png --list '--title=    PCLinuxOS LiveUSB Creator 0.9.7    ' '--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=272 --width=350 --hide-column=2 --column Select --column ' Option ' --column '            - Job Type -        ' FALSE 1 'Create a new Live OS on an USB stick.
This option deletes all existing files on the selected partition.' 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.7    ' '--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=272 --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
+ mount_part
+ pmount /dev/sdc1 /media/PCLOS_USB_STICK.4039
+ '[' 0 '!=' 0 ']'
+ get_name
+ '[' '' = '' ']'
++ zenity --window-icon=/usr/share/icons/pclosusb.png --list --height=387 --width=350 '--title=  PCLinuxOS LiveUSB Creator 0.9.7' '--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=Xfce64
+ '[' 0 '!=' 0 ']'
+ '[' Xfce64 = '' ']'
+ '[' -d /media/PCLOS_USB_STICK.4039/Xfce64_0 ']'
+ '[' Xfce64 = '' ']'
+ '[' no '!=' yes ']'
+ get_iso
+ zenity --window-icon=/usr/share/icons/pclosusb.png --info --timeout 5 --title 'PCLinuxOS LiveUSB Creator 0.9.7 ' '--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.7   '
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
+ ISO_FILE=
+ '[' '' = '' ']'
+ abort
+ pumount /dev/sdc1
+ kill 9389
+ exit
[john@localhost Downloads]$
« Last Edit: January 03, 2012, 09:34:02 PM by johnmart »
Acer Aspire, Intel core2 2.20GHz, ‎Graphics nVidia ‎G98M [GeForce G 105M], 2gb ram, Wireless Intel Link 5100

Why, any 5 year old child could understand this.
Somebody bring me a 5 year old.
Groucho

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11064
  • MLUs Forever!
Re: [ Testing Completed ] LiveUSB Testers
« Reply #61 on: January 04, 2012, 04:18:49 AM »
Thank you johnmart for getting the whole thing posted.

I am not at all sure what is happening there, so hopefully we can get opinion on the matter.

It seems likely to me that what you have is some form of permission event.
The script appears to be killed by something not determined within the script.

I have never come across this before ......  but I do not use Xfce, so it may be something connected with the DE in use ......
Quote
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.

Can you please run the script again, in the manner I described above ..... by opening a terminal and going to root, prior to launching the script?

I suggest opening a terminal at  /home/john .....  then su to root .......  the put the full path of the script into the terminal to launch it.

I would like to compare the two outputs.

Thanks for your continued testing  ;)

« Last Edit: January 04, 2012, 04:20:58 AM by Just18 »
MLUs rule the roost!

Linux XPS 3.4.48-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 johnmart

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1095
  • Make Love Not War
Re: [ Testing Completed ] LiveUSB Testers
« Reply #62 on: January 04, 2012, 05:56:21 PM »
ok. I'll get back to you in an hour.
Acer Aspire, Intel core2 2.20GHz, ‎Graphics nVidia ‎G98M [GeForce G 105M], 2gb ram, Wireless Intel Link 5100

Why, any 5 year old child could understand this.
Somebody bring me a 5 year old.
Groucho

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11064
  • MLUs Forever!
Re: [ Testing Completed ] LiveUSB Testers
« Reply #63 on: January 04, 2012, 06:50:03 PM »
ok. I'll get back to you in an hour.

Thank you 
MLUs rule the roost!

Linux XPS 3.4.48-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 johnmart

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1095
  • Make Love Not War
Re: [ Testing Completed ] LiveUSB Testers
« Reply #64 on: January 04, 2012, 08:25:34 PM »
I may have forgotten to mention that I am on 64bit partition running KDE.

I followed your procedure & got a successful install.  ;D
Here's my beginning after I entered the complete path to the script.
I suppose installing from the PC menu should keep this from happening.  ;D
Code: [Select]
[john@localhost ~]$ su
Password:
[root@localhost ~]# cd /home/john
[root@localhost john]# sh lusbc_0.9.7.sh
sh: lusbc_0.9.7.sh: No such file or directory
[root@localhost john]# sh /Downloads/lusbc_0.9.7.sh
sh: /Downloads/lusbc_0.9.7.sh: No such file or directory
[root@localhost john]# sh /home/john/Downloads/lusbc_0.9.7.sh
+ run_as_root
+++ dirname /home/john/Downloads/lusbc_0.9.7.sh
++ cd /home/john/Downloads



Acer Aspire, Intel core2 2.20GHz, ‎Graphics nVidia ‎G98M [GeForce G 105M], 2gb ram, Wireless Intel Link 5100

Why, any 5 year old child could understand this.
Somebody bring me a 5 year old.
Groucho

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11064
  • MLUs Forever!
Re: [ Testing Completed ] LiveUSB Testers
« Reply #65 on: January 05, 2012, 04:53:15 AM »
Thanks for reporting back johnmart ;)

Seems all is OK  :D

The script should work equally well on  32 & 64 bit .....  or at least does here.

regards.
MLUs rule the roost!

Linux XPS 3.4.48-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