LinuxQuestions.org
Help answer threads with 0 replies.
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 04-22-2010, 12:16 PM   #1
daweefolk
Member
 
Registered: Sep 2009
Distribution: raspbian
Posts: 94

Rep: Reputation: 15
trying to update lilo on my usb hdd tells me /etc/lilo.conf wasn't found


I installed slackware with lilo on the mbr of /dev/sdb2 (primary linux partition on my usb drive) and I need to go in and change lilo.conf so it gives me a rootdelay=10.
to do so i need to boot from the slackware dvd, mount my usb drive, and edit lilo.conf (done) and re-run /sbin/lilo. When I do this it tells me /etc/lilo.conf doesn't exist.
I think it's because i have /dev/sdb2 mounted to /mnt/linuxsys and /sbin/lilo is looking for lilo.conf at /etc, not /mnt/linuxsys/etc.
Is this probably right? and if so, could making a symlink somewhere help in some way?

Last edited by daweefolk; 04-22-2010 at 12:18 PM.
 
Old 04-22-2010, 12:28 PM   #2
hello.freeman
Member
 
Registered: Apr 2010
Posts: 38

Rep: Reputation: 23
Wink

Quote:
Originally Posted by daweefolk View Post
I installed slackware with lilo on the mbr of /dev/sdb2 (primary linux partition on my usb drive) and I need to go in and change lilo.conf so it gives me a rootdelay=10.
to do so i need to boot from the slackware dvd, mount my usb drive, and edit lilo.conf (done) and re-run /sbin/lilo. When I do this it tells me /etc/lilo.conf doesn't exist.
I think it's because i have /dev/sdb2 mounted to /mnt/linuxsys and /sbin/lilo is looking for lilo.conf at /etc, not /mnt/linuxsys/etc.
Is this probably right? and if so, could making a symlink somewhere help in some way?
You can use this command to install lilo :
lilo -C /mnt/linuxsys/etc/lilo.conf -b /dev/sdb

Make a lilo.conf by yourself if /mnt/linuxsys/etc/lilo.conf doesn't exist.


By the way , executing liloconfig is a very simple way to install it.

Last edited by hello.freeman; 04-22-2010 at 12:32 PM.
 
Old 04-22-2010, 12:31 PM   #3
daweefolk
Member
 
Registered: Sep 2009
Distribution: raspbian
Posts: 94

Original Poster
Rep: Reputation: 15
OK thanks I'll try that. manpages on my computer don't work for some reason yet so I couldn't figure out those options for lilo easily.
 
Old 04-22-2010, 12:53 PM   #4
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,595

Rep: Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461
Quote:
Originally Posted by daweefolk View Post
I installed slackware with lilo on the mbr of /dev/sdb2 (primary linux partition on my usb drive) and I need to go in and change lilo.conf so it gives me a rootdelay=10.
to do so i need to boot from the slackware dvd, mount my usb drive, and edit lilo.conf (done) and re-run /sbin/lilo. When I do this it tells me /etc/lilo.conf doesn't exist.
I think it's because i have /dev/sdb2 mounted to /mnt/linuxsys and /sbin/lilo is looking for lilo.conf at /etc, not /mnt/linuxsys/etc.
Is this probably right? and if so, could making a symlink somewhere help in some way?
To create a functional Linux system in a USB hard drive is quite complicated ... because the hard drive devices changes depending on the system where is plugged.

I recommend a UUID based /etc/fstab, and so configuration in /etc/lilo.conf

To run lilo into target partition, is quite simple: lilo -r /target/partition/mountpoint
 
Old 04-22-2010, 01:45 PM   #5
daweefolk
Member
 
Registered: Sep 2009
Distribution: raspbian
Posts: 94

Original Poster
Rep: Reputation: 15
how do i edit lilo.conf so it goes by uuid? sorry for my noobishness lol
 
Old 04-22-2010, 02:05 PM   #6
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,595

Rep: Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461
With PICO, VI or any text editor... ;-)

About UUIDs... It's complicated. :-P

First, in a health system with the usb hard drive plugged in, execute blkid.

You should see something like:

bash-4.1# blkid
/dev/sdb1: UUID="fab6de21-e58c-42c0-a54d-0bdd2bd99467" TYPE="ext4"
/dev/sdb2: UUID="c4e0db68-be9f-409c-8a46-92f860bf0224" TYPE="ext4"
/dev/sdb3: UUID="b799fd2e-6b5b-4613-b357-c8b12f660007" TYPE="ext4"
/dev/sdb4: UUID="c215b80c-81e9-4b62-b668-7dc14d7026bd" TYPE="ext4"
/dev/sdc1: UUID="77ed321c-3366-48b1-aab0-991655f541bf" TYPE="ext4"
/dev/sdd1: LABEL="Windows 7" UUID="A254607654604F5B" TYPE="ntfs"
/dev/sdd2: LABEL="Windows 7 Data" UUID="F4048DFD048DC2DA" TYPE="ntfs"
/dev/sdd3: UUID="b26c549c-41b2-441e-b15e-259bc06d06ed" TYPE="ext4"
/dev/sda1: UUID="58b9ab1d-459a-4c3c-9b1b-e0d17b6c14a7" TYPE="ext4"
/dev/sda2: UUID="313ef1c1-032c-4f17-98b4-6569dc88bd19" TYPE="ext4"
/dev/sda3: UUID="8f664c50-a351-4e7a-af92-dd76823e3a1e" TYPE="ext4"
/dev/sda4: UUID="5a9ae961-c8d8-4924-ba4a-8d92c41fb768" TYPE="ext4"
/dev/sde1: UUID="4d86ba2e-276b-4fca-af2c-426b53766b1d" TYPE="ext4"

Now, let's say the target root is /dev/sda1.

In the /etc/fstab, instead of:

/dev/sda1 / ext4 defaults 1 1

use:

UUID="58b9ab1d-459a-4c3c-9b1b-e0d17b6c14a7" / ext4 defaults 1 1

also, use the same method of the all partitions from this hard drive...

In the /etc/lilo.conf, instead of sequence:

root = /dev/sda1

use:

root = UUID="58b9ab1d-459a-4c3c-9b1b-e0d17b6c14a7"

now, execute "lilo -r /target/partition/mountpoint -b /dev/sda"

where the /dev/sda is the current device or this hard drive.
 
Old 04-22-2010, 05:09 PM   #7
daweefolk
Member
 
Registered: Sep 2009
Distribution: raspbian
Posts: 94

Original Poster
Rep: Reputation: 15
haha you misoverestimated my noobishness. i knew to do it in vi lol i just didnt know about uuids. ill try it tonight and post my results
 
Old 04-22-2010, 05:53 PM   #8
daweefolk
Member
 
Registered: Sep 2009
Distribution: raspbian
Posts: 94

Original Poster
Rep: Reputation: 15
ok I edited my lilo.conf and tried running /sbin/lilo -C /mnt/linuxsys/etc/lilo.conf -b /dev/sdb and it tells me two things.
first, it tells me "Warning: /dev/sdb is not the first disk"
also, it tells me "creat /boot/map~ : File or directory not found"
now what should I do?
 
Old 04-23-2010, 01:20 AM   #9
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,595

Rep: Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461
Please, use this command: lilo -r /mnt/linuxsys -b /dev/sdb

And don't forget to modify also the /etc/fstab to use partition UUID's insted of partition devices.

You can ignore the warnings like "/dev/sdX is not the first disk", of course your usb hard drive is NOT the bood device, now...

Last edited by LuckyCyborg; 04-23-2010 at 04:57 AM.
 
  


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
Cent OS install on an Optiplex 320... installed lilo... need help with lilo.conf hcervan Linux - Newbie 7 01-18-2008 08:07 AM
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM
Upgraded kernel, lilo.conf, didn't run /sbin/lilo dtashima Linux - Newbie 4 10-18-2004 11:21 AM
I install Slackware on small HDD with LILO, can't boot LILO? kleptophobiac Slackware 4 08-10-2003 04:50 PM
Just want to update lilo.conf Sifvion Slackware 2 04-09-2003 04:44 PM

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

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