LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 10-15-2009, 06:26 AM   #1
Deluka
Member
 
Registered: Jul 2009
Location: Belguim
Distribution: Fedora 11
Posts: 42

Rep: Reputation: 16
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
 
Old 10-15-2009, 06:35 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
/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
 
Old 10-15-2009, 06:44 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
"/" 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.
 
Old 10-15-2009, 07:28 AM   #4
pierre2
Member
 
Registered: May 2009
Location: Perth, AU
Distribution: LinuxMint
Posts: 388
Blog Entries: 9

Rep: Reputation: 88
The vmlinuz - kernel is generally found in the /boot directory.

Last edited by pierre2; 10-15-2009 at 07:39 AM.
 
Old 10-15-2009, 07:36 AM   #5
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 pierre2 View Post
The limuz - kernel is generally found in the /boot directory.
It's the Linux kernel.......the name of the file is typically "vmlinuz", but it could just as well be "fred"....The system will attempt to boot whatever file is named in the kernel line in the grub config file.
 
Old 10-15-2009, 09:43 AM   #6
Deluka
Member
 
Registered: Jul 2009
Location: Belguim
Distribution: Fedora 11
Posts: 42

Original Poster
Rep: Reputation: 16
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
/dev/mapper/vg_delukaserver-lv_root /                       ext4    defaults        1 1
/dev/mapper/vg_delukaserver-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
and mount gives me this

Code:
/dev/mapper/vg_delukaserver-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
gvfs-fuse-daemon on /home/Deluka/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=Deluka)
For as far i can see no file system called "/boot" mounted.
So when they ask me which Linux partition generally contains the kernel?
I say "/"

Last edited by Deluka; 10-15-2009 at 09:44 AM.
 
Old 10-15-2009, 10:33 AM   #7
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 Deluka View Post
For as far i can see no file system called "/boot" mounted.
So when they ask me which Linux partition generally contains the kernel?
I say "/"
Sorry---this is not correct.

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.)
 
Old 10-15-2009, 11:40 PM   #8
Deluka
Member
 
Registered: Jul 2009
Location: Belguim
Distribution: Fedora 11
Posts: 42

Original Poster
Rep: Reputation: 16
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
 
Old 10-16-2009, 12:01 AM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openSolaris hosed the partition table. Why? Changing primary to secondary partition? JZL240I-U Solaris / OpenSolaris 9 10-16-2008 10:48 AM
tricky backup of Linux system to NTFS partition to increase partition size Pandarsson Linux - General 5 07-09-2008 02:35 PM
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 10:46 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:08 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