john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Microcore hard disk install grub2

microcore-install

(IDE is supported right away)

download microcore.iso fdisk -l

ab cfdisk sudo cfdisk /dev/sda

(right arrow) New -> Primary -> 1074MB (right arrow) Bootable (enter) (right arrow) Type = 83 = Linux (82 is swap)

sudo mkfs.ext4 /dev/sda1 sudo rebuildfstab sudo mount /dev/hda1 /mnt/hda1 df -h (verify


mkdir -p /mnt/sda1/boot/grub

mount /mnt/hdc (access the original the microcore cd/iso)

cp -p /mnt/hda/boot/* /mnt/sda1/boot/

mkdir -p /mnt/sda1/tce mkdir -p /mnt/sda1/tce/optional sudo chown tc /mnt/hda1/tce && sudo chgrp staff /mnt/hda1/tce/


ab grub (grub2)

sudo grub-install --no-floppy --root-directory=/mnt/hda1 /dev/hda vi /mnt/hda1/boot/grub/grub.cfg

menuentry "microcore" linux /boot/bzImage quiet home=hda1 showapps initrd /boot/microcore.gz

tce=hda1 opt=hda1

if for some reason you get to the grub> prompt (i.e. bad menu config above)

boot /hda1/boot/microcore.gz
then try to fix it using sudo vi /mnt/hda1/boot/grub/grub.cfg


touch /mnt/had1/tce/mydata.tgz


  • « Nginx nodejs
  • javascript ssl intermediate cert »

Published

Sep 26, 2011

Category

linux

~124 words

Tags

  • disk 5
  • grub2 1
  • hard 6
  • install 58
  • installs 41
  • microcore 4