LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-15-2015, 09:39 AM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
liloconfig not working -


I think that this is the command that brings up that lilo configure screen so make a file and install it onto the MBR. but when I type it in this is what I get. Nothing!

Code:
bash-4.2# /sbin/liloconfig
bash-4.2#
It is there, I am running a tri boot system and I changed the settings in all of them. because I screwed it up the first time I had to instal Slackware onto a different partition to get my first install back again by changing the kernel out, and setting the lilo from that install to boot all three installs of linux.

I am wiping that install out by installing a different Linux into it, Vector Linux, and my Slackware I want it to be the command of all three of them. Insuring that in fact that it is this install that has full command of lilo before I go installing another distro onto my box, and while depending on the lilo off of the Slackware install only for it to fail.

I've read I need to have the package installed so I tried to install it.

Code:
slackpkg install lilo-24.0-x86_64-4.txz
Code:
bash-4.2# slackpkg install lilo-24.0-x86_64-4.txz

The package list is missing.
Before you install|upgrade|reinstall anything you need to run:

	# slackpkg update
so I updated it then did this
Code:
bash-4.2# slackpkg reinstall lilo

Looking for lilo in package list. Please wait... DONE

lilo-24.0-x86_64-4.txz

Total package(s): 1

Do you wish to reinstall selected packages (Y/n)? y

Package: lilo-24.0-x86_64-4.txz
--2015-07-15 09:35:28--  ftp://carroll.aset.psu.edu/pub/linux/distributions/slackware/slackware64-14.1/slackware64/a/lilo-24.0-x86_64-4.txz
           => ‘/var/cache/packages/./slackware64/a/lilo-24.0-x86_64-4.txz’
Resolving carroll.aset.psu.edu (carroll.aset.psu.edu)... 128.118.2.96, 2610:8:4000:20:128:118:2:96
Connecting to carroll.aset.psu.edu (carroll.aset.psu.edu)|128.118.2.96|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/linux/distributions/slackware/slackware64-14.1/slackware64/a ... done.
==> SIZE lilo-24.0-x86_64-4.txz ... 426728
==> PASV ... done.    ==> RETR lilo-24.0-x86_64-4.txz ... done.
Length: 426728 (417K) (unauthoritative)

100%[======================================>] 426,728      705KB/s   in 0.6s   

2015-07-15 09:35:29 (705 KB/s) - ‘/var/cache/packages/./slackware64/a/lilo-24.0-x86_64-4.txz’ saved [426728]

--2015-07-15 09:35:29--  ftp://carroll.aset.psu.edu/pub/linux/distributions/slackware/slackware64-14.1/slackware64/a/lilo-24.0-x86_64-4.txz.asc
           => ‘/var/cache/packages/./slackware64/a/lilo-24.0-x86_64-4.txz.asc’
Resolving carroll.aset.psu.edu (carroll.aset.psu.edu)... 128.118.2.96, 2610:8:4000:20:128:118:2:96
Connecting to carroll.aset.psu.edu (carroll.aset.psu.edu)|128.118.2.96|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/linux/distributions/slackware/slackware64-14.1/slackware64/a ... done.
==> SIZE lilo-24.0-x86_64-4.txz.asc ... 198
==> PASV ... done.    ==> RETR lilo-24.0-x86_64-4.txz.asc ... done.
Length: 198 (unauthoritative)

100%[======================================>] 198         --.-K/s   in 0.007s  

2015-07-15 09:35:30 (25.8 KB/s) - ‘/var/cache/packages/./slackware64/a/lilo-24.0-x86_64-4.txz.asc’ saved [198]

	Package lilo-24.0-x86_64-4.txz is already in cache - not downloading
	Installing lilo-24.0-x86_64-4...
Verifying package lilo-24.0-x86_64-4.txz.
Installing package lilo-24.0-x86_64-4.txz:
PACKAGE DESCRIPTION:
# lilo (Linux Loader)
#
# Generic Boot Loader for Linux ('LInux LOader') by Werner Almesberger.
# LILO boots Linux from your hard drive. It can also boot other
# operating systems such as MS-DOS and OS/2, and can even boot DOS from
# the second hard drive. LILO comes with utilities and documentation
# that make it easier to install, such as 'liloconfig' and 'QuickStart'.
# NOTE: Installing boot loaders is inherently dangerous. Be sure to have
# some means to boot your system from a different media if you install
# LILO on your hard disk.
#
Package lilo-24.0-x86_64-4.txz installed.


Searching for NEW configuration files
		No .new files found.

bash-4.2# liloconfig
bash-4.2#
still nothing liloconfig is not coming up.

so now I am stuck not knowing what to do.
 
Old 07-15-2015, 11:02 AM   #2
McSlack
Member
 
Registered: Jul 2006
Location: Grand Rapids, MI
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
/sbin/liloconfig is just a shell script. you can do: cat /sbin/liloconfig it is just a text file. You can also manually edit /etc/lilo.conf and add your other boot partitions. Then type /sbin/lilo to install them into your MBR. When you reboot you will have all your boot choices displayed just the way you entered them in the /etc/lilo.conf file.
 
Old 07-15-2015, 04:17 PM   #3
Youmu
Member
 
Registered: Oct 2014
Distribution: Slackware 14.1 64x
Posts: 53

Rep: Reputation: Disabled
Why not GRUB2? It's shipped with Slackware but not installing by default.
 
Old 07-15-2015, 04:32 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
This is very weird, because the script liloconfig should be installed in /sbin when you install lilo.

Please provide the output of following commands, typed as root:
Code:
ls -l /sbin/liloconfig
echo $PATH
df -h
lsblk -o name,model,size,fstype,mountpoint
Be careful not to put spaces between the options in the last command, only commas.

Last edited by Didier Spaier; 07-15-2015 at 04:33 PM.
 
Old 07-15-2015, 05:50 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
then what is that command that brings up that little text window that is in the install, so that you can do a configure lilo and install it too ..?
 
Old 07-15-2015, 05:55 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
This is a command that translates to "sh /sbin/liloconfig".

No, could you please post the information I requested ?
 
Old 07-16-2015, 07:28 AM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Didier Spaier View Post
This is a command that translates to "sh /sbin/liloconfig".

No, could you please post the information I requested ?

is this what you're looking for?

Code:
userx@slacker:~$ ls -l /sbin/liloconfig
-rwxr-xr-x 1 root root 41298 Oct 27  2013 /sbin/liloconfig*
userx@slacker:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/java/bin:/usr/lib64/java/jre/bin:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/share/texmf/bin
userx@slacker:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2        50G   24G   24G  50% /
/dev/sda5       383G  302G   62G  84% /home
/dev/sdb1       932G  465G  467G  50% /media/ntfs/data0
/dev/sda6        29G  7.0G   21G  26% /mnt/linux2
/dev/sda8        30G  5.1G   23G  19% /mnt/linux3
tmpfs           1.9G     0  1.9G   0% /dev/shm
userx@slacker:~$ lsblk -o name,model,size,fstype,mountpoint
NAME        MODEL              SIZE FSTYPE MOUNTPOINT
sda         TOSHIBA MQ01ABD0 698.7G        
├─sda1                         1.3G swap   [SWAP]
├─sda2                        50.7G ext4   /
├─sda3                           1K        
├─sda5                       388.4G ext4   /home
├─sda6                        29.4G ext4   /mnt/linux2
├─sda7                          98G ext4   
├─sda8                        30.1G ext4   /mnt/linux3
└─sda9                       100.9G ext4   
sdb         TOSHIBA MQ01ABD1 931.5G        
└─sdb1                       931.5G ntfs   /media/ntfs/data0
mmcblk0                       14.9G        
├─mmcblk0p1                   13.9G ext4   
└─mmcblk0p2
is this what you're looking for?
 
Old 07-16-2015, 07:50 AM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
is this what you're looking for?
Yes thanks, but I expected the ouput of "echo $PATH" typed as root. So please type "su" then redo it.

Other than that I see nothing strange and your liloconfig has the right permissions and the right size and date, so I am puzzled.

After having typed "su", could you please type /sbin/liloconfig again? (give the full path not "liloconfig", just in case your $PATH would be wrong).
 
Old 07-17-2015, 07:04 AM   #9
oldtechaa
Member
 
Registered: May 2015
Location: US
Distribution: Fedora
Posts: 364

Rep: Reputation: 83
Were you logged in as root when you tried the script? To my knowledge, any files in sbin only have root permission(for good reason: system binaries).
 
Old 07-17-2015, 08:27 AM   #10
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by oldtechaa View Post
Were you logged in as root when you tried the script? To my knowledge, any files in sbin only have root permission(for good reason: system binaries).
I don't remember I am not in Slack right now I am in Void Linux so I cannot check to see if I did a oops. as I bounch in and out of root log in so sometimes when in user I even forget that I am not root. Having already gotten my brain into su mode, it just takes it for granted that I do not need to type su or sudo when trying to get somethings done.

The real question now is what is the name of that command line program that is in Slack that brings up the promt inside of the terminal eluminator to create a new lilo file, with the selection of expert mode etc andf install it called?
 
Old 07-17-2015, 08:36 AM   #11
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Didier Spaier View Post
Yes thanks, but I expected the ouput of "echo $PATH" typed as root. So please type "su" then redo it.

Other than that I see nothing strange and your liloconfig has the right permissions and the right size and date, so I am puzzled.

After having typed "su", could you please type /sbin/liloconfig again? (give the full path not "liloconfig", just in case your $PATH would be wrong).
please reefer to my post above this one...
 
Old 07-17-2015, 09:20 AM   #12
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
The real question now is what is the name of that command line program that is in Slack that brings up the promt inside of the terminal eluminator to create a new lilo file, with the selection of expert mode etc andf install it called?
I already answered in post #6.

To elaborate: /sbin/liloconfig is a shell script that can be executed either running "sh /sbin/liloconfig" (works even if the file is not executable), "/sbin/liloconfig" (works because the file has a shebang in the first line, that is "#!/bin/sh", but only if the file is executable) or simply "liloconfig" (only if $PATH includes /sbin, hence my question. Please note that $PATH is not the same for root or regular users).

But nothing will work if the user is not "root" so you do need to type "su" before attempting to run this script.

By the way this is standard for all Linux systems, so maybe your time would be better invested learning the basics (for instance see http://docs.slackware.com for a starter) than running several distributions. But that's only my humble opinion, of course.

Last edited by Didier Spaier; 07-17-2015 at 09:22 AM.
 
Old 07-17-2015, 09:58 AM   #13
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Didier Spaier View Post
I already answered in post #6.

To elaborate: /sbin/liloconfig is a shell script that can be executed either running "sh /sbin/liloconfig" (works even if the file is not executable), "/sbin/liloconfig" (works because the file has a shebang in the first line, that is "#!/bin/sh", but only if the file is executable) or simply "liloconfig" (only if $PATH includes /sbin, hence my question. Please note that $PATH is not the same for root or regular users).

But nothing will work if the user is not "root" so you do need to type "su" before attempting to run this script.

By the way this is standard for all Linux systems, so maybe your time would be better invested learning the basics (for instance see http://docs.slackware.com for a starter) than running several distributions. But that's only my humble opinion, of course.
O' Tay thank you.. that is prob what really happened just a brain fart I prob was in user login thinking I was in root login. I'm not in Slack right now, Void so I can't validate my theory
peace
 
  


Reply

Tags
lilo, liloconf



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] After reboot, liloconfig not working and lilo.conf missing flokofcgulls Slackware 10 05-11-2013 10:17 AM
liloconfig error dr.s Slackware 1 08-17-2012 06:13 PM
liloconfig fix jong357 Slackware 3 01-06-2010 08:47 AM
cannot run liloconfig dohpaz Slackware 10 01-20-2008 11:26 AM
liloconfig esael Slackware 3 08-18-2002 11:48 PM

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

All times are GMT -5. The time now is 07:12 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