View RSS Feed

karlmistelberger

Tumbleweed Partitioning - Grub Multiboot

Rate this Entry

Partitioning:

Drive /dev/nvme0n1 has been partitioned with the Expert Partitioner into an EFI System partition and two Linux System partitions:
Code:
erlangen:~ # fdisk -x -o Device,Size,Type /dev/nvme0n1 
Disk /dev/nvme0n1: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: Samsung SSD 970 EVO Plus 2TB             
Units: sectors of 1 * 512 = 512 bytes 
Sector size (logical/physical): 512 bytes / 512 bytes 
I/O size (minimum/optimal): 512 bytes / 512 bytes 
Disklabel type: gpt 
Disk identifier: F5B232D0-7A67-461D-8E7D-B86A5B4C6C10 
First LBA: 34 
Last LBA: 3907029134 
Alternative LBA: 3907029167 
Partition entries LBA: 2 
Allocated partition entries: 128 

Device                 SizeType
/dev/nvme0n1p1     536870912 EFI System 
/dev/nvme0n1p2 1947432124416 Linux filesystem 
/dev/nvme0n1p3   52428873216 Linux filesystem 
erlangen:~ #
Code:
erlangen:~ # cat /etc/fstab 
UUID=19CF-0B54                             /boot/efi               vfat   defaults                      0  0 
UUID=0e58bbe5-eff7-4884-bb5d-a0aac3d8a344  /                       btrfs  defaults                      0  0 
UUID=0e58bbe5-eff7-4884-bb5d-a0aac3d8a344  /.snapshots             btrfs  subvol=/@/.snapshots          0  0 
# subvolumes exempted from snapshotting 
UUID=0e58bbe5-eff7-4884-bb5d-a0aac3d8a344  /var                    btrfs  subvol=/@/var                 0  0 
UUID=0e58bbe5-eff7-4884-bb5d-a0aac3d8a344  /usr/local              btrfs  subvol=/@/usr/local           0  0 
UUID=0e58bbe5-eff7-4884-bb5d-a0aac3d8a344  /srv                    btrfs  subvol=/@/srv                 0  0 
UUID=0e58bbe5-eff7-4884-bb5d-a0aac3d8a344  /root                   btrfs  subvol=/@/root                0  0 
UUID=0e58bbe5-eff7-4884-bb5d-a0aac3d8a344  /opt                    btrfs  subvol=/@/opt                 0  0 
UUID=0e58bbe5-eff7-4884-bb5d-a0aac3d8a344  /home                   btrfs  subvol=/@/home                0  0 
UUID=0e58bbe5-eff7-4884-bb5d-a0aac3d8a344  /boot/grub2/x86_64-efi  btrfs  subvol=/@/boot/grub2/x86_64-efi  0  0 
UUID=0e58bbe5-eff7-4884-bb5d-a0aac3d8a344  /boot/grub2/i386-pc     btrfs  subvol=/@/boot/grub2/i386-pc  0  0 
erlangen:~ #
Code:
erlangen:~ # lsblk /dev/nvme0n1 -o Path,Type,Fstype,Size,Mountpoints 
PATH           TYPE FSTYPE  SIZE MOUNTPOINTS 
/dev/nvme0n1   disk         1.8T  
/dev/nvme0n1p1 part vfat    512M /boot/efi 
/dev/nvme0n1p2 part btrfs   1.8T /var 
                                 /usr/local 
                                 /srv 
                                 /root 
                                 /opt 
                                 /home 
                                 /boot/grub2/x86_64-efi 
                                 /boot/grub2/i386-pc 
                                 /.snapshots 
                                 / 
/dev/nvme0n1p3 part btrfs  48.8G  
erlangen:~ #
The EFI System Partition nvme0n1p1 is shared by two System partitions. nvme0n1p2 holds the main system and nvme0n1p3 a rescue system:
Code:
erlangen:~ # efibootmgr  
BootCurrent: 0000 
Timeout: 1 seconds 
BootOrder: 0000,0002,0001 
Boot0000* tumbleweed 
Boot0001* tumbleweed-rescue 
Boot0002* UEFI OS 
erlangen:~ #
Grub Multiboot Configuration:

By default both the main system and the rescue system will overwrite their bootloaders, which can be annoying. Users may want to have them independent of each other. Assign unique values to GRUB_DISTRIBUTOR:
Code:
erlangen:~ # grep GRUB_DISTRIBUTOR /etc/default/grub 
GRUB_DISTRIBUTOR=Tumbleweed 
erlangen:~ #

Submit "Tumbleweed Partitioning - Grub Multiboot" to Digg Submit "Tumbleweed Partitioning - Grub Multiboot" to del.icio.us Submit "Tumbleweed Partitioning - Grub Multiboot" to StumbleUpon Submit "Tumbleweed Partitioning - Grub Multiboot" to Google Submit "Tumbleweed Partitioning - Grub Multiboot" to Facebook Submit "Tumbleweed Partitioning - Grub Multiboot" to Twitter

Categories
KeepItSimple