LinuxQuestions.org
Review your favorite Linux distribution.
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 06-29-2014, 08:39 PM   #1
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Rep: Reputation: 72
Slackware64 14.1 won't boot after I did this...


Hi folks,

I honestly tried a search here and on the web and came up empty or I just don't know what to put as a query.

I had (have) Slackware64 14.1 installed on my second hdd. I even had it up and running and doing extremely well, able to surf the 'net and compile app's for the 64 bit system etc.

As I was done installing apcupsd, I entered /etc of my 64bit systeme and had the /etc of my main system on my sda drive open to copy the directory over to the 64bit side to make things easy (as I'd already done with a few other files before this).

For some reason I can't remember, I was looking at rc6 and accidentally clicked on it which, of course, caused the system to reboot.

I figured it was funny and a stupid goof but it should boot just fine.

The boot the first time got to 'LI' and just hung there.

I booted with the slackware64 14.1 iso dvd but it uses grub instead of what the 32bit dvd uses and trying
Code:
huge.s root=/dev/sdb2 rdinit= ro
got me nothing other than it telling me it needed to load the kernel first...but doesn't tell *how* to do that.

So, I tried through 'setup' and only did the 'reconfigure' section to try and re-install lilo (I don't like grub).

After that, I rebooted and now the screen stops at a screen-full of '9a's' and then just hangs.

I have no clue what accidentally clicking on that rc6 did. I had only krusader open but nothing was building or anything, and I think maybe Seamonkey was open also, but that's all that was going on when I accidentally clicked it.

Not sure now what to do and really don't want to re-install as I've got a slew of apps already built and installed for the 64bit side and it took a looooong time to get those all done and installed and working.

Anyone have any ideas I can try to get my sdb to get past the weird screen-full of '9a's' and running correctly again?
 
Old 06-29-2014, 09:19 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
But from the install DVD, chroot into the installed system and try to install lilo from there.

Seriously, this is what you get when running your GUI as root.
 
Old 06-29-2014, 10:14 PM   #3
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Original Poster
Rep: Reputation: 72
Quote:
Originally Posted by TobiSGD View Post
But from the install DVD, chroot into the installed system and try to install lilo from there.

Seriously, this is what you get when running your GUI as root.
Can't seem to figure out how to chroot correctly. Main hdd (what I'm able to get into and on now) is /=/dev/sda2, on the hdd that something happened to, it's /=/dev/sdb2. When I
Code:
chroot /dev/sdb2
I get either something about /bin/bash or that /dev/sdb2 isn't a directory.

And I wasn't running as root. I *never* run as root except a konsole on the desktop to build something to install. I truly appreciate the help, but presuming like that wasn't called for. As a matter of fact, although I do use the GUI 99.9% of the time, I can't remember the last time I booted into the root desktop...it's been at least a few years.
 
Old 06-29-2014, 11:14 PM   #4
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
clicking on anything in /etc/rc.d/ won't harm anything

if you changed rc.S, that might cause problems
but looks like the kernel, try fix with lilo
 
1 members found this post helpful.
Old 06-29-2014, 11:24 PM   #5
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
You chroot woes are in your command line usage. Should be like this (from man page):
Code:
chroot NEWROOT COMMAND
NEWROOT needs to be a directory... you need to mount your root partition here before calling chroot (/mnt is likely target to mount it to).]
COMMAND needs to be a program to run, in this case /bin/bash seems most useful.
So, a likely command line should look like this:
Code:
mount /dev/sdb2 /mnt
chroot /mnt /bin/bash

Last edited by j_v; 06-29-2014 at 11:28 PM.
 
2 members found this post helpful.
Old 06-29-2014, 11:39 PM   #6
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Original Poster
Rep: Reputation: 72
Thanks, j_v and genss. I was able to use the 32bit dvd and got to chroot into it somehow and performed lilo, but that didn't fix anything.

Looks like I'll just re-install but not format the partitions. Man, but I'd sure like to know what the heck I did, lol.

Last edited by irgunII; 06-29-2014 at 11:40 PM.
 
Old 06-29-2014, 11:48 PM   #7
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
Using the 32bit install dvd for a 64bit system? I'm not surprised that didn't help.
 
Old 06-30-2014, 12:40 AM   #8
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I use this for chrooting into Slackware from a Live disk...

/(root) = /dev/sda4 with ext4 partition

Code:
mkdir -pv /mnt/slackware
mount -v -t ext4 /dev/sda4 /mnt/slackware
chroot /mnt/slackware /bin/bash
source /etc/profile
export PS1="(chroot) $PS1"
 
2 members found this post helpful.
Old 06-30-2014, 01:12 AM   #9
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Original Poster
Rep: Reputation: 72
Much appreciated guys, but it got fixed with the install dvd.

The last time I tried by going the 'reconfigure' way, when it came to what I wanted to do with the lilo, I chose to 're-use' (or something like that...I'm bad tired and getting fuzzy-headed) the lilo that was there as I misinterpretted it to mean to use the old one but to 'fix' it and re-run lilo. It didn't...all that does is use what's there as lilo.conf and if it's messed up somehow, it just runs lilo.

This time I ran reconfigure again but chose to 'install' a new lilo and that apparently did the trick.

Thing is, looking at the lilo.conf from sda, I couldn't see anything wrong with it. Strange.
 
Old 06-30-2014, 01:16 AM   #10
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Original Poster
Rep: Reputation: 72
Quote:
Originally Posted by j_v View Post
Using the 32bit install dvd for a 64bit system? I'm not surprised that didn't help.
What difference would it make so long as I was root and chrooted into that system? Wouldn't it still be that I, as root, was in the 64bit system and doing what root is allowed to do? Just curious, because that's how I see what would be happening (though I could more than naturally be so far off it's not funny, heh). I mean, all the dvd did was give me a way to get *to* chroot to the place I needed to be, no?
 
Old 06-30-2014, 01:25 AM   #11
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
chroot changes the root directory, "/"
it does not change the running kernel, that is 32bit

as for the problem
initrd could be missing, vmlinuz could be.. idk
could be you messed up the filesystem somehow, where fsck would (try) fix it

slackware is that way
you always have the comfort of knowing you probably messed up something

Last edited by genss; 06-30-2014 at 01:26 AM.
 
Old 06-30-2014, 06:26 AM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by irgunII View Post
And I wasn't running as root. I *never* run as root except a konsole on the desktop to build something to install. I truly appreciate the help, but presuming like that wasn't called for. As a matter of fact, although I do use the GUI 99.9% of the time, I can't remember the last time I booted into the root desktop...it's been at least a few years.
You said said you did run rc6 by clicking on it. To run rc6 you need to be root. Nothing more to say.
 
Old 06-30-2014, 07:30 AM   #13
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Quote:
Originally Posted by j_v View Post
Using the 32bit install dvd for a 64bit system? I'm not surprised that didn't help.
Quote:
Originally Posted by irgunII View Post
What difference would it make so long as I was root and chrooted into that system? Wouldn't it still be that I, as root, was in the 64bit system and doing what root is allowed to do? Just curious, because that's how I see what would be happening (though I could more than naturally be so far off it's not funny, heh). I mean, all the dvd did was give me a way to get *to* chroot to the place I needed to be, no?
The 32-Bit install DVD has a 32 kernel. It cannot run the 64-Bit programs inside your chroot.
 
2 members found this post helpful.
Old 06-30-2014, 08:14 AM   #14
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Original Poster
Rep: Reputation: 72
Quote:
Originally Posted by TobiSGD View Post
You said said you did run rc6 by clicking on it. To run rc6 you need to be root. Nothing more to say.
Ah, okay, I took the GUI thing to mean I'd booted into the root desktop instead of meaning a root GUI like root krusader window. Meh, doesn't matter, like you've never made mistakes either. I unfortunately need these GUI apps because I can't remember well enough or enough commands to use a konsole. It was an accident and it was a relatively easy fix once I got my head around what the 'reconfigure' section of the installer meant when it came to the 'lilo' part.

Last edited by irgunII; 06-30-2014 at 08:30 AM.
 
Old 06-30-2014, 08:26 AM   #15
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Original Poster
Rep: Reputation: 72
Quote:
Originally Posted by ruario View Post
The 32-Bit install DVD has a 32 kernel. It cannot run the 64-Bit programs inside your chroot.
Okay, I think I get it now. I had to think of it in an outside-the-box way.

So if I'd used a liveCD/dvd od *any* distro that has *any* kernel on it, so long as it's 64bit, I could have chrooted into sdb2 and done the lilo thing. Is this correct or am I off again?

@genss - During the kernel panic when it was trying to boot up going in with the
Code:
boot: huge.s root=...
stuff, I think I remember seeing something about 'pass something to init='. Does running lilo make a new initrd (I really don't know what running 'lilo' does after, say one has added 'lba32' to the lilo.conf file), or does it just tell the kernel about what's on the lilo.conf. Reason being, I only did the lilo configuring through the setup process of the install dvd.
 
  


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
Slackware64 14.1 won't boot... irgunII Slackware 21 02-06-2014 11:40 AM
[SOLVED] mpd won't install on Slackware64 14 Kangatux Slackware 2 05-03-2013 10:05 AM
[SOLVED] Slackware64 won't boot? JamesGT Slackware 1 02-20-2011 10:09 AM
My headless Slackware64-13.1 won't boot without video card after new kernel compile rutrow Slackware 2 01-04-2011 04:55 PM
Slackware64 13.1 - won't boot after update - VFS Cannot open root device khinch Slackware 8 11-13-2010 04:25 PM

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

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