wiki:TipAndDoc/Linux/TinyCore

Tiny Core Linux

boot with loopback (GRUB2)

  1. mitty@viola-debian:~$ wget http://distro.ibiblio.org/tinycorelinux/4.x/x86/release/microcore-current.iso
  2. mitty@viola-debian:~$ sudo cp -a microcore-current.iso /boot/
  3. mitty@viola-debian:~$ sudo vi /etc/grub.d/40_custom
    menuentry "microcore" {
     loopback loop /microcore-current.iso
     linux (loop)/boot/vmlinuz --
     initrd (loop)/boot/microcore.gz
    }
    
  4. mitty@viola-debian:~$ sudo update-grub

Micro Core on Sakura VPS

  • GRUB menu
  • NICへのIP割り当て(DHCPは使用出来ない)
  • fdisk -lu /dev/sda
  • netcatは元から使用出来るが、sshはインストールされていない

install SSH

  • WANへ繋がるようにする
    sudo ifconfig eth0 49.212.22.108 netmask 255.255.254.0
    sudo route add default gw 49.XXX.YYY.ZZZ
    sudo sh -c "cat > /etc/resolv.conf"
    
  • tce-load -wi openssh.tcz
  • passwordを設定し、sshdをstartする
  • finger printの確認
  • ssh login with PuTTY

mounting XFS with LVM

  • tc@box:~$ tce-load -wi filesystems-`uname -r`
  • tc@box:~$ tce-load -wi lvm2
  • tc@box:~$ sudo vgscan
      Reading all physical volumes.  This may take a while...
      Found volume group "vgroot" using metadata type lvm2
    
  • tc@box:~$ sudo lvscan
      inactive          '/dev/vgroot/lvroot' [19.07 GiB] inherit
      inactive          '/dev/vgroot/lvswap' [120.00 MiB] inherit
    
  • tc@box:~$ sudo vgchange -ay
      2 logical volume(s) in volume group "vgroot" now active
      The link /dev/vgroot/lvroot should had been created by udev but it was not found. Falling back to direct link creation.
      The link /dev/vgroot/lvswap should had been created by udev but it was not found. Falling back to direct link creation.
    
  • tc@box:~$ ls -l /dev/vgroot/
    total 0
    lrwxrwxrwx    1 root     root            25 Dec  2 02:02 lvroot -> /dev/mapper/vgroot-lvroot
    lrwxrwxrwx    1 root     root            25 Dec  2 02:02 lvswap -> /dev/mapper/vgroot-lvswap
    
  • tc@box:~$ sudo mount -r /dev/vgroot/lvroot /mnt/ -t xfs
Last modified 6 years ago Last modified on Dec 11, 2011 4:11:35 PM

Attachments (9)

Download all attachments as: .zip