简介 Tiny Core Linux是一个mini Linux操作系统,基于 BusyBox和FLTK提供基本功能。 其发行版本在11M-16M 官网上也提供Plus版本也只有106M。它很精致。
安装 操作系统安装 镜像下载 下载页面 http://tinycorelinux.net/downloads.html 我下载了两个版本镜像:
x86版本: TinyCore-11.1.iso x86_64位版本:TinyCorePure64-11.1.iso 环境准备 我们使用的vmware 首先新建一个linux虚拟机, 我选的版本是其他Linux5.x或更高版本内核64位, 并添加了两块SATA的硬盘(默认的SCSI硬盘识别似乎有些问题)
开始安装 安装过程主要下面三个步骤 :
光盘启动操作系统; 配置网络 下载安装脚本安装; 1 . 选择镜像: 光盘镜像选择 x86版本:TinyCore-11.1.iso (不影响安装) 2 . 启动系统: 启动后会出现四个选项, 选择第三项
1 2 3 4 Boot TinyCore Boot TinyCore (on slow devices, waitusb=5) Boot Core (command line only) Boot Core (command line only on slow devices, waitusb=5) 可以看到系统后进入命令行窗口,但是这种模式下进行操作重启将全部丢失。要保留我们相关配置,需要挂载硬盘。
3 . 配置网络: 配置网卡地址路由及域名服务器。
1 2 3 sudo ifconfig eth0 192.168.xxx.202 netmask 255.255.255.0 sudo route add default gw 192.168.xxx.1 dev eth0 sudo echo nameserver 192.168.xxx.1 >> /etc/resolv.conf 4 . 下载安装脚本: 会联机下载相关安装包
1 tce-load -wi tc-install.tcz 5 . 安装:
启动安装脚本 1 sudo tc-install.sh 选择c从光盘启动 1 2 3 Core Installation. Install from [R]unning OS, from booted [C]drom, from [I]so file, or from [N]et. (r/c/i/n): c 选择f安装到本地硬盘 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Select install type for /mnt/sr0/boot/core.gz Frugal * Use for frugal hard drive installations. Note: You will be prompted for disk/partion and formatting options. HDD * Use for pendrives. Your BIOS must support USB-HDD booting. * A single FAT partition will be made. Note: Requires dosfstools extension. Warning: This is a whole drive installation! Zip * Use for pendrives. Drive will be formatted into two FAT partitions. * One small one for USB_ZIP boot compatibility, and used to hold Tiny Core. * The remaining partition will be used for backup & extensions. Note: Requires dosfstools and perl extensions. Warning: This is a whole drive installation! Select Install type [F]rugal, [H]DD, [Z]ip. (f/h/z): f 选择1使用整个硬盘安装 1 2 3 4 5 6 Select Target for Installation of core 1. Whole Disk 2. Partition Enter selection ( 1 - 2 ) or (q)uit: 1 选择1安装到第一块硬盘上 1 2 3 4 5 6 Select disk for core 1. sda 2. sdb Enter selection ( 1 - 2 ) or (q)uit: 1 安装bootloader选择y 1 2 3 4 5 6 Would you like to install a bootloader? Most people should answer yes unless they are trying to embed Core into a different Linux distribution with an existing bootloader. Enter selection ( y, n ) or (q)uit: y Install Extensions from this TCE/CDE Directory: 选择分区格式 ext4 1 2 3 4 5 6 7 8 Select Formatting Option for sda 1. ext2 2. ext3 3. ext4 4. vfat Enter selection ( 1 - 4 ) or (q)uit: 3 设置一些启动选项, 这里先不输入, 直接回车 1 2 Enter space separated boot options: Example: vga=normal syslog showapps waitusb=5 选择y,开始安装 1 2 Last chance to exit before destroying all data on sda Continue (y/..)? 安装完毕后有以下信息回显, 安装完毕. 1 2 3 4 5 6 7 8 9 10 11 12 13 Writing zero's to beginning of /dev/sda Partitioning /dev/sda Formatting /dev/sda1 mke2fs 1.45.4 (23-Sep-2019) 1+0 records in 1+0 records out 440 bytes (440B) copied, 0.000846 seconds, 507.9KB/s UUID="XXXXXXX" Applying syslinux. /mnt/drive/tce/boot/extlinux is device /dev/sda1 Setting up core image on /mnt/sda1 Installation has completed Press Enter key to continue. 按照这个步骤把第二块硬盘也安装一下. 第二块硬盘使用镜像 TinyCorePure64-11.1.iso 安装, 使用umount卸载原有x86镜像,mount重新挂载新的镜像。
...