Skip to content

Instantly share code, notes, and snippets.

@Shulyaka
Last active April 16, 2018 16:20
Show Gist options
  • Save Shulyaka/ac11ff8abaa7e0106e4d5b53b87cc2e1 to your computer and use it in GitHub Desktop.
Save Shulyaka/ac11ff8abaa7e0106e4d5b53b87cc2e1 to your computer and use it in GitHub Desktop.
Install fedora to cloudatcost server (work in progress)
lvreduce -l -291 -f /dev/centos/root #512
pvresize --setphysicalvolumesize 8577 /dev/sda2 #7689
fdisk /dev/sda
d
n
+8582M
t
8e
n
+1G
t
82
n
p
w
reboot
mkswap /dev/sda3
mkfs.ext4 /dev/sda4
mount /dev/sda4 /mnt
cd /mnt
wget "https://download.fedoraproject.org/pub/fedora/linux/releases/27/Server/x86_64/iso/Fedora-Server-netinst-x86_64-27-1.6.iso" -O Fedora.iso
mount /mnt/Fedora.iso /mnt2 -o ro,loop
cp /mnt2/isolinux/vmlinuz /mnt2/isolinux/initrd.img /boot/
cp /mnt2/isolinux/vmlinuz /mnt2/isolinux/initrd.img /mnt/
#open the server console and prepare to bring up the grub menu
reboot
c
linux (hd0,msdos1)/vmlinuz inst.repo=hd:/dev/sda4:Fedora.iso
initrd (hd0,msdos1)/initrd.img
boot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment