Installation without usb stick and cdrom

3 posts / 0 new
Last post
#1 Tue, 2015-12-15 13:02
sonic
  • sonic's picture
  • Offline
  • Last seen: 2 years 3 months ago
  • Joined: 2015-12-15

Hello,

I have a 128M KVM VPS and I want to install alpine linux on it.

The VPS provider doesn't provide alpine linux ISO so I cannot install it by mounting alpine linux ISO from VPS control panel.
So I decide to use some tricks to install alpine linux. I installed Debian linux firstly. The HD partition map is as follows:

/dev/sda1 /boot
/dev/sda2 /alpine
/dev/sda3 /
/dev/sda4 swap

The grub2 bootloader was installed on /boot and boot the Debian linux.
/dev/sda2 is a free partition and I extracted all the contents of alpine linux ISO into it.
So, how should I modify the grub config file to boot the alpine linux kernel and initramfs from /dev/sda2 then continue to install alpine linux on /dev/sda3 ?

Thanks.

Wed, 2015-12-16 10:31
p180
  • p180's picture
  • Offline
  • Last seen: 2 years 2 months ago
  • Joined: 2015-12-05

I would recommend to to install Alpine from an chroot environment (http://wiki.alpinelinux.org/wiki/Installing_Alpine_Linux_in_a_chroot). Can you boot a live cd? I must not be Alpine. So you do not need an exsisting OS on your hard drive. I did it exactly this way and it works fine :-). If you can not boot a live cd you can also follow the wiki guide. I think it is easier than booting an iso which is saved on a hard disk.

Mon, 2015-12-21 10:31 (Reply to #2)
sonic
  • sonic's picture
  • Offline
  • Last seen: 2 years 3 months ago
  • Joined: 2015-12-15

Thanks. I will try it.

Log in or register to post comments