Jump to content

installing Mandrake 9.1...help please


Guest Brit
 Share

Recommended Posts

Hey all

 

Gowator...as i promised i didnt touch a thing, but unfortunately during the night i had yet another power failure and it rebooted it self. Here is where it gets very sad for me :( I cant get back in. It freezes at kernel panic: Attempted to kill init. not that i am experienced but that cant be very good. Oh just turned and looked at it agian and i get nothing on the screen, in a state of panic i am pressing evrry key on my keyboard and no reaction.

 

Does this mean a reinstall

 

Sue

Link to comment
Share on other sites

  • Replies 90
  • Created
  • Last Reply

Top Posters In This Topic

It doesn't mean you have to but it might be easier.

 

However:

 

If your still feeling stubborn and persistent.

Take Cd1

Stick it in the Cd drive and boot up with it.

 

Press F1 for further options

 

Choose rescue

Do NOT mount any drives : just choose go to console.

At the console type lsparts

make a note of the partitions

hda1,hda5,hda6 etc.

Note which is swap. It doesn't need checking/fixing!

 

Now type

fsck /dev/hda<x>

Let it fix any errors with "Y" but make a note ... it might be useful

 

OK, well presume it fixed everything for now.

Just to be certain well mount the partions

exit the console back to the rescue interface and choose mount partitions

Now, your running the kernel loaded into memory and its programs are located under / (this is also held in memory at tis point on a RAM disk)

 

your path is set to everything under / (but theyre under /mnt)

So we say

chroot /mnt

Now the kernel interpreter (bash) is looking for commands from /mnt instead (effectively /mnt becomes /)

 

Well check your boot sector too. Sound like you had a kernel packick from the init sequence.

 

Now type

lilo

(this takes a file called lilo.conf in /etc and applies the contained instructions to make a boot init sequence)

 

It sould say

 

added linux

added failsafe

 

etc.

 

Now you should have fixed the init sequence and the filesystems.

 

type reboot and pull out the CD.

 

It should boot up fine but I'll have to wait

It will stop at the login prompt becuase we left it there earlier

Your xstart is still faulty but post it.

xinit should still work but only as root

You need to fix the permissions for the console to allow it to let other users startx

 

Make sure the first thing you do is open another console and

su - sue

Only use the root console if someone here tells you to.

 

What you could do is instead of using the texstar repository install the KDE updates from the plf or base selection.

If you select KDE base it will automagically find the deps.

 

You should also try and do the most important updates.

Right now... they are curl, wget and rpmdrake.

I would try these the text way..... especially RPMDRAKE.

remember

urpmi curl

urpmi wget

and

urpmi rpmdrake

oh and urpmi gurmpi

its probably predone in the deps.

 

See ya later

Will find out which route you took.

p.s. do the ssl thing on your MAC if you can....

You should actually be able to use it without even a monitor by opening it directly from your MAC....

(really)

 

 

OR

Follow chris_z's advice.

He's right and its far more sensible :wink: its just Im pig-headed

:arrow: :banghead:

Link to comment
Share on other sites

As you should realize by now i am stubborn, and apart from that i am learning a little bit. I choose the hard way!!!

 

booted from disk 1, and got to fsck but unfortunately it says command not found. i did a search for it but i cant find it.

 

Going to play around with it until i have to go to work

 

Sue

Link to comment
Share on other sites

This is tricky becuase fsck is a front end to a lot of progs.

In theory you can temporarly mount the partitions then unmount them all.

 

You shouldn't fsck a mounted partition

 

What you could do...

is mount the other partitions excluding /

 

then fsck them.

 

then find the executables

try

locate fsck

it will list lots

if you chose the ext3 (default filesystem) you'll need the

fsck.ext3 and fsck.ext2 and fsck progs.

(actually ext3 is optional becuase it can be fsck'd much slower using ext2 )

 

Now you need to copy these into your home directory...

so mount the partition hda(x) containing them....

mount /dev/hda(x) /tmp

 

then cp /sbin/fsck* /tmp/sue/

 

now you have them on the other partition

 

now

###

chroot /tmp (this is just temporary to allow you to unmount /)

(it will moan about not finding the command intepreter

 

exit

this should exit the chroot env.

exit again and your back to the rescue ???

 

 

If any goes wrong after ### just reboot with the Cd and go into rescue,

and start here:

 

mount /dev/hda(x) /tmp (your home partition)

DO not mount /

 

then run

/tmp/sue/fsck.ext3 /dev/hda(x) (the root probably 1)

 

If not I (or one of these guys) really need to test it....

Its kinda difficult when sitting at an NT box....

Link to comment
Share on other sites

hey

 

Gowator...i managed to mnt the drives and ge it working. Well from there i did xinit which gave me that little window again from tere starticewm. Well i followed everything we did last night and right now im downlading kde base. Im not saying its going to work, but even if it doesnt im very impressed that i got this far in the first place. The only thing i did different is i downloaded the pgp keys first.

 

I have to leave for work, but wanted you all to know that i got it working again.

 

Even if i have to reinstall at this point im happy im learning a lot.

 

:D Sue

Link to comment
Share on other sites

me yet again...

 

Ok i managed to download and install kde base, kdemoreartwork-liquid.

 

Not sure what to do next i really want to reboot and see if i can get into it normally.

 

But will be patient and awiat any advice

Link to comment
Share on other sites

Ok one last post before i have to leave.

 

I restarted the pc, and seeing as i got rid of X at startup i got the login screen.

 

But then i typed: startx

which led me to the first time wizard...did that and then nothing.

 

So back into command prompt..typed: startkde...blue screen!!

 

ok typed xinit which gives me that little window and then tried startkde.

 

That worked. Everytime i try to log in normally..it says cant find dsiplay.

 

What next

 

Sue

Link to comment
Share on other sites

Hi Brit.

Well it was a long Friday night....

Hmmm (but of a headache yesterday)

 

So if xinit starts without problem and then you can startkde i think the probably is in the startx command.

Startx is just a 'wrapper' for xinit...

It automates the xinit and makes it pretty.

 

it should be in:

usr/X11R6/bin/

 

and about 157 lines.

 

If you can post it Ill see if I can work out what exactly is screwing up on the startx.

 

P.s. Did you get your fonts back normall ???

Link to comment
Share on other sites

Hi all...had to work all weekend, so didnt get any time on my pc.

 

This is my startx file:

 

 

 

#!/bin/sh

 

# $Xorg: startx.cpp,v 1.3 2000/08/17 19:54:29 cpqbld Exp $

#

# This is just a sample implementation of a slightly less primitive

# interface than xinit. It looks for user .xinitrc and .xserverrc

# files, then system xinitrc and xserverrc files, else lets xinit choose

# its default. The system xinitrc should probably do things like check

# for .Xresources files and merge them in, startup up a window manager,

# and pop a clock and serveral xterms.

#

# Site administrators are STRONGLY urged to write nicer versions.

#

# $XFree86: xc/programs/xinit/startx.cpp,v 3.16 2003/01/24 21:30:02 herrb Exp $

 

 

 

userclientrc=$HOME/.xinitrc

userserverrc=$HOME/.xserverrc

sysclientrc=/etc/X11/xinit/xinitrc

sysserverrc=/etc/X11/xinit/xserverrc

defaultclientargs=""

defaultserverargs=""

clientargs=""

serverargs=""

 

 

 

 

 

 

if [ -f $userclientrc ]; then

defaultclientargs=$userclientrc

elif [ -f $sysclientrc ]; then

defaultclientargs=$sysclientrc

fi

 

 

 

 

if [ -f $userserverrc ]; then

defaultserverargs=$userserverrc

elif [ -f $sysserverrc ]; then

defaultserverargs=$sysserverrc

fi

 

whoseargs="client"

while [ x"$1" != x ]; do

case "$1" in

/''*|.*) if [ "$whoseargs" = "client" ]; then

if [ "x$clientargs" = x ]; then

clientargs="$1"

else

clientargs="$clientargs $1"

fi

else

if [ "x$serverargs" = x ]; then

serverargs="$1"

else

serverargs="$serverargs $1"

fi

fi ;;

--) whoseargs="server" ;;

*) if [ "$whoseargs" = "client" ]; then

if [ "x$clientargs" = x ]; then

clientargs="$defaultclientargs $1"

else

clientargs="$clientargs $1"

fi

else

case "$1" in

:[0-9]*) display="$1"; serverargs="$serverargs $1";;

*) serverargs="$serverargs $1" ;;

esac

fi ;;

esac

shift

done

 

if [ x"$clientargs" = x ]; then

clientargs="$defaultclientargs"

fi

if [ x"$serverargs" = x ]; then

serverargs="$defaultserverargs"

fi

 

if [ x"$XAUTHORITY" = x ]; then

XAUTHORITY=$HOME/.Xauthority

export XAUTHORITY

fi

 

removelist=

 

 

# set up default Xauth info for this machine

case `uname` in

Linux*)

if [ -z "`hostname --version 2>&1 | grep GNU`" ]; then

hostname=`hostname -f`

else

hostname=`hostname`

fi

;;

*)

hostname=`hostname`

;;

esac

 

authdisplay=${display:-:0}

mcookie=`mcookie`

for displayname in $authdisplay $hostname$authdisplay; do

if ! xauth list "$displayname" | grep "$displayname " >/dev/null 2>&1; then

xauth << EOF

add $displayname . $mcookie

EOF

removelist="$displayname $removelist"

fi

done

 

 

cleanup() {

[ -n "$PID" ] && kill $PID > /dev/null 2>&1

 

 

if [ x"$removelist" != x ]; then

xauth remove $removelist

fi

 

 

 

 

 

if command -v deallocvt > /dev/null 2>&1; then

deallocvt

fi

 

 

 

 

 

 

 

 

 

 

}

 

 

trap cleanup 0

 

xinit $clientargs -- $serverargs -deferglyphs 16 &

 

PID=$!

 

wait $PID

 

unset PID

Link to comment
Share on other sites

#!/bin/sh

 

can you

ls -l /bin/sh and make sure its there.

 

can you type

echo $HOME

and check it points to /root when root!

 

then, check these files exist ...

userclientrc=$HOME/.xinitrc

userserverrc=$HOME/.xserverrc

sysclientrc=/etc/X11/xinit/xinitrc

sysserverrc=/etc/X11/xinit/xserverrc

 

Meanwhile, Ill compare to a working one and see what really needs defining...

 

It could actually be something really simple not being set up in your login script's but since it works with xinit it doesn't seem to be the X install itself or KDE.

 

Something to try is

sh -x /usr/X11R6/bin/startx

(it won't work but you will get response and be able to see [hopefully] where it fails)

Link to comment
Share on other sites

Hi Gowator

 

Hope your head didnt hurt too bad :D , at least you had fun i hope!!

 

[brit@localhost brit]$ ls -l /bin/sh

lrwxrwxrwx 1 root root 4 Sep 19 08:35 /bin/sh -> bash*

 

[brit@localhost brit]$ echo $HOME

/home/brit

 

 

[root@localhost brit]# echo $HOME

/root

 

 

All those files you asked me to check seem to be there

 

And finally the result of sh -x /usr/X11R6/bin/startx

 

[root@localhost brit]# sh -x /usr/X11R6/bin/startx

+ userclientrc=/root/.xinitrc

+ userserverrc=/root/.xserverrc

+ sysclientrc=/etc/X11/xinit/xinitrc

+ sysserverrc=/etc/X11/xinit/xserverrc

+ defaultclientargs=

+ defaultserverargs=

+ clientargs=

+ serverargs=

+ '[' -f /root/.xinitrc ']'

+ '[' -f /etc/X11/xinit/xinitrc ']'

+ defaultclientargs=/etc/X11/xinit/xinitrc

+ '[' -f /root/.xserverrc ']'

+ '[' -f /etc/X11/xinit/xserverrc ']'

+ whoseargs=client

+ '[' x '!= x ]'

+ '[' x = x ']'

+ clientargs=/etc/X11/xinit/xinitrc

+ '[' x = x ']'

+ serverargs=

+ '[' x/home/brit/.Xauthority = x ']'

+ removelist=

++ uname

++ hostname --version

++ grep GNU

+ '[' -z '' ']'

++ hostname -f

+ hostname=localhost

+ authdisplay=:0

++ mcookie

+ mcookie=323c36f7d62195ae618b2665b535d7e3

+ xauth list :0

xauth: error in locking authority file /home/brit/.Xauthority

+ grep ':0 '

+ xauth

xauth: error in locking authority file /home/brit/.Xauthority

+ removelist=:0

+ xauth list localhost:0

xauth: error in locking authority file /home/brit/.Xauthority

+ grep 'localhost:0 '

+ xauth

xauth: error in locking authority file /home/brit/.Xauthority

+ removelist=localhost:0 :0

+ trap cleanup 0

+ PID=9081

+ wait 9081

+ xinit /etc/X11/xinit/xinitrc -- -deferglyphs 16

 

 

Fatal server error:

Server is already active for display 0

If this server is no longer running, remove /tmp/.X0-lock

and start again.

 

 

When reporting a problem related to a server crash, please send

the full server output, not just the last messages.

Please report problems to xfree86@xfree86.org.

 

 

Hope it all makes sense to you

 

 

 

:D

Link to comment
Share on other sites

Hi again gowator, not sure if this will help but this is my XF86Config-4 file

 

 

ection "Monitor"

Identifier "monitor1"

VendorName "Plug'n Play"

ModelName "SDM-HS73"

HorizSync 28-65

VertRefresh 48-65

 

# Sony Vaio C1(X,XS,VE,VN)?

# 1024x480 @ 85.6 Hz, 48 kHz hsync

ModeLine "1024x480" 65.00 1024 1032 1176 1344 480 488 494 563 -hsync -vsync

 

# TV fullscreen mode or DVD fullscreen output.

# 768x576 @ 79 Hz, 50 kHz hsync

ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

 

# 768x576 @ 100 Hz, 61.6 kHz hsync

ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616

EndSection

 

Section "ServerLayout"

Identifier "XFree86 Configured"

InputDevice "Mouse0" "CorePointer"

InputDevice "Keyboard0" "CoreKeyboard"

Screen 0 "Screen0" 0 0

Screen 1 "Screen1" RightOf "Screen0"

EndSection

 

Section "Files"

ModulePath "/usr/X11R6/lib/modules"

RgbPath "/usr/X11R6/lib/X11/rgb"

FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"

FontPath "unix/:-1"

EndSection

 

Section "Module"

Load "dbe"

Load "dri"

Load "extmod"

Load "glx"

Load "record"

Load "xtrap"

EndSection

 

Section "InputDevice"

Identifier "Keyboard0"

Driver "keyboard"

EndSection

 

Section "InputDevice"

Identifier "Mouse0"

Driver "mouse"

Option "Protocol" "auto"

Option "Device" "/dev/mouse"

EndSection

 

Section "Device"

Identifier "Card0"

VendorName "ATI Technologies Inc"

BoardName "Radeon RV100 QY [Radeon 7000/VE]"

Driver "ati"

BusID "PCI:0:11:0"

#Option "CloneHSync" # [<str>]

#Option "AGPMode" # <i>

#Option "VideoKey" # <i>

#Option "AGPFastWrite" # [<bool>]

#Option "CloneVRefresh" # [<str>]

#Option "ForcePCIMode" # [<bool>]

#Option "DDCMode" # [<bool>]

#Option "CPPIOMode" # [<bool>]

#Option "PanelOff" # [<bool>]

#Option "Dac6Bit" # [<bool>]

#Option "AGPSize" # <i>

#Option "EnableDepthMoves" # [<bool>]

#Option "UseFBDev" # [<bool>]

#Option "CloneMode" # [<str>]

 

### Available Driver options are:-

### Values: <i>: integer, <f>: float, <bool>: "True"/"False",

### <string>: "String", <freq>: "<f> Hz/kHz/MHz"

### [arg]: arg optional

#Option "NoAccel" # [<bool>]

#Option "SWcursor" # [<bool>]

#Option "BufferSize" # <i>

#Option "Dac8Bit" # [<bool>]

#Option "NoBackBuffer" # [<bool>]

#Option "CPusecTimeout" # <i>

#Option "CloneDisplay" # <i>

#Option "RingSize" # <i>

#Option "EnablePageFlip" # [<bool>]

EndSection

 

Section "Device"

Identifier "Card1"

VendorName "Matrox Graphics, Inc."

BoardName "MGA G200 AGP"

Driver "mga"

BusID "PCI:1:0:0"

#Option "AGPMode" # <i>

#Option "Crtc2Ram" # <i>

#Option "AGPSize" # <i>

#Option "Int10" # [<bool>]

#Option "MergedFB" # [<bool>]

#Option "Crtc2Half" # [<bool>]

#Option "MGASDRAM" # [<bool>]

#Option "DigitalScreen2" # [<bool>]

#Option "MetaModes" # [<str>]

#Option "VideoKey" # <i>

#Option "UseFBDev" # [<bool>]

#Option "NoAccel" # [<bool>]

#Option "TexturedVideo" # [<bool>]

#Option "Monitor2Position" # [<str>]

#Option "ShadowFB" # [<bool>]

#Option "SwappedHead" # [<bool>]

#Option "SetMclk" # <freq>

#Option "OverclockMem" # [<bool>]

#Option "PciRetry" # [<bool>]

#Option "DRI" # [<bool>]

#Option "HWcursor" # [<bool>]

 

### Available Driver options are:-

### Values: <i>: integer, <f>: float, <bool>: "True"/"False",

### <string>: "String", <freq>: "<f> Hz/kHz/MHz"

### [arg]: arg optional

#Option "SWcursor" # [<bool>]

#Option "TVStandard" # [<str>]

#Option "ShowCache" # [<bool>]

#Option "SyncOnGreen" # [<bool>]

#Option "Overlay" # [<str>]

#Option "TV" # [<bool>]

#Option "DigitalScreen1" # [<bool>]

#Option "CableType" # [<str>]

#Option "Rotate" # [<str>]

#Option "NoHal" # [<bool>]

#Option "Monitor2HSync" # [<str>]

#Option "ColorKey" # <i>

#Option "Monitor2VRefresh" # [<str>]

EndSection

 

Section "Screen"

Identifier "Screen0"

Device "Card0"

Monitor "Monitor0"

 

Subsection "Display"

Depth 1

EndSubsection

 

Subsection "Display"

Depth 4

EndSubsection

 

Subsection "Display"

Depth 8

EndSubsection

 

Subsection "Display"

Depth 15

EndSubsection

 

Subsection "Display"

Depth 16

EndSubsection

 

Subsection "Display"

Depth 24

EndSubsection

EndSection

 

Section "Screen"

Identifier "Screen1"

Device "Card1"

Monitor "Monitor1"

 

Subsection "Display"

Depth 1

EndSubsection

 

Subsection "Display"

Depth 4

EndSubsection

 

Subsection "Display"

Depth 8

EndSubsection

 

Subsection "Display"

Depth 15

EndSubsection

 

Subsection "Display"

Depth 16

EndSubsection

 

Subsection "Display"

Depth 24

EndSubsection

EndSection

 

 

Ok it identifies my Sony Display Model at the beginning of this, but then it mentions a Sony Vaio C1. Could this be the problem???? If so cant i just edit that out :D

Link to comment
Share on other sites

Yes, I think it was somewhere in this thread...Oh yes, page 1

I had an onboard that couldn't be disabled via bios and a NVIDIA at the same time. The trick was to NOT config multi and make sure XF86Config-4, /etc/modules, and /etc/modules.conf only have entries for the one I wanted to use. In most cases the bios and kernel will go with the slot card over the onboard so you're ok from init 1 to 3, plus it's just vesa/fb.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share


×
×
  • Create New...