LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 09-21-2021, 03:17 PM   #1
mknix
Member
 
Registered: Aug 2021
Distribution: Slackware64 -current
Posts: 60

Rep: Reputation: Disabled
Slack-live halts at grub prompt


Hello, I tried two different isos, slackware64-live-current and slackware64-live-xfce-current, but the same thing happens on both.

I used the 'dd' command to create a live usb but when I tried booting from it I get this:

Code:
Minimal BASH-line editing is supported. For the first word, TAB lists possible command completions. 
Anywhere else TAB lists possible device or file completions.

grub>
Then hitting TAB gives a list of possible commands, from a-t, but nowhere do I see any option to boot live.

So where to from here? I should stress that I just want to run it live. I'm not ready to attempt an install yet as I have to transfer all my files to another drive and that will take some time. TIA.


EDIT: Forgot to say that it never got to the point described here,

"This is a demonstration environment, with the purpose of getting you acquainted
with Slackware, remember? Therefore you will first see all these intimidating
kernel messages scrolling across the screen while booting the OS.
Then you need to login manually."
https://download.liveslak.org/

It never displayed "messages scrolling across the screen". It simply displayed the above and stopped right there.

Last edited by mknix; 09-21-2021 at 06:14 PM.
 
Old 09-22-2021, 05:39 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
A little more information would be helpful.

What type of system do you have? A BIOS system, or UEFI?

How did you select where to boot from?

Could you post the exact dd command you used to create the boot stick.

I would advise you to have a read through this link -->https://docs.slackware.com/slackware:liveslak

The parts on BIOS vs UEFI. I have cerated bootable dvd's using the script iso2usb.sh. There are very useful examples of how to create a live USB stick, or dvd. Give that a try and see what happens.

It appears your system got you to a grub prompt. I'm not sure why, do you have another linux using grub installed on your system?
 
Old 09-22-2021, 05:40 PM   #3
mknix
Member
 
Registered: Aug 2021
Distribution: Slackware64 -current
Posts: 60

Original Poster
Rep: Reputation: Disabled
Thanks for the reply.

Quote:
Originally Posted by camorri View Post
A little more information would be helpful.

What type of system do you have? A BIOS system, or UEFI?
UEFI

Quote:
How did you select where to boot from?
On this system either Esc or F2.

Quote:
Could you post the exact dd command you used to create the boot stick.
Code:
dd if=/..path to../slackware64-live-xfce-current.iso of=/dev/sdb

1433600+0 records in
1433600+0 records out
734003200 bytes (734 MB, 700 MiB) copied, 139.507 s, 5.3 MB/s
Quote:
I would advise you to have a read through this link -->https://docs.slackware.com/slackware:liveslak

The parts on BIOS vs UEFI. I have cerated bootable dvd's using the script iso2usb.sh. There are very useful examples of how to create a live USB stick, or dvd. Give that a try and see what happens.
I'm a total newbie when it comes to compiling/running scripts.

Quote:
It appears your system got you to a grub prompt. I'm not sure why, do you have another linux using grub installed on your system?
Yes, but I've run several other distros from a live usb and never had this problem.

Thanks for your help.
 
Old 09-22-2021, 06:31 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Quote:
Create a USB version of Slackware Live, where the USB stick is known to the system as '/dev/sdX. Note - the value for the output parameter is the device name of the stick and not one of its partitions!

# ./iso2usb.sh -i ~/download/slackware64-live-14.2.iso -o /dev/sdX
This is an example of writing the USB stick with the script.

The # sign indicates you need root privliges. If you need more help that this, explain what you do not understand.
 
Old 09-23-2021, 08:02 AM   #5
mknix
Member
 
Registered: Aug 2021
Distribution: Slackware64 -current
Posts: 60

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
This is an example of writing the USB stick with the script.

The # sign indicates you need root privliges. If you need more help that this, explain what you do not understand.
So I made a text file with

Code:
./iso2usb.sh -i ~home/..path to../slackware64-live-xfce-current.iso -o /dev/sdb
and saved it as sc.sh

Then when I open a terminal as root, same directory, and type sc.sh I get the error, command not found

I also tried replacing the '~' with a '/' but same result.


Thanks for your patience.
 
Old 09-23-2021, 08:38 AM   #6
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Have you got the file iso2usb.sh ? There is no need to put the command inside another shell script.

The contents ( the text ) that goes inside the file iso2usb.sh is found at -->http://bear.alienbase.nl/cgit/liveslak/tree/iso2usb.sh

Go to that link, you will see the text of the file. To create the file locally, mark all the text, and copy it.

On your system, open your favorite plain text editor ( I use nano ) with a command line this: nano iso2usb.sh .
Now paste the copied text into this new file. Save it to you disk. It will not be executable. To change that, use the chmod command. It will look like this : shmod +x iso2usb.sh and then list the command, it should be executable.

It will look like this :

Quote:
-rwxr-xr-x 1 cliff users 32K Sep 23 09:26 iso2usb.sh*
Notice the x on the left.

Now you run the command as indicated in the previous post. Do not put the the iso2usb.sh inside another shell.
 
1 members found this post helpful.
Old 09-24-2021, 12:12 PM   #7
mknix
Member
 
Registered: Aug 2021
Distribution: Slackware64 -current
Posts: 60

Original Poster
Rep: Reputation: Disabled
Ah ok, I misunderstood. I was thinking iso2usb was another Unix program like dd or rsync. Will try that, thanks.
 
Old 09-25-2021, 04:34 AM   #8
mknix
Member
 
Registered: Aug 2021
Distribution: Slackware64 -current
Posts: 60

Original Poster
Rep: Reputation: Disabled
So after I used the chmod command it looks like this:

Quote:
-rwx--x--x 1 ... iso2usb.sh
Which is different to yours but when I right click > Properties > Permissions the box next to Allow this file to run as a program is checked so it is showing as executable.

That's good I thought so I carried on. Both these files are on the desktop. But when I open a root terminal on the desktop and run it this happens:

Code:
 # ./iso2usb.sh -i ~home/user/Desktop/slackware64-live-xfce-current.iso -o /dev/sdb
-bash: ./iso2usb.sh: No such file or directory


No such file or directory? But the list command says they're both there:

Code:
ls
 firefox.desktop   iso2usb.sh  'New File'  'New Filef'   sc.sh   slackware64-live-xfce-current.iso
 
Old 09-25-2021, 06:37 AM   #9
VicFer
Member
 
Registered: Sep 2012
Location: Italy
Distribution: Slackware
Posts: 52

Rep: Reputation: 13
Quote:
Originally Posted by mknix View Post
So after I used the chmod command it looks like this:



Which is different to yours but when I right click > Properties > Permissions the box next to Allow this file to run as a program is checked so it is showing as executable.

That's good I thought so I carried on. Both these files are on the desktop. But when I open a root terminal on the desktop and run it this happens:

Code:
 # ./iso2usb.sh -i ~home/user/Desktop/slackware64-live-xfce-current.iso -o /dev/sdb
-bash: ./iso2usb.sh: No such file or directory


No such file or directory? But the list command says they're both there:

Code:
ls
 firefox.desktop   iso2usb.sh  'New File'  'New Filef'   sc.sh   slackware64-live-xfce-current.iso
I think the path to the iso file is wrong and the "No such file or directory" comes from the script. Try with the absolute path to the .iso

Bye
 
1 members found this post helpful.
Old 09-25-2021, 08:59 AM   #10
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,348

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
The path to iso is wrong, either /home/user/Desktop/… or ~/Desktop/….
 
1 members found this post helpful.
Old 09-26-2021, 08:29 AM   #11
mknix
Member
 
Registered: Aug 2021
Distribution: Slackware64 -current
Posts: 60

Original Poster
Rep: Reputation: Disabled
Thanks but neither worked:

Code:
 # ./iso2usb.sh -i /home/user/Desktop/slackware64-live-xfce-current.iso -o /dev/sdb
-bash: ./iso2usb.sh: No such file or directory

# ./iso2usb.sh -i ~/Desktop/slackware64-live-xfce-current.iso -o /dev/sdb
-bash: ./iso2usb.sh: No such file or directory

Then I got an idea and tried this:

Code:
# cd /home/user/Desktop/

# ./iso2usb.sh -i /home/user/Desktop/slackware64-live-xfce-current.iso -o /dev/sdb
And this time it worked:

Code:
#
# We are going to format this device (erase all data) - '/dev/sdb':


...


The operation has completed successfully.
I can't see why that should make a difference. I was already in the Desktop directory before I typed cd - I had first right clicked on desktop > open terminal here, and of course 'Desktop' was in the prompt - but for some reason it made all the difference. Perhaps someone can shed some light on that.

So then a reboot took me straight into Slack-live Xfce. Many thanks to all. What a helpful forum this is.

Now I wonder why 'dd' wouldn't work.
 
Old 10-08-2021, 04:51 PM   #12
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 765

Rep: Reputation: 864Reputation: 864Reputation: 864Reputation: 864Reputation: 864Reputation: 864Reputation: 864
Quote:
Originally Posted by mknix View Post
Now I wonder why 'dd' wouldn't work.
I've found that slackware-live isos that are copied to a flash drive using 'dd' or 'cp' do not boot properly on my uefi laptop as well (legacy booting a disk made this way is still fine).

It has to do with the $prefix and/or $root variables in grub not pointing to the correct location for the grub menu, so you get dropped down to the console. You can get it to boot if you navigate around in the grub console to where the grub.cfg files are and either start it manually or re-define those variables and exit, at which point it will load the menu. I wouldn't recommend this though.

When you use the iso2usb.sh script, it repartitions the disk and the grub setup works properly with uefi booting. For the record this started happening after a liveslak commit in late 2019 and I emailed Eric about the problem when I caught it sometime last year. There are ways to make it work if you want to edit the grub configs but the better/easier way is to just use the iso2usb.sh script. Plus you get persistence when you set it up that way.
 
2 members found this post helpful.
Old 10-16-2021, 12:03 PM   #13
mknix
Member
 
Registered: Aug 2021
Distribution: Slackware64 -current
Posts: 60

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 0XBF View Post
I've found that slackware-live isos that are copied to a flash drive using 'dd' or 'cp' do not boot properly on my uefi laptop as well (legacy booting a disk made this way is still fine).

It has to do with the $prefix and/or $root variables in grub not pointing to the correct location for the grub menu, so you get dropped down to the console. You can get it to boot if you navigate around in the grub console to where the grub.cfg files are and either start it manually or re-define those variables and exit, at which point it will load the menu. I wouldn't recommend this though.

When you use the iso2usb.sh script, it repartitions the disk and the grub setup works properly with uefi booting. For the record this started happening after a liveslak commit in late 2019 and I emailed Eric about the problem when I caught it sometime last year. There are ways to make it work if you want to edit the grub configs but the better/easier way is to just use the iso2usb.sh script. Plus you get persistence when you set it up that way.
That's nice to know, thanks.
 
  


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
[SOLVED] sbopkg halts with prompt in batch mode FlinchX Slackware 7 07-12-2020 11:19 AM
Linux live and Gparted halts with a black screen. Xunil137 Linux - Newbie 2 12-16-2019 03:54 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Slack 12.1 spontaneously halts during installation xdunlapx Slackware 4 05-09-2011 04:22 AM
kernel halts, system halts, computer commits suicide stupid_guy Linux - Newbie 10 06-07-2003 05:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 04:09 PM.

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