LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-06-2006, 01:54 PM   #1
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Rep: Reputation: 47
Linux Kernel


I just want to know whether the following information gives you the version of my Linux Kernel

I guess my Kernel is ' 2.6.12 '.

Please tell me if I am wrong. You may know some other command to find exact Kernel version.
---------------------------------------------------------------------------------------------------

[nissanka@c83-250-100-230 ~]$ uname -a
Linux c83-250-100-230.bredband.comhem.se 2.6.12-12mdk #1 Fri Sep 9 17:26:56 CEST 2005 x86_64 AMD Athlon(tm) 64 Processor 3200+ unknown GNU/Linux
[nissanka@c83-250-100-230 ~]$
 
Old 10-06-2006, 02:09 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
You are correct in that your kernel is that version.
 
Old 10-06-2006, 02:32 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Gins
I just want to know whether the following information gives you the version of my Linux Kernel

I guess my Kernel is ' 2.6.12 '.

Please tell me if I am wrong. You may know some other command to find exact Kernel version.
---------------------------------------------------------------------------------------------------

[nissanka@c83-250-100-230 ~]$ uname -a
Linux c83-250-100-230.bredband.comhem.se 2.6.12-12mdk #1 Fri Sep 9 17:26:56 CEST 2005 x86_64 AMD Athlon(tm) 64 Processor 3200+ unknown GNU/Linux
[nissanka@c83-250-100-230 ~]$
To be precise, your kernel is 2.6.12-12mdk This presumably means that someone at Mandrake did some custom tweaks to a stock kernel.

You can also find your kernel version with "cat /boot"
 
Old 10-06-2006, 03:12 PM   #4
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
I thank both of your for the replies

pixellany

What is the cat command you know to find the Kernel?
Please tell me.

[nissanka@c83-250-100-230 ~]$ cat kernel
cat: kernel: No such file or directory
[nissanka@c83-250-100-230 ~]$

[nissanka@c83-250-100-230 ~]$ boot kernel
bash: boot: command not found
[nissanka@c83-250-100-230 ~]$
 
Old 10-06-2006, 03:39 PM   #5
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Pixellany said
Quote:
You can also find your kernel version with "cat /boot"
Although I get
Quote:
su -c "cat /boot"
Password:
cat: /boot: Is a directory
"uname -r" is probably the most concise way to get your kernel version up.
 
Old 10-06-2006, 03:43 PM   #6
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
[nissanka@c83-250-100-230 ~]$ uname -r
2.6.12-12mdk
[nissanka@c83-250-100-230 ~]$

The following is the strange cat/boot output.
--------------------------------------------------------------------------------------------------------
[nissanka@c83-250-100-230 ~]$ su -c "cat /boot"
Password:
cat: /boot: Is a directory
[nissanka@c83-250-100-230 ~]$
---------------------------------------------------------------------------------------------------------
I don't understand it.
 
Old 10-06-2006, 03:50 PM   #7
sumguy231
Member
 
Registered: Apr 2004
Location: North America
Distribution: Kubuntu 7.04 - Feisty Fawn
Posts: 296

Rep: Reputation: 30
Cat concatenates files to standard output, so it's complaining that you're giving it a directory instead of a file. If you want to list the contents of /boot, use ls.

And as XavierP said, the output of uname -r is your current kernel version.

Last edited by sumguy231; 10-06-2006 at 03:53 PM.
 
Old 10-06-2006, 03:56 PM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Well---i did a big boo-boo, didn't I.....

"ls" for directories
"cat" or "more" for files
 
Old 10-06-2006, 04:42 PM   #9
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
The reason I ask this question is to solve a perennial problem.

When I bought this computer, I asked them to fix a SATA hardrive. It is 180GB harddrive. I downloaded Mandriva Linux 2006 from a FTP server.

I couldn't install it. Because of drivers. I struggled more than 2 weeks and gave ít up. Mandriva Linux 64 bit version can't be installed on a SATA harddrive. I looked for drivers ,all over the world, on the Internet.

I could install Windows XP on it. The SATA hardrive hasn't got any problemś with Windows XP.

Then I bought a 200GB Samsung IDE harddrive and put it inside the computer. Just disconnect the cables of the SATA harddrive.

I installed Mandriva on it. So both Mandriva Linux and Windows XP is installed on this Samsung IDE harddrive.

When the computer starts, LILO helps to select Mandriva Linux or Windows XP. The default is Mandriva Linux. I rarely look at the Windows XP.

Today I found out there is a driver for SATA drive.

http://www.sis.com/download/download_step1.php

If you look at the above site, you will see the drives for SATA harddrive.

My SATA harddrive which is 180GB is just inside the computer.
I disconnected the cables.


Now driver is available. So I hope I could put the cable back on my SATA harddrive and use the space.

How can I proceed? Your thoughts are welcome.


Last edited by Gins; 10-06-2006 at 05:16 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM
Linux kernel debugging and Linux kernel module programming Igor007 Programming 2 08-13-2005 05:12 AM
Linux kernel debugging and Linux kernel module programming Igor007 Linux - Enterprise 3 08-12-2005 02:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration