LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Linux wont run anymore! (https://www.linuxquestions.org/questions/mandriva-30/linux-wont-run-anymore-91260/)

mausie 09-10-2003 10:34 AM

Linux wont run anymore!
 
LINUX WONT RUN ANYMORE :(((
i installed ati drivers and worked fine for 1 day.. but yesterday i turned pc on again and all i get is terminal
when i login and typ: startx
i get error: no screens
i tried running XFdrake and set everything to right settings for display etc
but nothing works linux just wont run anymore :(

some1 help??

jpbarto 09-10-2003 11:30 AM

the ati drivers (fglrx) is the module loaded into the kernel after rebooting?

mausie 09-10-2003 02:08 PM

no idea... im a big newbie
but well it worked fine after rebooting for 1 day
till yesterday
and well at installing ati drivers i had some error i couldnt use 3d because of something but the rest should work fine

jpbarto 09-10-2003 02:22 PM

so you have X working? just not with DRI (AGP). from a console when you execute 'lsmod' do you see 'fglrx' anywhere in the mix? you should. that fglrx is what provides you with access to ATI's AGP card.

mausie 09-10-2003 02:55 PM

i typed lsmod
but couldn't find fglrx in the list :/
( gone to bed.. bb tommorow i hope some1 know hows to fix this because this is no fun linux in black screen :P )
thnx for the help i already got
night night

jpbarto 09-10-2003 06:26 PM

turn on your box, from the console type as root 'modprobe fglrx'. this should load the ATI driver ... then as a user try loading X.

mausie 09-11-2003 07:49 AM

Can't locate module fglrx :(

mausie 09-11-2003 08:50 AM

btw this is 9.1
i also got 9.2 RC2
is it good idea to try that 1 or it's not stable?

jpbarto 09-11-2003 09:22 AM

Not sure about which is better 9.1 vs 9.2.

if you execute as root 'updatedb && locate fglrx'
do you see a directory '/lib/modules/fgrlx'? You should after installing the ATI drivers. If the fglrx module is installed on your system you should also see an fglrx.o in /lib/modules/<kernel version>/kernel/drivers/char/...

if not then you will need to 'cd /lib/modules/fglrx/build_module' and build the module yourself using the make.sh script in that directory.

then install the newly built module with 'cd .. ; make_install.sh'.

then if all goes well you should be able to modprobe fglrx and you will be on your way.

best of luck,
jpbarto

mausie 09-11-2003 09:53 AM

er, i have no idea how to run files etc
i did /make.sh but i got message: no such file
but i KNOW it's there because ive seen that file when i tried fixing 3d in linux itself

can u maybe explain stuff more.. because im big newbie :P

jpbarto 09-11-2003 10:24 AM

sure no problem. if as root you are in the /lib/modules/fglrx/build_module directory there will be a file make.sh. the '.sh' means its a shell script (like a batch file in windows). make sure it is executable ... 'ls -l make.sh' ... on the left you should see a 9 character string of assorted 'r', 'w', and 'x' characters. It should look something like this rwxr-xr-x ... if that's all settled then you execute the script like this

'./make.sh' ... the current working directory (whatever directory you're in) is typically not in root's PATH variable. as such you have to specify ( with the './') that you want to execute the make.sh script that is in the current directory.

let me know how it goes, we'll take it one step at a time.

mausie 09-11-2003 10:37 AM

i was root #
-bash: .make.sh: Permission denied
:(

jpbarto 09-11-2003 10:45 AM

well you're root so you can change the permissions (unless there's a REALLY wierd error)

'chown root.root make.sh'
'chmod 755 make.sh'
'./make.sh'

mausie 09-11-2003 11:02 AM

ATI module generator v 2.0

kernel includes at /usr/src/linux/include not found or incomplete
file: /usr/src/linux/include/linux/version.h

jpbarto 09-11-2003 11:51 AM

Ah! well that's a simple one. You have mandrake, means your kernel was precompiled. Mandrake probably installed the kernel from some rpm named kernel-2.4.20_3-i386.rpm or something like that. You'll need to rummage around on your Mandrake CD and install the kernel source rpm as well. Should look something like kernel-2.4.20_02-src.rpm or kernel-2.4.20_03-source.rpm ... once that is installed you should be able to build the module.

jpbarto

( the other solution is to download the kernel source from kernel.org and build a new kernel but that's probably going a little far )

mausie 09-11-2003 12:03 PM

well i putted cd1 in my pc in windows and found 4 files:

kernel-2.4.21.0.13mdk-1-1mdk.i586.rpm

kernel-enterprise-2.4.21.0.13mdk-1-1mdk.i586.rpm

kernel-secure-2.4.21.0.13mdk-1-1mdk.i586.rpm

kernel-smp-2.4.21.0.13mdk-1-1mdk.i586.rpm

hope it's 1 of those
and plz explain in steps caus i dont know how to install things etc etc

and sorry i ask so much about explaining and steps otherwise i dont understand it :/

jpbarto 09-11-2003 12:06 PM

those all look like precompiled kernels... perhaps you should check at mandrakelinux.com for the source for your kernel (your current kernel version can be found out by executing uname -a). then you can use the software installer in your startup menu to install the rpm. Mandrakelinux.com will probably have more detailed information on how to install stuff (as I don't use mandrake myself, not for the last 4 years anyway).

hth,
jpbarto

mausie 09-11-2003 12:14 PM

hmm well im pretty done with mandrake tbh
what do you use? and what should i try using?
i might burn 9.2RC2 and try that 1
who knows maybe it works better

jpbarto 09-11-2003 02:47 PM

the two distro's I use are slackware 9 and Linux From Scratch (LFS). I wouldn't recommend LFS for a newbie but Slackware is pretty nice.

mausie, via google I found the source rpm for the kernel-2.4.21.0.13mdk-1-1mdk.i586.rpm (I'm assuming this is the kernel you're using).

it can be downloaded from here:
kernel-2.4.21.0.13mdk-1-1mdk.i586.rpm

I think you can install it with 'rpm -i kernel-2.4.21 ... .rpm'

let me know if you need help.

jpbarto

mausie 09-11-2003 03:47 PM

i downloaded it
i gona go to bed now
ill check the forum tommorow again and would be cool if u posted step by step how to run that file
because i have no idea how to put it on a linux partition :/

many thnx
night night

jpbarto 09-11-2003 04:19 PM

to install the rpm 'cd' to the directory containing the downloaded rpm file.

then as root execute 'rpm -i kernel-2.4.21.0.13mdk-1-1mdk.i586.rpm'.

this should install the rpm (which will put all kinds of source code into /usr/src/).

then after that you should be able to build the fglrx module.

see you tomorrow and g'night.
jpbarto

mausie 09-12-2003 06:50 AM

i saved the file in
C:\
because i have no idea how to put it on a linux drive
well i tried
cd /c
cd /win_c

couldn't get in it
how do i get into C?
and if i cant how do i put it on a linux drive :/
i tried to use PartitionMagic 8.0 and click browse on linux partition
but nope.. i couldnt see the files

jpbarto 09-12-2003 08:49 AM

could you please type 'cat /etc/fstab' and let me know what output you get

mausie 09-12-2003 09:17 AM

/dev/hda6/ext3 default 1 1

none /dev/pts devpts mode= 0620 0 0

/dev/hda8/home ext 3 defaults 1 2

none mnt/cdrom supermount dev= /dev/hdc, fs=auto, ro, --, ioharret=iso 8859-1, codepage= 850, umask= 0 0 0

none/mnt/floppy supermount dev=/dev/fd, fs= auto, --, ioharret= iso8859-1, sync, codepage= 850, umask= 0 0 0

/dev/hda1/mnt/win_c vfat ioharret=iso 8859-1, codepage= 850, umask= 0 0 0

/dev/hda5/mnt/win_d vfat ioharret=iso 8859-1, codepage= 850, umask= 0 0 0

none /proc proc defaults 0 0
/dev/hda7 swap swap defaults 0 0


hehe better too many info than nothing :P

jpbarto 09-12-2003 09:39 AM

is the file anywhere in /mnt/win_c or /mnt/win_d?

mausie 09-12-2003 10:31 AM

C:\kernel-2.4.21.0.13mdk-1-1mdk.i586.rpm

so /mnt/win_c i guess
gona try it now

mausie 09-12-2003 10:38 AM

got this message:
package already installed
:S

jpbarto 09-12-2003 11:18 AM

so then what are the contents of /usr/src?

maussie, if /usr/src is still empty, then I'm sorry I may have sent you to the wrong rpm. try downloading this one (you should be able to do it using wget) and then perform 'rpm -i' on the downloaded file...

http://rpm.pbone.net/index.php3?stat...1-1mdk.src.rpm

skadub 09-12-2003 11:47 AM

Quote:

Originally posted by jpbarto
so then what are the contents of /usr/src?

maussie, if /usr/src is still empty, then I'm sorry I may have sent you to the wrong rpm. try downloading this one (you should be able to do it using wget) and then perform 'rpm -i' on the downloaded file...

http://rpm.pbone.net/index.php3?stat...1-1mdk.src.rpm

jpbarto is right you need the src kernel rpm to be installed :)

mausie 09-12-2003 12:03 PM

ok i runned it
i had no error and no succes message
i guess it's installed now
what now?

jpbarto 09-12-2003 12:06 PM

now try to rebuild the fglrx module (however just to ensure its installed make sure there is a /usr/src/linux directory or maybe a /usr/src/2.4.21 directory or something like that)

mausie 09-13-2003 03:34 AM

well maybe this is the problem that i installed the .rpm from C:\
because i didnt know how to use the command in console to download.
There is still no /usr/scr/linux and the make.sh says it cant find that folder :((((
maybe it's better that i format and install linux again whitout the ati drivers yet so i can first do the module stuff
or i can't?

jpbarto 09-13-2003 05:10 PM

what is the file listing of /usr/src ? you can execute 'rpm -q -l ' on the rpm file to find out what files it installed and where.

jpbarto

mausie 09-15-2003 09:01 AM

never mind im done with linux
eating to much time
maybe in 2 weeks or so ill try again.. and maybe respond on this thread again, dunno :P
i dont feel like 'fuck i wanna have linux' anymore
maybe in 2 weeks or so again :P

jpbarto 09-15-2003 12:18 PM

perhaps try a different distro (in 2 weeks).

Personally I would recommend Slackware, however I've also heard good things about Debian and Knoppix.

mausie 09-18-2003 03:23 PM

ok i tried installing the .rpm again and got this message:

RPM version 4.04
Copyright (c) 1998-2000 - Red Hat, inc
This program may be freely redistributed under the terms of the GNU GPL

then i did your command...
'rpm -q -l
and it said
package not installed :(

file listening of /usr/scr

fglrx_panal_source.tgz

fglrx_sample_source.tgz

rpm execute both gets same message as excute the kernel rpm
(make.sh still doesnt work.. message again about incomplete or no files u know)

what now? :/

jpbarto 09-18-2003 08:19 PM

mausie, get ready I'm about to rant ... this shit is why I (maybe not as strong a word as 'hate' but its definately close) am not crazy about rpms. I don't have any real bad points about rpms to make and usually rpms come in very handy for many but when they go wrong ... well as you've seen over the last week+ they really go wrong.

My solution (and yes, this one will work) is go to www.kernel.org. Download the latest kernel, build it (they are plenty of posts here, lots of documentation at tldp.org, and many people here who can help you with this.) It sounds scary, it's not; its really really not. Install your new kernel and run it.

After this is done you can either build your fglrx module (we can check later to make sure that the rpm installed the files you'll need correctly). And if it didn't install correctly the tools are out there to pick the rpm apart and I can walk you through installing it by hand.

It's time to grab your system by the cojones and tell it to stop trying to mess with you.

http://www.kernel.org/pub/linux/kern...2.4.22.tar.bz2

here's a link to the latest kernel source. download it, copy the tarball (.tar.bz2) to /usr/src and execute 'tar -xvjf linux-2.4.22.tar.bz2'.

this will create a directory /usr/src/2.4.22 and you can go from there. And again, trust me, its not as scary as it sounds.

jpbarto

mausie 09-19-2003 06:58 AM

like i said before.. i dont know how to get my files on Linux partition
how? :/

skadub 09-19-2003 09:35 AM

I will try to help you, so :

1/ Log in Mandrake as 'root' (I think you can only log in console mode !)
2/ Type : " urpmi kernel-source-2.4.21-0.13mdk "
3/ Insert the CD3 when prompted to do so
4/ View if you've got /usr/src/linux-2.4.21-0.13mdk (I hope so)
5/ If you've got it (I hope so), then type : " ln -sf /usr/src/linux-2.4.21-0.13mdk linux "
6/ Go to the directory containing your ATI drivers and use the script make.sh as follow " ./make.sh "

Hope this will help you ! :)

mausie 09-19-2003 09:39 AM

nope i dont have cd3

skadub 09-19-2003 09:47 AM

But have you got the file 'kernel-source-2.4.21-0.13mdk.rpm' sowewhere

mausie 09-19-2003 09:50 AM

nope
and i did your command
no package named kernel-source-2.4.21-0.13mdk

and the file jpbarto told me to download = linux-2.4.22.tar.bz2
and it's on mnt/win_c

skadub 09-19-2003 09:55 AM

The file I told you to download is a precompiled kernel headers and the one He told you to download is the source of the linux kernel (to be build manually, difficult for a :newbie:).

If you haven't got the CD3 it's normal that no package named kernel-source-2.4.21-0.13mdk was found since it's on it.

mausie 09-19-2003 09:56 AM

ok what should i do?
download cd 3?

skadub 09-19-2003 09:57 AM

I'm trying to search for a downloadable file else if you can download CD3 do it

mausie 09-19-2003 10:04 AM

i hope u can find it
cause the download isnt very fast

skadub 09-19-2003 10:04 AM

You can download it here : Mandrake Kernel Source :D (This is a 35.4MB file)
Download it and try to do what I say before ;)

EDIT Don't know if the link to an ftp server works so if not just copy the link in a new window !

mausie 09-19-2003 10:12 AM

12 kb/s
ill message a new post when the download is done
in 30-50 min :/

skadub 09-19-2003 10:18 AM

When you will have download it, do what I've said before, but after logging in Mandrake as root do ' mv /mnt/<your windows partition name>/kernel-source-2.4.21-0.13mdk.rpm /root ' then ' cd /root ' and ' urpmi ./kernel-source-2.4.21-0.13mdk.rpm '

mausie 09-19-2003 10:41 AM

done downloading
gona do that stuff soon
im doing some importend stuff atm
i hope i can do it soon this evening or maybe tommorow
i hope u still around then

edit: ah fuck it.. gona do it now :D


All times are GMT -5. The time now is 03:51 AM.