Tinycore Study Notes _ Quick system installation and tinycore Study Notes
Getting started with Tinycore installation:
Tinycore version: v6.0 Kernel to 3.16.6
Virtual Environment: Vbox
Installation path: virtual hard disk
1,
# Partition the virtual disk before installation. skip this step if no partition is required. During installation, you can select the installation method (as described below)
# My partitions are as follows:
#/Dev/sda 512 MB
#/Dev/sda1 256 MB Installation System
#/Dev/sda2 256 MB for swap
#/Dev/sdb 2 GB Data Storage. After the system is restarted, the data will be automatically restored. That is to say, if you do not save (Backup) the data is not in the specified directory, but you need to add a path to the backup, which is quite troublesome, therefore, it is much easier to use a disk as the data storage.
# Partition operations are as follows:
$ Sudo su
$ Fdisk/dev/sda
# Create a primary partition sda1
$ N
$ P, primary Partition
$1, Partition Number
$ Press enter. The default value is 1.
$33. If sda is 512 MB, the maximum value is 65. Select 33 for half.
# Create an extended partition sda2
$ N
$ E, extended partition
$2, Partition Number
$ Press enter, default value
$ Press enter. The default value is the maximum value.
# Create a logical partition sda5
$ N
$ L, bare metal Partition
$ Press enter, default value
$ Press enter. The default value is the maximum value.
$ T, modify the sda2 partition type as linux swap
$5. Select the Partition Number.
$82: linux swap
$ P: View partition information.
$ W, save changes
$ Q: Exit fdisk.
# Format below
$ Mkfs. ext4/dev/sda1
$ Mkswap/dev/sda5
$ Mkfs. ext/dev/sdb
$ Rebuildfstab: automatically generates the Partition Table/etc/fstab
# Note: If you want to modify the Partition Table/etc/fstab, You need to delete the # add by tc following the partition before rebuildfstab.
2,
# Input in the command line:
$ Tc-install
# A window will pop up.
3,
The following two installation methods are provided, but there are prerequisites:
Method 1: no partitions
# Select "Whole Disk"
# Select "sda" or another "sd *" virtual hard disk. Note: "sr0" is attached to an optical drive and cannot be selected.
# Next Step
# Formatting options, default
# Next Step
# You can choose not to select the boot attribute. After installation, you can change the attribute at/mnt/sda1/tce/boot/extlinux. conf.
# Next Step
# Select Other: Remaster Tool. Select Other tools as needed.
# Next Step
# Click Proceed to start system installation
# Wait for a prompt that the installation is successful
# Method 2: partitioned (step 1 completed)
# Select "Existing Partition"
# Select "sda1"
# Select "Mark Partition Activie"
# Next Step
# Formatting options, default
# Next Step
# You can choose not to select the boot attribute. After installation, you can change the attribute at/mnt/sda1/tce/boot/extlinux. conf.
# Next Step
# Select Other: Remaster Tool. Select Other tools as needed.
# Next Step
# Click Proceed to start system installation
# Wait for a prompt that the installation is successful
# Note: If the installation fails, the system prompts that the device is busy. You can delete and format the partition first. After the device is restarted, start it in CDROM and reinstall it.
3,
# Open the partition table. The partition table has been automatically modified.
$ Sudo cat/etc/fstab
# Restart Tinycore