LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 09-15-2009, 12:48 PM   #1
compul
Member
 
Registered: Aug 2009
Distribution: debian testing / slackware 13.0
Posts: 30

Rep: Reputation: 15
reinstall lilo to /boot (/dev/sda2) from dvd after windows install


hey,
i have an encrypted slack system on my machine (/dev/sda3), which is booted from /dev/sda2 (mounted as /boot). Now i installed windows and truecrypt on win (/dev/sda1), so i have to reinstall lilo (first it was in mbr) to /boot, for i can still use truecrypt bootloader.

now i am under my slackware 13 installation dvd and mounted /dev/sda2... how do i reinstall lilo to /boot ?

or am i completely wrong? :P

thanks in advance,

lg,
compul

-------edit-------------------------------

when i boot with:

boot: hugesmp.s root=/dev/sda3 initrd=/dev/sda2/initrd.gz

is says:

Loading /kernels/hugesmp.s/bzImage......................................................
Could not find find ramdisk image: /dev/sda2/initrd.gz

the file /dev/sda2/initrd.gz actually exists. maybe it is corrupt? if it is, where do i get a new one from?

btw.: i encrypted slack like this:
http://slackware.osuosl.org/slackwar...ADME_CRYPT.TXT

I use Logical Volumes on top of sda3 (/, /home, swap).

hasnt anyone an idea?

lg!

Last edited by compul; 09-15-2009 at 03:32 PM. Reason: updates
 
Old 09-15-2009, 04:46 PM   #2
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 32bit
Posts: 725
Blog Entries: 3

Rep: Reputation: 77
To boot into your slackware system using the installation CD/DVD, the correct syntax at boot prompt is:

Code:
hugesmp.s root=/dev/sda3 initrd=ro
 
Old 09-15-2009, 04:48 PM   #3
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 32bit
Posts: 725
Blog Entries: 3

Rep: Reputation: 77
Oh yes, I forgot, to install lilo into /boot, please run liloconfig as root and select expert mode
 
Old 09-15-2009, 04:50 PM   #4
compul
Member
 
Registered: Aug 2009
Distribution: debian testing / slackware 13.0
Posts: 30

Original Poster
Rep: Reputation: 15
ok, i made it into my system by using Super Grub Disk, and changing the initrd path from /initrd.img to initrd.gz

But now, when im in my system and run liloconfig nothing happens

# liloconfig
#

why? when i run lilo -v:

bash-3.1# lilo -v
LILO version 22.8, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2006 John Coffman
Released 19-Feb-2007 and compiled at 12:43:17 on Nov 29 2008.

Warning: LBA32 addressing assumed
Reading boot sector from /dev/sda2
Warning: '/proc/partitions' does not match '/dev' directory structure.
Name change: '/dev/dm-0' -> '/dev/mapper/root'
Warning: Name change: '/dev/dm-1' -> '/dev/cryptvg/swap'
Warning: Name change: '/dev/dm-2' -> '/dev/cryptvg/root'
Warning: Name change: '/dev/dm-3' -> '/dev/cryptvg/home'
Warning: Partition 2 on /dev/sda is not marked Active.
Fatal: device-mapper: only linear boot device supported

i modified /etc/lilo.conf a little for lilo -v should write to /dev/sda2 (/boot).

vgchange -ay (which exits succesfully - says:
"3 logical volume(s) in volume group "cryptvg" now active"
) does not change anything in "Warning: Partition 2 on /dev/sda is not marked Active."

so how / where should i write lilo?

thanks in advance !

lg
 
Old 09-15-2009, 04:52 PM   #5
compul
Member
 
Registered: Aug 2009
Distribution: debian testing / slackware 13.0
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by gegechris99 View Post
To boot into your slackware system using the installation CD/DVD, the correct syntax at boot prompt is:

Code:
hugesmp.s root=/dev/sda3 initrd=ro
that won't work, cuz the system is encrypted ( i think i tried it) so i had to specify the right initrd image.

whatever. i did that. the fact that liloconfig does nothing confuses me x.x

##edit##########

weird.. if course /dev/sda2 hast nothing to do with vgchange -ay cuz its not a LV :P
i did:

bash-3.1# fdisk /dev/sda2
Command (m for help): a
Partition number (1-4): 2
Warning: partition 2 has empty type

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
bash-3.1#

so i made a reboot and it tried to boot /dev/sda2 but - of course - there was nothing to boot from yet. So i started from the cd again and did:

bash-3.1# lilo -v
LILO version 22.8, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2006 John Coffman
Released 19-Feb-2007 and compiled at 12:43:17 on Nov 29 2008.

Warning: LBA32 addressing assumed
Reading boot sector from /dev/sda2
Warning: '/proc/partitions' does not match '/dev' directory structure.
Name change: '/dev/dm-0' -> '/dev/mapper/root'
Warning: Name change: '/dev/dm-1' -> '/dev/cryptvg/swap'
Warning: Name change: '/dev/dm-2' -> '/dev/cryptvg/root'
Warning: Name change: '/dev/dm-3' -> '/dev/cryptvg/home'
Warning: Partition 2 on /dev/sda is not marked Active.
Fatal: device-mapper: only linear boot device supported

obviously it still doesnt work... i have no idea why !

lg... :-@

compul

Last edited by compul; 09-15-2009 at 05:18 PM.
 
Old 09-15-2009, 06:04 PM   #6
compul
Member
 
Registered: Aug 2009
Distribution: debian testing / slackware 13.0
Posts: 30

Original Poster
Rep: Reputation: 15
okay... i marked /dev/sda2 as active using
# lilo -A /dev/sda 2

lilo -v then said something like the partition would be too small for initrd.gz and it would try to write to /dev/sda1. that didnt work. BUT it crashed my windows bootloader so there is bothing bootable left on my machine :P lucky that the setup was new anyways ... so i think im gonna reinstall win and slackware (with a bigger /boot partition ^^) and then hope that it works... if not... im gonna cry or something :P

so... thanks for everyones help !

not really solved.. :P

lg,

##edit#################

i am using unencrypted windows now, cuz i always get the Fatal message that installing lilo on /dev/sda2 (/boot) would destroy the existing filesystem. using liloconfig i just could install it to root (or is that in the end the same? cuz they are different partitions. in root it would be useless to me cuz / is encrypted, as swap and /home), and i didnt find a choice to install somewhere else. maybe i will try later again :P but so far, im okay with this solution.

lg

Last edited by compul; 09-16-2009 at 02:49 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Fedora 9 new install - Don't understand how to use /dev/sda2 ericcarlson Fedora 1 09-07-2008 07:25 AM
Install lilo on external drive (/dev/sda), then boot as INTERNAL (/dev/hda)? slackware-elf Slackware 3 08-18-2007 04:51 PM
old lilo install persists after reinstall and will not boot darthpyro42 Slackware 3 04-10-2007 01:05 PM
Install Slackware on /dev/sda2 Ruben-18 Slackware - Installation 3 04-04-2006 10:23 AM
connecting external device causes SuSe boot error with /dev/sda2 maxsch LinuxQuestions.org Member Success Stories 3 02-02-2006 01:17 AM


All times are GMT -5. The time now is 05:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration