Skip to content

Instantly share code, notes, and snippets.

@Necklaces
Last active August 29, 2015 14:17
Show Gist options
  • Save Necklaces/c50565a640273a7401b5 to your computer and use it in GitHub Desktop.
Save Necklaces/c50565a640273a7401b5 to your computer and use it in GitHub Desktop.

Revisions

  1. Necklaces revised this gist Mar 21, 2015. 1 changed file with 1 addition and 4 deletions.
    5 changes: 1 addition & 4 deletions tiny-core-install
    Original file line number Diff line number Diff line change
    @@ -23,7 +23,7 @@ cp -p /usr/lib/grub/i386-pc/* /mnt/sda1/boot/grub/
    touch /mnt/sda1/tce/mydata.tgz

    # nano /mnt/sda1/boot/grub/menu.lst
    # Enter the following:
    # Enter the following (without # in front):
    #
    # default 0
    # timeout 0
    @@ -34,9 +34,6 @@ touch /mnt/sda1/tce/mydata.tgz
    # To save: ctrl-o, enter
    # To quit: ctrl-x (if you didn't save, hit 'y', then enter)

    # If you're running this as a script:
    echo -e "default 0\ntimeout 0\ntitle MicroCore\nkernel /boot/vmlinuz quit\ninitrd /boot/core.gz" > /mnt/sda1/boot/grub/menu.lst

    grub

    # In the grub prompt,
  2. Necklaces revised this gist Mar 21, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tiny-core-install
    Original file line number Diff line number Diff line change
    @@ -35,7 +35,7 @@ touch /mnt/sda1/tce/mydata.tgz
    # To quit: ctrl-x (if you didn't save, hit 'y', then enter)

    # If you're running this as a script:
    echo -e "default 0\ntimeout 0\ntitle MicroCore\nkernel /boot/vmlinuz quit\ninitrd /boot/core.gz" > menu.lst
    echo -e "default 0\ntimeout 0\ntitle MicroCore\nkernel /boot/vmlinuz quit\ninitrd /boot/core.gz" > /mnt/sda1/boot/grub/menu.lst

    grub

  3. Necklaces revised this gist Mar 21, 2015. 1 changed file with 11 additions and 9 deletions.
    20 changes: 11 additions & 9 deletions tiny-core-install
    Original file line number Diff line number Diff line change
    @@ -22,19 +22,21 @@ cp -p /mnt/sdb1/boot/vmlinuz /mnt/sda1/boot/
    cp -p /usr/lib/grub/i386-pc/* /mnt/sda1/boot/grub/
    touch /mnt/sda1/tce/mydata.tgz

    nano /mnt/sda1/boot/grub/menu.lst

    # nano /mnt/sda1/boot/grub/menu.lst
    # Enter the following:

    default 0
    timeout 0
    title MicroCore
    kernel /boot/vmlinuz quiet
    initrd /boot/core.gz

    #
    # default 0
    # timeout 0
    # title MicroCore
    # kernel /boot/vmlinuz quiet
    # initrd /boot/core.gz
    #
    # To save: ctrl-o, enter
    # To quit: ctrl-x (if you didn't save, hit 'y', then enter)

    # If you're running this as a script:
    echo -e "default 0\ntimeout 0\ntitle MicroCore\nkernel /boot/vmlinuz quit\ninitrd /boot/core.gz" > menu.lst

    grub

    # In the grub prompt,
  4. Necklaces revised this gist Mar 21, 2015. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions tiny-core-install
    Original file line number Diff line number Diff line change
    @@ -24,20 +24,20 @@ touch /mnt/sda1/tce/mydata.tgz

    nano /mnt/sda1/boot/grub/menu.lst

    Enter the following:
    # Enter the following:

    default 0
    timeout 0
    title MicroCore
    kernel /boot/vmlinuz quiet
    initrd /boot/core.gz

    To save: ctrl-o, enter
    To quit: ctrl-x (if you didn't save, hit 'y', then enter)
    # To save: ctrl-o, enter
    # To quit: ctrl-x (if you didn't save, hit 'y', then enter)

    grub

    In the grub prompt,
    # In the grub prompt,
    root (hd0,0)
    setup (hd0)
    quit
  5. Necklaces revised this gist Mar 21, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion tiny-core-install
    Original file line number Diff line number Diff line change
    @@ -32,7 +32,8 @@ title MicroCore
    kernel /boot/vmlinuz quiet
    initrd /boot/core.gz

    To save: ctrl-o, enter, y, enter
    To save: ctrl-o, enter
    To quit: ctrl-x (if you didn't save, hit 'y', then enter)

    grub

  6. Necklaces revised this gist Mar 21, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions tiny-core-install
    Original file line number Diff line number Diff line change
    @@ -32,6 +32,8 @@ title MicroCore
    kernel /boot/vmlinuz quiet
    initrd /boot/core.gz

    To save: ctrl-o, enter, y, enter

    grub

    In the grub prompt,
  7. Necklaces revised this gist Mar 21, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tiny-core-install
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,7 @@ touch /mnt/sda1/tce/mydata.tgz

    nano /mnt/sda1/boot/grub/menu.lst

    Press i (enters insert mode) Enter the following:
    Enter the following:

    default 0
    timeout 0
  8. Necklaces created this gist Mar 21, 2015.
    42 changes: 42 additions & 0 deletions tiny-core-install
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,42 @@
    # Core 6.1, requires ethernet

    tce-load -wi cfdisk
    tce-load -wi grub-0.97-splash
    tce-load -wi nano

    sudo su

    fdisk -l
    cfdisk /dev/sda
    mkfs.ext4 /dev/sda1

    rebuildfstab
    mount /mnt/sda1
    mount /mnt/sr0

    mkdir -p /mnt/sda1/boot/grub
    mkdir -p /mnt/sda1/tce/optional

    cp -p /mnt/sdb1/boot/core.gz /mnt/sda1/boot/
    cp -p /mnt/sdb1/boot/vmlinuz /mnt/sda1/boot/
    cp -p /usr/lib/grub/i386-pc/* /mnt/sda1/boot/grub/
    touch /mnt/sda1/tce/mydata.tgz

    nano /mnt/sda1/boot/grub/menu.lst

    Press i (enters insert mode) Enter the following:

    default 0
    timeout 0
    title MicroCore
    kernel /boot/vmlinuz quiet
    initrd /boot/core.gz

    grub

    In the grub prompt,
    root (hd0,0)
    setup (hd0)
    quit

    sudo reboot