Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-29-2003, 11:21 PM
|
#1
|
Member
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261
Rep:
|
Why compile a new Kernel? What's it all about?
I would like to know exectly what is the Kernel and why does everyone talk about re compiling it? Is that advanced stuff, or should I be trying to compile mine?
Also, how do I access my Windows files through Linux. i have 2 hard drives 1 all windows, 1 all Linux.
Thanks
|
|
|
08-29-2003, 11:28 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Kernel: The central module of an operating system. It is the part of the operating system that loads first, and it remains in main memory. Because it stays in memory, it is important for the kernel to be as small as possible while still providing all the essential services required by other parts of the operating system and applications. Typically, the kernel is responsible for memory management, process and task management, and disk management.
Most recompile their kernel for optimization on their machine, to enable and disable services and such that they need and don't need.
To access your Windows files in Linux, you'll need to mount them.
man mount for more details. Also this is asked all the time, a quick search will find your answers. Note though, if your Windows is NTFS, you'll only be able to read from it, not write though.
Regards.
|
|
|
08-29-2003, 11:30 PM
|
#3
|
Senior Member
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307
Rep:
|
The kernel is the engine of the Linux OS. If it were a DOS system, it would be something like command.com, except this is also where hardware support, as well as resource management is handled as well.
Many will say that it's advanced stuff and newbies should stay clear of it, but I say that statement is misleading. In fact to squeeze every last drop of performance on your system, tweaking the kernel is a must. The only highly important thing that you must have is the knowledge of your hardware, eg. motherboard type, NIC type, the amount of RAM you have, your processor type, the USB support that you want (keyboard, mouse, storage devices), etc.
However, have no fear if you left out something, you can always recompile later.
Accessing your Windows partition:
Assuming your hard drive has only one partition, then your Windows drive would be /dev/hda1
You should be able to mount it if you have defined it in your /etc/fstab file... eg. mount /mnt/windows
If you could post the contents of your fstab, we would be able to assist you more.
|
|
|
08-29-2003, 11:34 PM
|
#4
|
Member
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261
Original Poster
Rep:
|
My fstab
Here's my FSTAB : (I haven't added anything to it Redhat 9 defaults only)
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdb2 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
|
|
|
08-30-2003, 12:33 AM
|
#5
|
Member
Registered: Aug 2003
Distribution: Slackware
Posts: 255
Rep:
|
http://www.linuxquestions.org/questi...threadid=82837
check out that thread
it should help you out to access your windows partition(s) through linux and vice versa
hope this helps!
|
|
|
08-30-2003, 01:46 AM
|
#6
|
Member
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261
Original Poster
Rep:
|
Thanks i figured out how to access windows and extended partitions.
|
|
|
08-30-2003, 01:47 AM
|
#7
|
Member
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261
Original Poster
Rep:
|
Is the Kernel something that can be viewed like a text file, and you pick and choose parts of it....or is it like a binary or something?
|
|
|
08-30-2003, 01:48 AM
|
#8
|
Senior Member
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307
Rep:
|
add this line to your fstab:
Code:
/dev/hda1 /mnt/windows vfat noauto,user,ro 0 0
This is assuming that your windows partition is fat32. If it is ntfs then change the vfat bit to ntfs.
If you want to write onto that drive you should change the ro bit to rw, however this is highly dangerous if your win partition is ntfs.
If you want the partition to be automounted on boot then change the noauto part to auto
Also as root type this:
mkdir /mnt/windows && chmod 777 /mnt/windows
Now, try mounting your windows partition (as normal user):
mount /mnt/windows
To see what is there (after mounting):
ls /mnt/windows
Hope this helps!
|
|
|
08-30-2003, 01:55 AM
|
#9
|
Member
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261
Original Poster
Rep:
|
I did most of what you typed already. I found it on a search of forum, however I did not do the chmod 777 /mnt/windows part. What does that do?
Seems like it works without it.
Thanks for the help
|
|
|
08-30-2003, 03:49 AM
|
#10
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep:
|
Many people compile newer kernels because they want to be up to date or they have hardware that the newer kernels supports better than the older kernels. You can always compile your orginal kernel or older kernels.
The kernel is source code written in C programming language, so yes its a text file. Yes theres ways to pick what parts to leave in and what parts to leave out. Theres four ways of doing this. The manual way is using a text editor and going through the ".config" file. There is also a text gui and a graphical gui to pick what you want to include in the kernel. The fourth way is using your original config file by typing oldconfig in the kernel directory.
If anybody asks you what LINUX version are you running, say the kernel version instead of the distribution.
The chmod is like the attributes in DOS but with more features. Since UNIX/LINUX doesn't rely on the extension like in DOS/Windows, it uses file modes. Mode 777 makes the directory or files be read, write, execute for all groups, users, and others. Theres chown the changes the ownership of a directory or file. I suggest you look up chmod and chown for more information.
Compiling a kernel takes a long time. It can take around 1 hour or more depending on your processor, filesystem, and memory. You may want to do it when you are not planning to do any business/shool/pleasure work on your computer.
|
|
|
08-30-2003, 10:25 PM
|
#11
|
Member
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261
Original Poster
Rep:
|
Thanks for the responses everybody!
|
|
|
08-31-2003, 01:19 AM
|
#12
|
Senior Member
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307
Rep:
|
I never do the chmod part too, but some people have reported that the mount point won't be accessable to non-root without it... must be some obscure distro that they use... so I thought, ahh what the hell.
Anyway, congrats glenn.
|
|
|
All times are GMT -5. The time now is 04:28 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|