Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/boot missing (even though it's booting alright) [SOLVED]
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
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 215

PostPosted: Thu May 18, 2017 8:39 pm    Post subject: /boot missing (even though it's booting alright) [SOLVED] Reply with quote

Little bit curios about my /boot missing from lsblk (beeing nvme0n1p1)

Code:
gentoo gentoo # lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sdb           8:16   0   1.9T  0 disk
└─sdb1        8:17   0   1.5T  0 part /home
sda           8:0    0 953.9G  0 disk
├─sda2        8:2    0    32G  0 part
├─sda3        8:3    0   700G  0 part
└─sda1        8:1    0   512M  0 part
nvme0n1     259:0    0 953.9G  0 disk
├─nvme0n1p3 259:3    0   200G  0 part /
├─nvme0n1p1 259:1    0   512M  0 part
└─nvme0n1p2 259:2    0    32G  0 part [SWAP]


fstab

Code:

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

UUID=5E66-2EB7          /boot           vfat            noauto,noatime  1 2
UUID=2c535bff-e380-4863-98dd-4d301b071a55               /               ext4            defaults,relatime               0 1
UUID=7d856940-8215-4cbe-a3ba-d44f267b51c1               none            swap            sw              0 0
UUID=5c70ac1a-1ff1-4948-ba0a-20c2b833cc89               /home           ext4            noatime         0 2
#/dev/cdrom             /mnt/cdrom   auto            noauto,ro   0 0



and my blkid

Code:
 gentoo gentoo # blkid
/dev/nvme0n1p1: UUID="5E66-2EB7" TYPE="vfat" PARTLABEL="EFI System" PARTUUID="a9ddeff0-15de-4c0b-a330-ad3d4f125521"
/dev/nvme0n1p2: UUID="7d856940-8215-4cbe-a3ba-d44f267b51c1" TYPE="swap" PARTLABEL="Linux swap" PARTUUID="27c9558e-9170-45d6-83c2-44b8746333e6"
/dev/nvme0n1p3: UUID="2c535bff-e380-4863-98dd-4d301b071a55" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="77885d15-018d-45ca-b41d-9ffcbf344430"
/dev/sda1: UUID="E147-AAB0" TYPE="vfat" PARTLABEL="EFI System" PARTUUID="22238114-93fa-4ee2-8ff0-e5b341458612"
/dev/sda2: UUID="f08f9de2-c05f-4565-8c97-e83f76594fc2" TYPE="swap" PARTLABEL="Linux swap" PARTUUID="44c04a94-e20d-4da0-99ef-0e620f4402a4"
/dev/sda3: UUID="e2f34828-b70d-49f7-b700-70d2d40a8935" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="ee33797c-5155-401c-96c5-228430cd28c7"
/dev/sdb1: UUID="5c70ac1a-1ff1-4948-ba0a-20c2b833cc89" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="aaec520e-d901-4fd7-884b-cd634b505e63"
/dev/nvme0n1: PTUUID="3cb90286-7957-4ab2-af28-38a7ba1bfce0" PTTYPE="gpt"


mount

Code:
gentoo gentoo # mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=8234541,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
/dev/nvme0n1p3 on / type ext4 (rw,relatime,data=ordered)
tmpfs on /run type tmpfs (rw,nodev,relatime,size=6588040k,mode=755)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib64/rc/sh/cgroup-release-agent.sh,name=openrc)
cpuset on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cpu on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
cpuacct on /sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
freezer on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
/dev/sdb1 on /home type ext4 (rw,noatime,data=ordered)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
none on /run/user/1002 type tmpfs (rw,relatime,mode=700,uid=1002)


Everything is working fine, but still a bit curios about my /boot mount missing.


Last edited by tuggbuss on Fri May 19, 2017 5:38 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43223
Location: 56N 3W

PostPosted: Thu May 18, 2017 8:44 pm    Post subject: Reply with quote

tuggbuss,

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

UUID=5E66-2EB7          /boot           vfat            noauto,noatime  1 2


You have the noauto option set in fstab, so /boot is not mouted automatically for you.
The kernel does not read /boot during the boot process.
When the kernel is loaded from /boot, the boot loader is doing the reading. At that time, the file system tree does not exist.
That's assembled by reading fstab later in the startup sequence.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 215

PostPosted: Thu May 18, 2017 9:05 pm    Post subject: Reply with quote

NeddySeagoon wrote:
tuggbuss,

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

UUID=5E66-2EB7          /boot           vfat            noauto,noatime  1 2


You have the noauto option set in fstab, so /boot is not mouted automatically for you.
The kernel does not read /boot during the boot process.
When the kernel is loaded from /boot, the boot loader is doing the reading. At that time, the file system tree does not exist.
That's assembled by reading fstab later in the startup sequence.


omg, how did i miss that one. noauto means what it means. Sorry about that
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10263
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu May 18, 2017 9:11 pm    Post subject: Reply with quote

By the way, this is a good default. Many people think that it's a good idea to keep the partitions you're not using unmounted, the better to not accidentally erase files needed to boot.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 215

PostPosted: Fri May 19, 2017 6:10 am    Post subject: Reply with quote

John R. Graham wrote:
By the way, this is a good default. Many people think that it's a good idea to keep the partitions you're not using unmounted, the better to not accidentally erase files needed to boot.

- John


I understand the point of that. Thanks for the suggestion.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5771

PostPosted: Fri May 19, 2017 2:21 pm    Post subject: Reply with quote

I prefer keeping /boot mounted but readonly, having it noauto leaves open the possibility of accidentally installing bootloader/kernel updates to the rootfs where they'll get silently ignored.
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