LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-02-2017, 02:53 PM   #1
gaddardumbuk
LQ Newbie
 
Registered: Sep 2017
Posts: 15

Rep: Reputation: Disabled
Slacklive USB stick creation and ASUS T100TA UEFI boot problem


I'd like to say hi to everybody, I'm a bit confused where to sent this question (in Slackware Section or Newbie Section) as this is my first post in here and I consider myself as a newbie, please excuse me if I've made a mistake.

I've got a ASUS T100TA computer (which hasn't got a Legacy/CSM support in its BIOS) and I'd like to use Slackware with it without installing the distro to computer. After reading the whole documentation on www.slackware.com I've found AlienBob's blog (God bless him) and downloaded the 64bit XFCE Slacklive ISO from the mirrors shown in the following link:

https://alien.slackbook.org/blog/sla...ginal-article/

I'm aware of AlienBob's through and great explanation for how to prepare live USB stick by using windows given in

https://alien.slackbook.org/blog/how...#comment-32503
but I got lost at Step 1 probably because of my newbiness.

Upon further research I've found Ilgar's note in the following message:

https://www.linuxquestions.org/quest...fi-4175534165/

by copying 64bit Slacklive ISO to a Sandisk 16GB USB by using rufus 2.16.1170 using following parameters:
Device-> G:[16GB]
Partition scheme -> MBR partition scheme for BIOS or UEFI
File System -> Fat32
Cluster Size -> 4096

and performing what Ilgar has written on the 4th paragraph of his note I have created a USB stick.

Also fast boot option have been turned off in Windows there is no Bitlocker encryption present any of the drives present on the computer.

By turning off the secure boot option in BIOS and and turning on EHCI for USB I've faced an interface having very small fonts that are unreadable (I guess it's grub interface) and by trial and error I was able to boot the USB and login in the system as user 'live' which I've used the system for past 2 weeks without problems.

Due to power shortage computer turned off without warning and I guess the files on USB got corrupted. I was unable to boot Slackware with the USB again. By using the same procedures for creating a bootable USB I've created the live USB once again but now I wasn't able to boot Slackware without seeing the grub interface computer directly starts to boot for windows.

I think there something fishy is happening related with the bootloader because of my illegal approach. For control purposes I've tried ubuntu's live USB it worked fine with the grub but unforunately I hated ubuntu.

If anyone could inform me about how to create a live USB stick for Slackware for ASUST100TA without using AlienBob's procedure assuming having a windows only PC,a USB stick and ISO's for both 64 and 32 bit distributions of Slacklive and Ubuntu 16.04 I'll be really glad.

I'd like to thank everybody for their patience for reading up to this point.

Best regards
 
Old 09-04-2017, 04:23 AM   #2
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 567

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
Hi and welcome to LQ,

Yes, maybe you would have more help if this post was in the Slackware forum. Anyway, I am wondering what is difficult in Alien Bob's instructions.

Look, I will advise you create the USB with the iso2usb.sh itself. Boot into the Ubuntu, mount the drive which contains the Slackware Live ISO and use the script: http://bear.alienbase.nl/cgit/liveslak/tree/iso2usb.sh. Just paste the source in a script on your filesystem and make it executable. I guess on Ubuntu you'll have to run it with root privileges.
Code:
> chmod +x iso2usb.sh
> sudo ./iso2usb.sh -i PATH_TO_ISO -o /dev/sdX

e.g.
> sudo ./iso2usb.sh -i /media/hard_drive1/Software/slackware64-live-current.iso -o /dev/sdc
As example I have used /dev/sdc as the USB device. Just replace the paths for your system and the device for your targeted USB. If you are booting the Ubuntu from a USB as well, just be carefull you don't overwrite the Ubuntu USB device. You can check the devices using the lsblk command.

All the best.

Last edited by aragorn2101; 09-04-2017 at 04:25 AM.
 
1 members found this post helpful.
Old 09-04-2017, 09:43 AM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
go back and check your bios settings, make sure secure boot is still off and usb settings are still correct. Make sure fastboot in windows is turned off

Quote:
but I got lost at Step 1 probably because of my newbiness.
where at in step 1 do you get lost? This method of creating usb is for perisitance so changes to you slack usb will be saved.

Last edited by colorpurple21859; 09-04-2017 at 09:46 AM.
 
1 members found this post helpful.
Old 09-04-2017, 02:50 PM   #4
gaddardumbuk
LQ Newbie
 
Registered: Sep 2017
Posts: 15

Original Poster
Rep: Reputation: Disabled
I'd like thank you for all of your kind replies, I'll try aragorn2101's solution right now and report results here. I've entered into BIOS setup after commencing a restart command in windows specifically to control the parameters that colorpurple21859 has mentioned instead of wait for the machine to boot but unforunately it still boots to windows. To be honest I'm a bit hesitant to use the EasyBCD program because still I don't clearly understand what it really does and I couldn't backup the files in the computer. In other words I cannot afford to mess things up. Instead messing something up I decided to consult the ones who knows about this stuff I'll inform both of you and any future readers of this thread about the results for future reference.

Best regards
 
Old 09-04-2017, 08:10 PM   #5
gaddardumbuk
LQ Newbie
 
Registered: Sep 2017
Posts: 15

Original Poster
Rep: Reputation: Disabled
Ok I have created 3 FAT32 partitions in USB by using BOOTICE v1.3.3.2. Then I've copied all of the files in the ubuntu's iso file to the first partition of usb by using ordinary copy-paste commands in windows. Also I've copied iso2usb.sh text from the given link to an ordinary txt file. I've booted into ubuntu. USB is seen by computer as /dev/sdb having partitions sdb1, sdb2 and sdb3. Automatically those partitions have been mounted to /cdrom (that's partition that I've copied ubuntu iso files and iso2usb.txt file), /media/ubuntu/SLACK (that will be the slacklive's partition) and /media/ubuntu/DATA ( created to be used just in case). First by using "less iso2usb.txt > iso2usb.sh" I've formed the shell script file then moved it to my /home/ubuntu directory. Adjust the permissions as stated before (and controlled them by using "ls -hl" command). While Slacklive's iso is on sdb1 (mounted as /cdrom) partition of the USB I've used "sudo ./iso2usb.sh -i /cdrom/Slacklive64.iso -o /dev/sdb2" while I was in my home directory /home/ubuntu. I've got an error message I guess, shell warned me that there is "no such file or directory is present" and writes "Hangup" the line under the error message then returns normal with blinking cursor. I've tried "sudo ./iso2usb.sh -i /cdrom/Slacklive64.iso -o /dev/sdb" got the same error messages. I also tried copying both shell script and iso into the third partion (sdb3 - mounted as /media/ubuntu/DATA). Then I figured that permission of the iso2usb.sh (originally -rwxr-xr-x in /home/ubuntu directory) is -rw-r--r-- after copying into the sdb3 and I couldn't change them by using "sudo chmod +x iso2usb.sh" or "chmod +x iso2usb.sh". So I was not able to issue the shell script command in the third partion of the USB. Also for control purposes I tried to read the shell script and find out that the "extlinux" which is a mentioned required tool in the script that is not present on the ubuntu (I've looked it up by using "find","whereis" and "apropos" commands). I'm not sure whether this is the cause of the problem or not. Still trying to figure out general permissions,/etc/passwd file and fstab file to understand whether something fishy is going on or not related with mounting options and user-group interaction. If I found something out I'll let you know .
 
Old 09-04-2017, 08:34 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Quote:
./iso2usb.sh -i /cdrom/Slacklive64.iso -o /dev/sdb2"
you can't do it that way you have to have two separate usb keys. one that has the ubuntu with the script and slack iso on it and a second one that slackware will be installed to.
What the script does is format a whole usb key into 3 partitions:an efi partition, a grub-bios partition, and a ext4 partition, then put the files from the slack iso where they belong on the usb. if the ubuntu is on sdb1 then it would be something like: ./iso2usb.sh -i /cdrom/Slacklive64.iso -o /dev/sdc"

Last edited by colorpurple21859; 09-04-2017 at 08:40 PM.
 
Old 09-05-2017, 11:32 AM   #7
gaddardumbuk
LQ Newbie
 
Registered: Sep 2017
Posts: 15

Original Poster
Rep: Reputation: Disabled
Prepared two usb sticks as stated, ubuntu and misc. files on sdc1 mounted as /cdrom and empty usb on sdd. By commencing sudo ./iso2usb -i /cdrom/Slack64.iso -o /dev/sdd ı got the following message:
sudo:unable to execute ./iso2usb.sh: No such file or directory

Permissions of iso2usb.sh is 755. Also file iso2usb.sh outputs following message:
iso2usb.sh: Bourne-Again shell script, Ascii text executable, with CRFL line terminator

Issuing same shell script command outputs the following message:
bash: ./iso2usb.sh: /bin/bashM: bad interpreter: No such file or directory
Is there something wrong with the script file?
 
Old 09-05-2017, 12:33 PM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
how was the file downloaded? are the lines in the file numbered out to the left?
 
1 members found this post helpful.
Old 09-05-2017, 01:13 PM   #9
gaddardumbuk
LQ Newbie
 
Registered: Sep 2017
Posts: 15

Original Poster
Rep: Reputation: Disabled
I've copied the contents of by highlighting the whole code copying and pasting into a file in Notepad++ and save it as a bash-script file. Lines aren't numbered as seen on the web page. I've got "#" signs only in the beginning of various lines including the first line of the script. Also I've tried to save the content of the page with right click by clickin on the blue directory link on the upper left corner of the web page, this time I got html code with the parts of the original script in it.

Last edited by gaddardumbuk; 09-05-2017 at 01:17 PM.
 
Old 09-05-2017, 01:48 PM   #10
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
make sure your in the same directory that the iso2usb.sh file is in. could also try sudo sh iso2usb -i /cdrom/Slack64.iso -o /dev/sdd
 
1 members found this post helpful.
Old 09-05-2017, 02:00 PM   #11
gaddardumbuk
LQ Newbie
 
Registered: Sep 2017
Posts: 15

Original Poster
Rep: Reputation: Disabled
Ok I've sorted out the ıso2usb.sh problem. I've used the tarball "liveslak-master.tar.gz" from AlienBob to get original file instead of forming the script as previously mentioned (copy-paste etc.):

http://bear.alienbase.nl/cgit/liveslak/commit/

Commenced the ıso2usb command this ıt worked without giving any of the previously mentioned errors but this time I was informed that "extlinux" could not be found in the PATH that have been stated in the script. I've found the apt packages for ubuntu downloaded them on to Ubuntu's usb. I will try to install them. I hope it works.

Last edited by gaddardumbuk; 09-05-2017 at 02:30 PM.
 
Old 09-05-2017, 02:40 PM   #12
gaddardumbuk
LQ Newbie
 
Registered: Sep 2017
Posts: 15

Original Poster
Rep: Reputation: Disabled
I've successfully installed "extlinux" from the related ubuntu package by using dpkg -i packagename.deb command. Commenced the iso2usb command, get a warning that all data will be deleted on the USB then gives partition and sector info wait for me to hit enter. After hitting enter I guess it copied necessary files to USB. After finishing copying get a warning because of missing "gptmbr.bin" file, informed me that USB could not be made bootable and writes out some cleaning related messages on the terminal. Of course USB does now boot, having the name "DOS" seems to be empty ın windows (magnitude of seen partition in windows is 0.97MB What is "gptmbr.bin" ??? Trying to solve this mystery now
 
Old 09-05-2017, 06:44 PM   #13
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
to fix the {missing "gptmbr.bin" file} error edit the iso2usb.sh down near the end of the script change the following:
comment out lines 714-716
change line 717 to
Code:
extlinux --install ${USBMNT}/boot/syslinux
change lines 752,753 from this
,
Code:
if [ -f /usr/share/syslinux/gptmbr.bin ]; then
  cat /usr/share/syslinux/gptmbr.bin > ${TARGET}
to this
Code:
if [ -f /usr/lib/SYSLINUX/gptmbr.bin ]; then
  cat /usr/lib/SYSLINUX/gptmbr.bin > ${TARGET}
Then run the iso2usb.sh script

Last edited by colorpurple21859; 09-05-2017 at 08:51 PM.
 
1 members found this post helpful.
Old 09-05-2017, 10:31 PM   #14
gaddardumbuk
LQ Newbie
 
Registered: Sep 2017
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thank you very much colorpurple21859 for your directions, by editing the script now I've got a usb having 3 partitions named as Boot Partition(1M), EFI Partition (100M), Slacklive Partition (14.8G). All of their partitions looks correct according to gdisk command's partition type list but in BIOS I see additional two UEFI Sandisk partitions with a disabled partition (I guess this is the BIOS partition) to the wındows boot partition. Also in the "boot override" option of the BIOS I was able to see only the two UEFI Sandisk partitions and nothing happens if I force to boot by using them. Altough I could select the "disabled" one in "boot" option where I was able select the boot order. I've selected all 4 boot options as "disabled" again nothing happens computer boots into windows by showing a windows logo instead of an ASUS logo this time. Do I have to change the type of the boot partition to another type?
 
Old 09-06-2017, 06:08 AM   #15
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
do you have secureboot in the bios turned off and fastboot turned off in windows?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux on ASUS T100ta. kaz2100 Linux - Laptop and Netbook 39 07-16-2020 02:58 AM
How Do I Make a UEFI Bootable Live USB Stick? myway_1 Linux - Software 10 01-07-2017 06:27 AM
Slint USB stick boot in UEFI mode ? xavi_slacky Slackware 3 01-13-2015 05:03 PM
Booting btrfs usb-stick via uefi-bios. ssenuta Linux - General 1 06-29-2013 09:59 PM
UEFI - is there a way to boot into a 'EFI Shell' using a usb stick/CD? nicolasdiogo Linux - Hardware 7 08-24-2011 06:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration