I am using Lilo bootloader and risk destroying Windows boot-record on the real /dev/sda if I forget where I am!
Code: Select all
fdisk -l
Disk /dev/sda: 3,7 TiB, 4000787029504 bytes, 7814037167 sectors <<<<<<<<<< EXTERNAL USB-disk
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: 32C07481-F996-4DFC-B675-41BD291880B2
Device Start End Sectors Size Type
/dev/sda1 2048 206847 204800 100M BIOS boot
/dev/sda2 206848 21178367 20971520 10G Linux filesystem
/dev/sda3 21178368 42149887 20971520 10G Linux filesystem
/dev/sda4 42149888 84092927 41943040 20G Linux swap
/dev/sda5 84092928 4278396927 4194304000 2T Linux filesystem
/dev/sda6 4278396928 6375548927 2097152000 1000G Microsoft basic data
Disk /dev/sdb: 698,7 GiB, 750156374016 bytes, 1465149168 sectors <<<<<<<< INTERNAL disk
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x005cd7ed
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 409599 407552 199M 7 HPFS/NTFS/exFAT
/dev/sdb2 409600 266649599 266240000 127G 7 HPFS/NTFS/exFAT
/dev/sdb3 * 266649600 309069823 42420224 20,2G a5 FreeBSD
/dev/sdb4 309069824 1465147119 1156077296 551,3G 5 Extended
/dev/sdb5 1464936448 1465147119 210672 102,9M c W95 FAT32 (LBA)
/dev/sdb6 309071872 330043391 20971520 10G 83 Linux
/dev/sdb7 330045440 351016959 20971520 10G 83 Linux
/dev/sdb8 351019008 371990527 20971520 10G 83 Linux
/dev/sdb9 371992576 791422975 419430400 200G 7 HPFS/NTFS/exFAT
/dev/sdb10 791425024 1210855423 419430400 200G 7 HPFS/NTFS/exFAT
/dev/sdb11 1210857472 1422516223 211658752 100,9G 7 HPFS/NTFS/exFAT
/dev/sdb12 1422518272 1464936447 42418176 20,2G 7 HPFS/NTFS/exFAT
My Lilo config:
Code: Select all
# /etc/lilo.conf
lba32
compact
boot = /dev/sdb <<<<<<<<<<<<<<<<<<<<<<<<<<
#
timeout = 100
vga = normal
prompt
menu-title="Boot via usb-4t /dev/sdb"
image = /boot/kernel-genkernel-x86_64-4.11.7-gentoo
label = "Linux-4.11.7"
initrd=/boot/initramfs-genkernel-x86_64-4.11.7-gentoo
#root = /dev/sdb2
root = "UUID=24754012-32d6-496b-8e8e-263424db3576"
read-only
image = /boot/kernel-genkernel-x86_64-4.5.3-gentoo
label = "Linux-old"
#root = /dev/sdb2
root = "UUID=24754012-32d6-496b-8e8e-263424db3576"
read-onlyIf I run kernel 4.5.3 there is no problem!



