On what partition ?
Hey there
Me and my friend are having some problems here. I'm saying that "/" partition has the kernel under the boot dir. And my friend is saying that "/boot" partition contains the kernel. How is right Maybe one of you can help us out |
/boot, like any other directory may be part of the / file system or a separate file system s-- o both you and your friend can be right!
There a few reasons why people might want to have /boot as a separate file system so it is often done but it does not have to be and is often not done :) |
"/" and "/boot" are labels for nodes in the filesystem directory tree---they do not identify partitions. Partitions which are formatted (ie they have a filesystem) can be mounted to any point on the directory tree.
Many Linux installs have only one partition (plus swap) The "mount" command will show you hoouw your particular system is configured. |
The vmlinuz - kernel is generally found in the /boot directory.
|
Quote:
|
Well checked it here and found it under the /boot dir.
when i check fstab i get this Code:
UUID=3fc2c71b-ed29-40fa-ba65-01f7c418051e /boot ext3 defaults 1 2 Code:
/dev/mapper/vg_delukaserver-lv_root on / type ext4 (rw) So when they ask me which Linux partition generally contains the kernel? I say "/" |
Quote:
You would not mount a filesystem called "/boot"---you would mount a partition (containing a filesystem) TO /boot Take it from the top: Start with one partition mounted to "/". In the **normal** Linux setup, there will be a subdirectory named "/boot" which will **normally** contain the kernel. Now--and only if you have a particular reason--mount one or more additional partitions to different places on the directory tree. Now the system will access the added partitions instead of the original one. (If you do this on an existing system, you would have to transfer the data to the newly-mounted partition.) |
Damm it seems that the answer to my simple question is a bit harder then i thought it would be.
I got this from my exam and for some reason they don't review the test. The quistion i got is this ... which Linux partition generally contains the kernel? A) /boot B) / C) root D) swap But if i understand it correct none off the above are really correct lol |
If you have 4 partitions setup and mounted in that way, then the question almost makes sense. The whole point is that it is more correct to say: "Which directory contains the kernel?"
Ignoring swap, I hope you can see the absurdity of the question if there is only one partition, mounted at /, and therefore containing /, /boot, and /root |
All times are GMT -5. The time now is 03:42 AM. |