Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
empty /boot but boot partition has kernels
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
anydoby
n00b
n00b


Joined: 25 Dec 2014
Posts: 42

PostPosted: Wed Jan 21, 2015 8:15 pm    Post subject: empty /boot but boot partition has kernels Reply with quote

Hi guys. I'm having a fun time detecting what I am really booting from. My boot partition is on /dev/mapper/sil_bgbhajacbddh2.

Code:

localhost linux # mount /boot
localhost linux # ls /boot   (nothing)
localhost linux # mount -v /boot
mount: /dev/mapper/sil_bgbhajacbddh2 mounted on /boot.

localhost linux # mount /dev/mapper/sil_bgbhajacbddh2 /mnt/boot
localhost linux # ls /mnt/boot
grub                                      kernel-genkernel-x86_64-3.17.7-gentoo
initramfs-genkernel-x86_64-3.17.7-gentoo  System.map-genkernel-x86_64-3.17.7-gentoo


So basically if I mount boot partition to the /boot I don't see anything. If mounted somewhere else I see its contents. What does this mean?
Back to top
View user's profile Send private message
BlueFusion
Guru
Guru


Joined: 08 Mar 2006
Posts: 371

PostPosted: Wed Jan 21, 2015 8:18 pm    Post subject: Reply with quote

Check your /etc/fstab entry for the proper /boot record
_________________
i7-940 2.93Ghz | ASUS P6T Deluxe (v.1) | 24GB Triple Channel RAM | nVidia GTX660
4x 4TB Seagate NAS HDD (Btrfs raid5) | 2x 120GB Samsung 850 EVO SSD (Btrfs raid1)
Back to top
View user's profile Send private message
anydoby
n00b
n00b


Joined: 25 Dec 2014
Posts: 42

PostPosted: Wed Jan 21, 2015 8:40 pm    Post subject: Reply with quote

BlueFusion wrote:
Check your /etc/fstab entry for the proper /boot record


:?

Code:

localhost linux # cat /etc/fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>         <mountpoint>   <type>      <opts>      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT      /boot      ext2      noauto,noatime   1 2
#/dev/ROOT      /      ext3      noatime      0 1
#/dev/SWAP      none      swap      sw      0 0
/dev/cdrom      /mnt/cdrom   auto      noauto,user   0 0
#/dev/fd0      /mnt/floppy   auto      noauto      0 0

/dev/mapper/sil_bgbhajacbddh2   /boot      ext2   noauto,noatime     1 2
/dev/sdd5         none      swap   sw         0 1
/dev/mapper/sil_bgbhajacbddh4   /      ext4   noatime         0 1
/dev/sdd1         /home      ext4   noatime,discard      0 1
/dev/sdc2         /mnt/hitachi   ntfs-3g   defaults      0 0


It's correct. Nevertheless its empty when I mount /boot
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7090
Location: Saint Amant, Acadiana

PostPosted: Wed Jan 21, 2015 8:41 pm    Post subject: Re: empty /boot but boot partition has kernels Reply with quote

anydoby wrote:
Hi guys. I'm having a fun time detecting what I am really booting from. My boot partition is on /dev/mapper/sil_bgbhajacbddh2.

Code:

localhost linux # mount /boot
localhost linux # ls /boot   (nothing)
localhost linux # mount -v /boot
mount: /dev/mapper/sil_bgbhajacbddh2 mounted on /boot.

localhost linux # mount /dev/mapper/sil_bgbhajacbddh2 /mnt/boot
localhost linux # ls /mnt/boot
grub                                      kernel-genkernel-x86_64-3.17.7-gentoo
initramfs-genkernel-x86_64-3.17.7-gentoo  System.map-genkernel-x86_64-3.17.7-gentoo


So basically if I mount boot partition to the /boot I don't see anything. If mounted somewhere else I see its contents. What does this mean?


This means your /boot was not mounted when you installed your kernel, it is in /boot directory on / now.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
anydoby
n00b
n00b


Joined: 25 Dec 2014
Posts: 42

PostPosted: Wed Jan 21, 2015 8:53 pm    Post subject: Re: empty /boot but boot partition has kernels Reply with quote

I'm writing this from ubuntu, since when I compiled a kernel with some additional flags I needed and installed it to the /boot manually the next time I booted I got this in dmesg:

Code:

[   21.877921] ipv6: disagrees about version of symbol module_layout
[   21.895743] processor: disagrees about version of symbol module_layout
[   21.895744] processor: disagrees about version of symbol module_layout
[   21.895800] processor: disagrees about version of symbol module_layout
[   21.895815] processor: disagrees about version of symbol module_layout
[   21.896145] processor: disagrees about version of symbol module_layout
[   21.896164] processor: disagrees about version of symbol module_layout
[   21.896187] processor: disagrees about version of symbol module_layout
[   21.896205] processor: disagrees about version of symbol module_layout
[   21.896419] processor: disagrees about version of symbol module_layout
[   21.896438] processor: disagrees about version of symbol module_layout
[   21.896460] processor: disagrees about version of symbol module_layout
[   21.896480] processor: disagrees about version of symbol module_layout
[   21.896685] processor: disagrees about version of symbol module_layout
[   21.896726] processor: disagrees about version of symbol module_layout
[   21.896817] processor: disagrees about version of symbol module_layout
[   21.896858] processor: disagrees about version of symbol module_layout
[   21.896996] processor: disagrees about version of symbol module_layout
[   21.897039] processor: disagrees about version of symbol module_layout
[   21.897093] processor: disagrees about version of symbol module_layout
[   21.897133] processor: disagrees about version of symbol module_layout
[   21.897348] processor: disagrees about version of symbol module_layout
[   21.897365] processor: disagrees about version of symbol module_layout
[   21.897389] processor: disagrees about version of symbol module_layout
[   21.897407] processor: disagrees about version of symbol module_layout
[   21.897694] processor: disagrees about version of symbol module_layout
[   21.897711] processor: disagrees about version of symbol module_layout
[   21.897735] processor: disagrees about version of symbol module_layout
[   21.897753] processor: disagrees about version of symbol module_layout
[   21.898039] processor: disagrees about version of symbol module_layout
[   21.898058] processor: disagrees about version of symbol module_layout
[   21.898080] processor: disagrees about version of symbol module_layout
[   21.898099] processor: disagrees about version of symbol module_layout
[   21.898734] button: disagrees about version of symbol module_layout
[   21.912588] button: disagrees about version of symbol module_layout
[   21.921177] pata_acpi: disagrees about version of symbol module_layout
[   21.921178] pata_acpi: disagrees about version of symbol module_layout
[   21.922167] ata_generic: disagrees about version of symbol module_layout
[   21.922258] ata_generic: disagrees about version of symbol module_layout
[   21.922298] ata_generic: disagrees about version of symbol module_layout
[   21.922336] ata_generic: disagrees about version of symbol module_layout
[   21.922568] pata_acpi: disagrees about version of symbol module_layout
[   21.922603] ata_generic: disagrees about version of symbol module_layout
[   21.925994] mii: disagrees about version of symbol module_layout
[   21.925995] mii: disagrees about version of symbol module_layout
[   21.926722] soundcore: disagrees about version of symbol module_layout
[   21.926752] soundcore: disagrees about version of symbol module_layout
[   21.926907] soundcore: disagrees about version of symbol module_layout
[   21.927572] i2c_i801: disagrees about version of symbol module_layout
[   21.963422] uvcvideo: disagrees about version of symbol module_layout
[   21.990187] joydev: disagrees about version of symbol module_layout
[   22.001534] button: disagrees about version of symbol module_layout
[   22.008508] microcode: disagrees about version of symbol module_layout
[   22.008526] microcode: disagrees about version of symbol module_layout
[   22.008548] microcode: disagrees about version of symbol module_layout
[   22.008561] microcode: disagrees about version of symbol module_layout
[   22.011113] kvm: disagrees about version of symbol module_layout
[   22.011198] kvm: disagrees about version of symbol module_layout
[   22.011248] kvm: disagrees about version of symbol module_layout
[   22.011322] kvm: disagrees about version of symbol module_layout
[   22.011795] coretemp: disagrees about version of symbol module_layout
[   22.011838] coretemp: disagrees about version of symbol module_layout
[   22.011862] coretemp: disagrees about version of symbol module_layout
[   22.011862] coretemp: disagrees about version of symbol module_layout
[   22.011911] processor: disagrees about version of symbol module_layout
[   22.012061] processor: disagrees about version of symbol module_layout
[   22.013834] processor: disagrees about version of symbol module_layout
[   22.013914] processor: disagrees about version of symbol module_layout
[   22.057076] rfkill: disagrees about version of symbol module_layout
[   24.843111] ipv6: disagrees about version of symbol module_layout


No network, no sound.

I'm afraid I'll leave you for some time - going back to gentoo.
Back to top
View user's profile Send private message
anydoby
n00b
n00b


Joined: 25 Dec 2014
Posts: 42

PostPosted: Wed Jan 21, 2015 9:11 pm    Post subject: Re: empty /boot but boot partition has kernels Reply with quote

Ok. I'm back again with sound and the new kernel. Wiped the /boot directory altogether. From now on I'll build kernel manually and copy it manually to the manually mounted boot partition in a separate mount folder, and manually add a grub.cfg entry (learned enough in the process :) ). I still don't see the contents of the /boot directory though.

Thanks everyone who helped.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7090
Location: Saint Amant, Acadiana

PostPosted: Wed Jan 21, 2015 9:36 pm    Post subject: Reply with quote

You are supposed to see empty /boot if it is not mounted. It does not need to be mounted to run your box. You only need to mount it when you upgrade/add/remove kernels.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5761

PostPosted: Thu Jan 22, 2015 7:27 pm    Post subject: Re: empty /boot but boot partition has kernels Reply with quote

If you really had the partition mounted at /boot, that command to mount it at /mnt/boot should've given you an error (without -o bind). Post the contents of /etc/mtab, /proc/self/mounts, and ls -l /etc/mtab.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum