LinuxQuestions.org
Visit Jeremy's Blog.
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 10-04-2006, 04:05 PM   #1
Alstare
Member
 
Registered: Jul 2003
Location: Ontario, Canada
Distribution: Slackware
Posts: 79

Rep: Reputation: 15
Startup issues?!


I managed to botch a line in my rc.modules files.

Problem is the system hangs when it gets to that line on startup and I can't get it back up to change it?

I tried booting off the install disks but it still hangs at that spot.

What am I doing wrong?

Sorry for the noobish question, it has been awhile since I have played with Slack.

Thanks in advance.
-Brian
 
Old 10-04-2006, 04:19 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Need to boot up with a linux bootable CD. I would think the Install would give you an option like a rescue mode and then mount the current distro partitions in its own /mnt. But that is probably just a Redhat / Redhat clone feature. One way is to use a Live distro CD like Knoppix, Kubuntu, and many others. There are some other smaller boot ISO cd like http://freshmeat.net/projects/systemrescuecd/ that can help.

Brian1
 
Old 10-04-2006, 04:23 PM   #3
Alstare
Member
 
Registered: Jul 2003
Location: Ontario, Canada
Distribution: Slackware
Posts: 79

Original Poster
Rep: Reputation: 15
Yeah knoppix might work, but I have to believe there is a more common and readily availbe solution to this problem?

Seems odd I need to use another distro to fix a problem with the one i am currently using..

There has to be a solution to this.

Last edited by Alstare; 10-04-2006 at 04:28 PM.
 
Old 10-04-2006, 04:30 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
You can use the Slackware boot CD too, no need for Knoppix.
Boot to the prompt, mount your Slackware root partition, fix the problem, reboot without the CD.

Eric
 
Old 10-04-2006, 04:35 PM   #5
Alstare
Member
 
Registered: Jul 2003
Location: Ontario, Canada
Distribution: Slackware
Posts: 79

Original Poster
Rep: Reputation: 15
Yeah I assumed the solution was going to be something like that...

Of course you know my stupid follow up question how do i mount my root partition on there?
 
Old 10-04-2006, 04:40 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
I anticipated that but gave you one chance to find out for yourself

- assuming /dev/hda1 contains the root partition -

Don't run "setup" but instead:

Code:
mount /dev/hda1 /mnt
vi /mnt/etc/rc.d/rc.modules
umount /mnt
reboot
 
Old 10-04-2006, 04:42 PM   #7
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
My guess once the system is up you can mount the partition that contains the /etc subdirectory like so.
mount /dev/hda1 /mnt
cd /mnt/etc
vi rc.modules

Not sure where rc.modules exist on Slackware so you need to change to its location.

Now change /hda1 to what ever the partition is whether /hda2, /hda3, /hdb1, /sda1,or so many more. You just need to know which partition contains /etc.

Brian
 
Old 10-04-2006, 04:43 PM   #8
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I see where it is is. Follow Alien Bob's post. It is more exact than mine.

Brian
 
Old 10-04-2006, 04:45 PM   #9
Alstare
Member
 
Registered: Jul 2003
Location: Ontario, Canada
Distribution: Slackware
Posts: 79

Original Poster
Rep: Reputation: 15
Hah,

Fair enough, the sad part was I did exactly that before I came on here and had no luck, got an error about not being able to open the file even though I could navigate to it.

But of course worked flawlessy after trying it again now after your instruction.

Thanks, much appreciated.

Problem solved and quickly. :beer:
 
Old 10-04-2006, 04:51 PM   #10
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Glad to see you have it up and working.

Brian
 
  


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
Slackware 10.1 startup issues conner19 Linux - Newbie 16 09-24-2005 03:10 PM
Debian Startup Issues !! darkmagic Linux - Newbie 12 08-26-2005 01:59 AM
Startup Issues LinuxLoverMeg Mandriva 3 09-24-2004 01:18 AM
FC2 startup issues msie02 Fedora 0 09-19-2004 11:44 AM
VncServer - Startup issues TrueSword Linux - General 1 12-06-2002 06:13 PM

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

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