Created
February 15, 2024 08:24
-
-
Save matthiasg/602eb6f20e2d2a51870efb8473903c7d to your computer and use it in GitHub Desktop.
Install SmartOS on Hetzner machine with NVMe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
exec tail -n +3 $0 | |
# This file provides an easy way to add custom menu entries. Simply type the | |
# menu entries you want to add after this comment. Be careful not to change | |
# the 'exec tail' line above. | |
menuentry "SmartOS" { | |
recordfail | |
insmod ext2 | |
insmod gzio | |
insmod multiboot | |
insmod part_msdos | |
search --no-floppy --fs-uuid --set=root e41a37de-4bd6-4f56-b3a5-d2e8ba35f5bc | |
echo 'Loading SmartOS ...' | |
multiboot /platform/i86pc/kernel/amd64/unix /platform/i86pc/kernel/amd64/unix -B smartos=true | |
module /platform/i86pc/amd64/boot_archive /platform/i86pc/amd64/boot_archive type=rootfs name=ramdisk | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> lsblk | |
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS | |
nvme0n1 259:0 0 894.3G 0 disk | |
nvme1n1 259:1 0 894.3G 0 disk | |
├─nvme1n1p1 259:2 0 4G 0 part [SWAP] | |
├─nvme1n1p2 259:3 0 1G 0 part /boot | |
└─nvme1n1p3 259:4 0 889.3G 0 part / | |
> cat /etc/fstab | |
proc /proc proc defaults 0 0 | |
# /dev/nvme0n1p1 | |
UUID=1cde3c0f-e9aa-45e3-ba67-3adb5eece989 none swap sw 0 0 | |
# /dev/nvme0n1p2 | |
UUID=e41a37de-4bd6-4f56-b3a5-d2e8ba35f5bc /boot ext3 defaults 0 0 | |
# /dev/nvme0n1p3 | |
UUID=7c7f4630-e2a9-4f45-94f1-d03811b4b8b4 / ext4 defaults 0 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment