Re: Problem After Rebooting

From: Paul E. Lehmann (plehmann_at_fred.net)
Date: 02/04/04


Date: Wed, 04 Feb 2004 14:11:48 -0500

fhsrywu@dlgnco.com wrote:

> |> Boot in rescue mode and remove /etc/profile.local. Then try your
> |> modifications again. You can start a new shell to check if the PATH is
> |> what you want.
> |
> |I rebooted in rescue mode and could not even find the /etc/profile.local
> |file.
> |I am confused. I don't know where it could have gone.
> |
> |The /etc/profile file was there and seemed to be ok.
>
> When you boot in rescue mode, you are running off the CD and the
> partitions of the disk are not mounted. You have to manually mount the
> partition containing /etc, usually it's the same one with /, for which I
> hope you can remember your partition table or else you'll have to try
> them one by one.
>
> fdisk -l /dev/hda
> # candidate partitions are those of type Linux (not swap)
> mount /mnt /dev/hda1
> ls /mnt/etc/profile.local
> # nope
> umount /dev/hda1
> mount /mnt /dev/hda2
> ls /mnt/etc/profile.local
> # nope
> umount /dev/hda2
> mount /mnt /dev/hda3
> ls /mnt/etc/profile.local
> # yes
> rm /mnt/etc/profile.local
> umount /dev/hda3
> # reboot
>
> |When booting in safe mode, I observed that it said the following:
> |Master Resource Control: run level 3 has been reached
> |Skipped Services in run level 3
> |smbfs acpid splash
> |
> |When booting in regular mode, still get the green screen with the x
> |cursor but no kde boot up
>
> This is because it went to runlevel 3. I don't know whether this is due
> to safe boot or due to something you did. There is no GUI at runlevel 3.
> To get a GUI you need runlevel 5. You can however find a login prompt
> any of VC1 to VC6. Just go to VC1 using Alt-F1 and login. From the CLI
> do:
>
> rm /etc/profile.local
>
> Before you try that see if you can get to runlevel 5 from the boot
> loader by hitting tab before it times out and typing into the CLI entry
> dialog box:
>
> linux 5
>
> If that works then you need to edit your default runlevel to 5. You can
> do this in YaST or by editing /etc/inittab, the line id:N:initdefault
> should be 5 for N.
> --

IT WORKS!!!! THANX very much for the help.

The only problem I had with following your directions was that I had to use
the following syntax for the mount command.
mount /dev/hdb2 /mnt

Well, I learned quite a few things from this experience. I took up fooling
around with Linux after I retired so I could exercise the ole brain
neurons. They have been getting quite a workout.

Paul



Relevant Pages

  • Re: help with S3 Trio64V2/DX with RH8.0
    ... > After some googeling I found out that it's difficult to get it work ... The installation works fine however when I boot up the system ... > for the first time it stops when linux starts X Windows (get a strange ... runlevel 3 is "full multi-user" mode. ...
    (comp.os.linux.setup)
  • Re: FC4 does not work, "out of the box" for me; GUI/X11 fails
    ... >4) When it reboots one of two things came up for me: ... When you boot into the rescue mode, after chrooting, you ... > to get into runlevel 3 and yum update and my problems could have ...
    (Fedora)
  • Re: *ALMOST* longing for Windows stability
    ... Can you boot to runlevel 3 ... I'd agree with the crash when I get the black screen, ... and not necessarily all Fedora users. ...
    (Fedora)
  • Re: [opensuse] Kernel upgrade gone bad
    ... I am not sure how to get home to mount. ... Boot to runlevel 3 and login as root. ... confirm that with 'grep home /etc/fstab' ...
    (SuSE)
  • Unable to start a windows manager - need help
    ... When I boot it seems to boot clean but when it tries to go graphical it ... runlevel 5 has been reached ... Mar 3 20:08:48 linux kernel: bootsplash: status on console 0 changed to on ... Mar 3 20:08:48 linux kernel: bootsplash: silent jpeg found. ...
    (alt.os.linux.suse)