Created
October 28, 2019 10:24
-
-
Save menghan/1b01dfd252851255d90acb60ee79e23f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
linuxkit-525400929b77 [~]$ df | grep vda | |
linuxkit-525400929b77 [~]$ sudo fdisk /dev/vda | |
Welcome to fdisk (util-linux 2.33). | |
Changes will remain in memory only, until you decide to write them. | |
Be careful before using the write command. | |
Command (m for help): d | |
Selected partition 1 | |
Partition 1 has been deleted. | |
Command (m for help): w | |
The partition table has been altered. | |
Syncing disks. | |
linuxkit-525400929b77 [~]$ sudo fdisk -l /dev/vda | |
Disk /dev/vda: 10 GiB, 10737418240 bytes, 20971520 sectors | |
Units: sectors of 1 * 512 = 512 bytes | |
Sector size (logical/physical): 512 bytes / 512 bytes | |
I/O size (minimum/optimal): 512 bytes / 512 bytes | |
Disklabel type: dos | |
Disk identifier: 0x38b4a731 | |
linuxkit-525400929b77 [~]$ sudo os-config | |
Running k3OS configuration | |
Choose operation | |
1. Install to disk | |
2. Configure server or agent | |
Select Number [1]: 1 | |
Config system with cloud-init file? [y/N]: | |
Authorize GitHub users to SSH? [y/N]: | |
Please enter password for [rancher]: ******* | |
Confirm password for [rancher]: ******* | |
Configure WiFi? [y/N]: | |
Run as server or agent? | |
1. server | |
2. agent | |
Select Number [1]: 1 | |
Token or cluster secret (optional): | |
Configuration | |
------------- | |
device: /dev/vda | |
Your disk will be formatted and k3OS will be installed with the above configuration. | |
Continue? [y/N]: y | |
1+0 records in | |
1+0 records out | |
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.000954727 s, 1.1 GB/s | |
mke2fs 1.44.5 (15-Dec-2018) | |
/dev/vda1 is apparently in use by the system; will not make a filesystem here! | |
exit status 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment