LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Startup issues?! (https://www.linuxquestions.org/questions/slackware-14/startup-issues-489472/)

Alstare 10-04-2006 03:05 PM

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

Brian1 10-04-2006 03:19 PM

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

Alstare 10-04-2006 03:23 PM

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.

Alien Bob 10-04-2006 03:30 PM

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

Alstare 10-04-2006 03:35 PM

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?

Alien Bob 10-04-2006 03:40 PM

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


Brian1 10-04-2006 03:42 PM

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

Brian1 10-04-2006 03:43 PM

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

Brian

Alstare 10-04-2006 03:45 PM

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:

Brian1 10-04-2006 03:51 PM

Glad to see you have it up and working.

Brian


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