ronniepinsky
December 1st, 2013, 10:47 PM
My grub install cannot find my grub.cfg automatically for some reason. This leaves me to do
configfile(hd0,gpt1)=/boot/grub/grub.cfg
which finds my grub.cfg and boots normally.
I mounted the USB EFI partition at /media/test and I installed grub with
sudo grub-install --target=x86_64-efi --efi-directory=/media/test --bootloader-id=grub --removable --recheck --debug
This is mount
/dev/sdb1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /sys/firmware/efi/efivars type efivarfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
This is the stub grub.cfg on the USB EFI partition. The full grub.cfg is on the OS partition.
search.fs_uuid a60289d6-c308-44f1-9ce6-85db3482ff32 root hd1,gpt1
set prefix=($root)/boot/grub
configfile $prefix/grub.cfg
This is parted
Model: ATA SAMSUNG MZMTD128 (scsi)
Disk /dev/sda: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 420MB 419MB ntfs Basic data partition hidden, diag
2 420MB 693MB 273MB fat32 EFI system partition boot
3 693MB 827MB 134MB Microsoft reserved partition msftres
4 827MB 111GB 110GB ntfs Basic data partition msftdata
5 111GB 128GB 16.9GB ntfs Basic data partition hidden, msftdata
Model: SanDisk Cruzer Fit (scsi)
Disk /dev/sdb: 8004MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 7800MB 7799MB ext4 msftdata
2 7800MB 7925MB 125MB fat32 EFI boot
This is fstab
# / was on /dev/sdb1 during installation
UUID=a60289d6-c308-44f1-9ce6-85db3482ff32 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/mmcblk0p1 during installation
UUID=245F-F0BE /boot/efi vfat defaults 0 1
The USB EFI partition is not automatically mounted. Should it be? I prefer not to touch the internal SSD at all.
configfile(hd0,gpt1)=/boot/grub/grub.cfg
which finds my grub.cfg and boots normally.
I mounted the USB EFI partition at /media/test and I installed grub with
sudo grub-install --target=x86_64-efi --efi-directory=/media/test --bootloader-id=grub --removable --recheck --debug
This is mount
/dev/sdb1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /sys/firmware/efi/efivars type efivarfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
This is the stub grub.cfg on the USB EFI partition. The full grub.cfg is on the OS partition.
search.fs_uuid a60289d6-c308-44f1-9ce6-85db3482ff32 root hd1,gpt1
set prefix=($root)/boot/grub
configfile $prefix/grub.cfg
This is parted
Model: ATA SAMSUNG MZMTD128 (scsi)
Disk /dev/sda: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 420MB 419MB ntfs Basic data partition hidden, diag
2 420MB 693MB 273MB fat32 EFI system partition boot
3 693MB 827MB 134MB Microsoft reserved partition msftres
4 827MB 111GB 110GB ntfs Basic data partition msftdata
5 111GB 128GB 16.9GB ntfs Basic data partition hidden, msftdata
Model: SanDisk Cruzer Fit (scsi)
Disk /dev/sdb: 8004MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 7800MB 7799MB ext4 msftdata
2 7800MB 7925MB 125MB fat32 EFI boot
This is fstab
# / was on /dev/sdb1 during installation
UUID=a60289d6-c308-44f1-9ce6-85db3482ff32 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/mmcblk0p1 during installation
UUID=245F-F0BE /boot/efi vfat defaults 0 1
The USB EFI partition is not automatically mounted. Should it be? I prefer not to touch the internal SSD at all.