View previous topic :: View next topic |
Author |
Message |
anydoby n00b
Joined: 25 Dec 2014 Posts: 47
|
Posted: Wed Jan 21, 2015 8:15 pm Post subject: empty /boot but boot partition has kernels |
|
|
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 |
|
|
BlueFusion Guru
Joined: 08 Mar 2006 Posts: 371
|
Posted: Wed Jan 21, 2015 8:18 pm Post subject: |
|
|
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 |
|
|
anydoby n00b
Joined: 25 Dec 2014 Posts: 47
|
Posted: Wed Jan 21, 2015 8:40 pm Post subject: |
|
|
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 |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Wed Jan 21, 2015 8:41 pm Post subject: Re: empty /boot but boot partition has kernels |
|
|
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. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
anydoby n00b
Joined: 25 Dec 2014 Posts: 47
|
Posted: Wed Jan 21, 2015 8:53 pm Post subject: Re: empty /boot but boot partition has kernels |
|
|
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 |
|
|
anydoby n00b
Joined: 25 Dec 2014 Posts: 47
|
Posted: Wed Jan 21, 2015 9:11 pm Post subject: Re: empty /boot but boot partition has kernels |
|
|
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 |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Thu Jan 22, 2015 7:27 pm Post subject: Re: empty /boot but boot partition has kernels |
|
|
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 |
|
|
|