LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How i can make USB Booteable of Xubuntu 16.04.2 LTS i386? (https://www.linuxquestions.org/questions/linux-newbie-8/how-i-can-make-usb-booteable-of-xubuntu-16-04-2-lts-i386-4175607657/)

inukaze 06-10-2017 02:35 AM

How i can make USB Booteable of Xubuntu 16.04.2 LTS i386?
 
Hi there, i try to follow the guide : https://wiki.ubuntu.com/LiveUsbPendrivePersistent but, when i finish and try to boot i receive the message :

Code:

Missing parameter in configuration file. Keyword: path
gfxboot.c32 not a COM32R image

The most results i found is just "Press TAB, write live and hit enter" or another option. but i don't see nobody try to explain how its working. for fix it

Someone can explain me the error, and how to fix it ???

And when i try to test in QEmu with "Live" (using the TAB and writing TAB after error), in QEmu i ever get Kernel Panic. the past year, i use QEmu for Test USB, but i dont know why right now i get Kernel Panic.

=======================================================================

The method i use is the follow :

Using Pendrive 4GB

1 ) Create a primary partition "without format / clean" with 2GB ( 2048MB ) , and use the context menu, go to "Options" and active "boot" flag

2 ) Create another partition with the rest of available space

In Gparted the Pendrive is /dev/sdh

In the Terminal i use the follow commands :

Format The Partitions
Code:

su -c "mkfs.vfat -F 32 -n xubuntu /dev/sdh1" root
su -c "mkfs.ext2 -b 4096 -L casper-rw /dev/sdh2" root

Make a temp folders :
Code:

su -c "mkdir -p /tmp/usbp1" root
su -c "mkdir -p /tmp/XubuntuISO" root

Mount the first pendrive partition:
Code:

su -c "mount /dev/sdh1 /tmp/usbp1" root
Mount the ISO and go to that folder
Code:

su -c "mount xubuntu-16.04.2-desktop-i386.iso /tmp/XubuntuISO -o loop" root
cd /tmp/XubuntuISO/

Copy the mayor part of ISO Content to Pendrive :
Code:

su -c "cp -rf casper dists install pics pool preseed .disk README.diskdefines /tmp/usbp1/" root
Copy isolinux like syslinux in the first pendrive partition
Code:

su -c "cp -rf isolinux /tmp/usbp1/syslinux" root
go to the pendrive syslinux folder
Code:

cd /tmp/usbp1/syslinux
Rename the files isolinux to syslinux :
Code:

su -c "mv isolinux.cfg syslinux.cfg" root
su -c "mv isolinux.bin syslinux.bin" root

Modify the file "txt.cfg" via sed & echo for remove "/cdrom" and add persistent label and option

Code:

cat txt.cfg | sed 's/\/cdrom//g' >> /tmp/txt.cfg
su -c "rm -rf txt.cfg" root
su -c "cp -f /tmp/txt.cfg /tmp/usbp1/syslinux/txt.cfg" root
su -c "rm -rf /tmp/txt.cfg" root
sed '0,/live/s//persistent/' txt.cfg >> /tmp/txt.cfg
echo 'label persistent' >> /tmp/txt.cfg
echo '  kernel /casper/vmlinuz' >> /tmp/txt.cfg
echo '  append  file=/preseed/xubuntu.seed boot=casper persistent initrd=/casper/initrd.lz quiet splash ---' >> /tmp/txt.cfg
su -c "cp -f /tmp/txt.cfg /tmp/usbp1/syslinux/txt.cfg" root

umount the pendrive partition:
Code:

su -c "cd ; umount /tmp/usbp1" root
Install syslinux in the first partition FAT32 of Pendrive
Code:

su -c "syslinux /dev/sdh1" root

Code:

#[Alternative]# su -c "ms-sys -s /dev/sdh" root
Test via qemu :
Code:

qemu-kvm -hda /dev/sdh
Thanks for readme and sorry for my bad english :)

Alien Bob 06-10-2017 03:07 AM

You should have posted this question on a Ubuntu forum, it has nothing to do with Slackware.

inukaze 06-10-2017 05:49 AM

I am doing that under Slackware64 14.2 .

I just want to know how to fix the error on syslinux, a tool usable on any distribution.

Didier Spaier 06-10-2017 06:47 AM

Quote:

Originally Posted by inukaze (Post 5721236)
I just want to know how to fix the error on syslinux, a tool usable on any distribution.

Yes, but an Internet search with the error message as argument leads to Ubuntu threads, so that's probably an issue either with an Ubuntu component or with one steps of the specific method used, so I am rather pessimistic about your luck to find an answer here. maybe try the syslinux mailing list.

Shadow_7 06-10-2017 12:48 PM

I tend to use debootstrap for installs like that. And install grub on the stick too. Works for me for non-UEFI booting anyway.

inukaze 06-10-2017 07:04 PM

I Solved it
 
i found a way to solve it :D, not is the best method but works.

The Original syslinux.cfg content
Code:

# D-I config version 2.0
# search path for the c32 support libraries (libcom32, libutil etc.)
path
include menu.cfg
default vesamenu.c32
prompt 0
timeout 50
ui gfxboot bootlogo

i modify the syslinux.cfg and leave :
Code:

# D-I config version 2.0
# search path for the c32 support libraries (libcom32, libutil etc.)
MENU HIDDEN
include menu.cfg
default live
prompt 0
timeout 1

and the error don't appear anymore, the problem looks like in the line
Code:

ui gfxboot bootlogo
another file i modify is exithelp to :
Code:

label menu
        kernel vesamenu.c32
        config syslinux.cfg

and for the test with qemu i solved with :
Code:

qemu-kvm -hda /dev/sdh -m 512 -vga virtio -usbdevice tablet


All times are GMT -5. The time now is 05:58 PM.