LinHES Forums
http://forums.linhes.org/

System hangs on startup... and it is something I did...
http://forums.linhes.org/viewtopic.php?f=2&t=18023
Page 1 of 1

Author:  raoul [ Sun Mar 09, 2008 8:42 pm ]
Post subject:  System hangs on startup... and it is something I did...

I am not sure if this is the proper section of the forum to post this problem... it isn't really a hardware issue (well, it STARTED because of a hardware issue)...

Anyway, I was trying to get my soundcard recognized when the system boots (it currently seems to default to the motherboard optical out, and I want to make it default to the Chaintech output) and I made a change to my /etc/modprobe.conf file.

I wanted to add the line

Code:
include /etc/modprobe.d


What I ACTUALLY added was

Code:
include /etc/modeprobe.d


I didn't notice, and saved the file. Now, when the system tries to boot it hangs because it can't find /etc/modeprobe.d

So... how can I fix this? They system doesn't get booted up far enough for me to network to it, but I can boot up with a knoppmyth CD and get to a terminal, but I can't seem to find the /etc/modprobe.conf file to edit.

I am using a lvm ... if that makes a difference. I have downloaded sysresccd.org's rescue cd, and I can "see" the /myth partition, I just can't seem to get into it to erase my typo.


Also, I know the bare basics on linux, and I (apparently) know just enough to really hose my system, so please baby-step me though how I fix my problem...

Ideas? Condolences? (and thanks in advance)

Author:  cecil [ Sun Mar 09, 2008 10:14 pm ]
Post subject: 

You can boot off the CD and fix the problem...
Code:
mount -o rw /dev/Xda1 /mnt/Xda1
chroot /mnt/Xda1
Do what it is you need to do...
Code:
exit
reboot

Author:  tjc [ Sun Mar 09, 2008 10:20 pm ]
Post subject: 

These directions include some more detail. http://www.knoppmythwiki.org/index.php?page=InstallDiskAsRescueCD

Author:  raoul [ Mon Mar 10, 2008 7:30 pm ]
Post subject: 

cecil wrote:
You can boot off the CD and fix the problem...
Code:
mount -o rw /dev/Xda1 /mnt/Xda1
chroot /mnt/Xda1
Do what it is you need to do...
Code:
exit
reboot


I typed that in and the mount command said I needed to define the filesystem...

I am running lvm (I don't remember if /myth is off of the lvm or not, but I think it might be, I know that /mythtv is for sure, I don't recall off the top of my head what filesystem I was using... I think I went with the default...)

The I am using vg as the name for the lvm...


Thanks again for any help...

Author:  raoul [ Mon Mar 10, 2008 7:34 pm ]
Post subject: 

tjc wrote:


I tinkered around with what I found on that page, but I didn't seem able to get the the /etc/modprobe.conf file...

I tried mounting the hda1 device, and that seemed to kind of work, but after I chrooted to it, I wasn't able to find the modprobe.conf file...

Oh, the other headache I have with all of this is currently I am trying to work through this long distance with the wife typing in commands and telling me what is happening on screen.

I am strongly leaning towards just waiting until I can sit down with the box again and tinker in person...

(It feels like trying to do engine repair through the muffler...)

Author:  slowtolearn [ Mon Mar 10, 2008 7:42 pm ]
Post subject: 

raoul wrote:
cecil wrote:
You can boot off the CD and fix the problem...
Code:
mount -o rw /dev/Xda1 /mnt/Xda1
chroot /mnt/Xda1
Do what it is you need to do...
Code:
exit
reboot


I typed that in and the mount command said I needed to define the filesystem...
What exactly did you type, and what was the exact error message? The /dev/Xda1 needs to be changed to reflect your actual root partition, something like /dev/hda1, /dev/sda1, etc.

raoul wrote:
I am running lvm (I don't remember if /myth is off of the lvm or not, but I think it might be, I know that /mythtv is for sure, I don't recall off the top of my head what filesystem I was using... I think I went with the default...)

The I am using vg as the name for the lvm...


Thanks again for any help...
Your modprobe.conf file isn't in the /myth structure so this shouldn't be a problem, unless you managed to LVM your entire installation (by no means a trivial thing to do)? I have no idea what the "/mythtv" reference is about...

EDIT: I see you got another post in while I was typing this, see next /EDIT

Author:  slowtolearn [ Mon Mar 10, 2008 7:44 pm ]
Post subject: 

raoul wrote:
I tried mounting the hda1 device, and that seemed to kind of work, but after I chrooted to it, I wasn't able to find the modprobe.conf file...
Skip the chroot part. Say you mounted /dev/hda1 into /mnt, simply
Code:
cd /mnt/etc
vi modprobe.conf
(Substitute vi with your editor of choice).

Author:  raoul [ Mon Mar 10, 2008 8:30 pm ]
Post subject: 

slowtolearn wrote:
raoul wrote:
cecil wrote:
You can boot off the CD and fix the problem...
Code:
mount -o rw /dev/Xda1 /mnt/Xda1
chroot /mnt/Xda1
Do what it is you need to do...
Code:
exit
reboot


I typed that in and the mount command said I needed to define the filesystem...
What exactly did you type, and what was the exact error message? The /dev/Xda1 needs to be changed to reflect your actual root partition, something like /dev/hda1, /dev/sda1, etc.

raoul wrote:
I am running lvm (I don't remember if /myth is off of the lvm or not, but I think it might be, I know that /mythtv is for sure, I don't recall off the top of my head what filesystem I was using... I think I went with the default...)

The I am using vg as the name for the lvm...


Thanks again for any help...
Your modprobe.conf file isn't in the /myth structure so this shouldn't be a problem, unless you managed to LVM your entire installation (by no means a trivial thing to do)? I have no idea what the "/mythtv" reference is about...

EDIT: I see you got another post in while I was typing this, see next /EDIT


Ah... well, just so you know, this is exactly what I typed:

Code:
mount -o rw /dev/Xda1 /mnt/Xda1
chroot /mnt/Xda1


And I defend my actions... because, well, it was CECIL (the man, the mythbox, er, knoppmythbox, the legend) that told me to. And that was just because he didn't know how dense I was. :)

However, see the next reply to see how I did... with a little more knowledge under my belt.

Author:  raoul [ Mon Mar 10, 2008 8:35 pm ]
Post subject: 

slowtolearn wrote:
raoul wrote:
I tried mounting the hda1 device, and that seemed to kind of work, but after I chrooted to it, I wasn't able to find the modprobe.conf file...
Skip the chroot part. Say you mounted /dev/hda1 into /mnt, simply
Code:
cd /mnt/etc
vi modprobe.conf
(Substitute vi with your editor of choice).


Well, we (the wife as my proxy) had to cd to /mnt then cd to /hda1 and THEN into /etc to get to the file.

She fixed the typo, and rebooted.

VOILA! Not only did the box boot up all the way, but the audio problem got fixed as well.

So. To cecil, tjc, and slowtolearn:

THANK YOU VERY MUCH!!!!

And... uh... WOO-HOO!!!!!


(Thanks again, sincerely, THANKS!!!)

Author:  slowtolearn [ Tue Mar 11, 2008 2:53 pm ]
Post subject: 

raoul wrote:
Well, we (the wife as my proxy) had to cd to /mnt then cd to /hda1 and THEN into /etc to get to the file.

She fixed the typo, and rebooted.

VOILA! Not only did the box boot up all the way, but the audio problem got fixed as well.
All's well that ends well, eh? Glad you got it worked out.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/