LinuxQuestions.org
Help answer threads with 0 replies.
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 08-21-2012, 03:24 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
Mount path


I use df command to show the volumn , only found /home , / , /usr , /var , can advise if I want the path /boot also shown from the command df , what can i do ?

thx
 
Old 08-21-2012, 03:32 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

if you have mounted something at /boot it should be shown by df. Can you confirm that you really have a separate /boot partition?

Evo2.
 
Old 08-21-2012, 03:50 AM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by evo2 View Post
Hi,

if you have mounted something at /boot it should be shown by df. Can you confirm that you really have a separate /boot partition?

Evo2.
Yes , I have separate /boot partition but not shown by the command df .

Thanks.
 
Old 08-21-2012, 06:20 AM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Check commands "mount", "cat /etc/mtab" and "df /boot". If "df /boot" show exactly the same data as "df /" then you have not mounted /boot.
 
Old 08-21-2012, 06:20 AM   #5
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,690

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
Er... you don't want to mount anything to /boot. That's where the Linux kernel(s) live and boot from The minute you mounted anything there you would no longer have any access to the disk copy of the kernel. The running copy would have been loaded to RAM I'm thinking. No... It's just too ugly to think about. I can see no reason for mounting anything to /boot.

Why do you want df to show /boot? Why don't you just -
Code:
cd /
ls -al
and you'll see all the directories.

Play Bonny!
 
Old 08-21-2012, 06:42 AM   #6
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Quote:
Originally Posted by Soadyheid View Post
That's where the Linux kernel(s) live and boot from The minute you mounted anything there you would no longer have any access to the disk copy of the kernel. The running copy would have been loaded to RAM I'm thinking. No... It's just too ugly to think about. I can see no reason for mounting anything to /boot.
Don't panic He only ask about not showing /boot mount point. Anyway, about mounting, there are some reasons to do that on working system, and you are completly safe, because after reboot, orginal partition will be restored in that mounpoint, as long fstab hasn't been modified. For example, time ago, I realized that my boot partition was to small to properly install updated kernel, which fixes one of annoying bug. I remounted it on free directory, updated, and moved files to orginal boot partition. Other possibility is to unmount /boot partition or remount as read only (for example for security reason) if you currently do not maintenance system, it is necessary only during booting and updating.
 
1 members found this post helpful.
Old 08-21-2012, 08:30 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Soadyheid View Post
That's where the Linux kernel(s) live and boot from The minute you mounted anything there you would no longer have any access to the disk copy of the kernel. The running copy would have been loaded to RAM I'm thinking. No... It's just too ugly to think about. I can see no reason for mounting anything to /boot.
Just for clarification: The kernel is loaded into RAM at boot time from your boot-manager. You don't need to have the kernel available on-disk while running. If you have a separate /boot partition this partition does not have to be mounted on a running system, except of course in the case you want to install newer kernels or change the bootloader configuration.
Therefore it is totally safe (but not really advisable) to mount anything to /boot.
 
Old 08-21-2012, 08:55 AM   #8
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,690

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
OK, I stand corrected. I just couldn't think of a valid reason for using /boot as a mount point. Thanks eSelex for clarification on that point. I usually hold two kernels in /boot and delete the oldest one before each upgrade. Obviously with something mounted on /boot you won't be able to upgrade the kernel without a load of faffing about.
If the Op has a separate /boot partition then you would get a result from df. He didn't mention his partition layout though.

I'll just go and stand in the corner then. Who's got the pointy hat?

Play Bonny!
 
Old 08-21-2012, 06:08 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,397

Rep: Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777
Also, under GRUB < v2, /boot can only be on a std partition or a a RAID1; it cannot be on an LVM.
Hence you'll often see /boot as a separate mt pt.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mount a Windows path grob115 Linux - Server 6 12-30-2010 06:10 AM
How to mount a 'path' from the network? ggyyree Linux - Newbie 3 12-20-2010 10:46 AM
Mount path ust Linux - Networking 2 04-29-2008 01:20 AM
how to mount a path ust Linux - Distributions 2 05-11-2005 10:34 AM
mount /dev/ path ust Linux - General 5 01-27-2005 09:33 PM

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

All times are GMT -5. The time now is 09:36 AM.

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