One-Click DD System Network Reinstallation
AutoReinstall Script
wget --no-check-certificate -O AutoReinstall.sh https://git.io/AutoReinstall.sh && bash AutoReinstall.sh
# Version for Mainland China
bash <(wget --no-check-certificate -qO- https://cdn.jsdelivr.net/gh/hiCasper/Shell@master/AutoReinstall.sh)Disk Expansion After Reinstallation
Using Partitioning Tools: Use the fdisk or parted tools to delete and recreate the /dev/vda1 partition to utilize the entire disk space. For disks using the DOS partition table, here is an example procedure using fdisk:
- Run
sudo fdisk /dev/vdato start thefdisktool. - Type
pto display the current partition table and confirm the partition number for/dev/vda1. - Type
dto delete a partition, then select the/dev/vda1partition. - Type
nto create a new partition, select primary partition, partition number 1, then use the default starting sector, and finally select the default ending sector to use all remaining space. - Type
tto change the partition type, then select83(Linux). - Type
ato make the partition bootable, if/dev/vda1is the boot partition. - Type
wto write the changes and exitfdisk.
Important: These operations will delete all data on the /dev/vda1 partition. Please ensure you have backed up your data.
Based on the disk information you provided, /dev/vda has a total size of approximately 42.9 GB, but the /dev/vda1 partition only occupies about 1.5 GB of space, starting from sector 2048 and ending at sector 3145727. To extend /dev/vda1 to use the remaining disk space, you need to perform several steps. Please note that these operations are high-risk; be sure to back up all important data before proceeding.
Step 1: Delete and Recreate the /dev/vda1 Partition
Backup Data: Before making any modifications, ensure all data on
/dev/vda1is backed up.Use Partitioning Tools: Use the
fdiskorpartedtools to delete and recreate the/dev/vda1partition to utilize the entire disk space. For disks using the DOS partition table, here is an example procedure usingfdisk:- Run
sudo fdisk /dev/vdato start thefdisktool. - Type
pto display the current partition table and confirm the partition number for/dev/vda1. - Type
dto delete a partition, then select the/dev/vda1partition. - Type
nto create a new partition, select primary partition, partition number 1, then use the default starting sector, and finally select the default ending sector to use all remaining space. - Type
tto change the partition type, then select83(Linux). - Type
ato make the partition bootable, if/dev/vda1is the boot partition. - Type
wto write the changes and exitfdisk.
Important: These operations will delete all data on the
/dev/vda1partition. Please ensure you have backed up your data.- Run
Step 2: Extend the Filesystem
After recreating the partition and restarting the system (if necessary), you need to extend the filesystem to use the new partition size.
If the filesystem is ext4, use
resize2fs:sudo resize2fs /dev/vda1If the filesystem is XFS, use
xfs_growfs:sudo xfs_growfs /dev/vda1
Step 3: Verification
Use df -h or lsblk to verify that the /dev/vda1 partition size has been extended as expected.
Supported Systems for Reinstallation
- Ubuntu 18.04/16.04
- Debian 9/10
- CentOS 6
- CentOS 7 (via DD method) (Password: Pwd@CentOS)
- Custom DD Images
# Windows 7 32-bit Chinese (Windows Thin PC):
https://image.moeclub.org/GoogleDrive/1srhylymTjYS-Ky8uLw4R6LCWfAo1F3s7
https://moeclub.org/onedrive/IMAGE/Windows/win7emb_x86.tar.gz
# Windows 8.1 SP1 64-bit Chinese (Embedded):
https://image.moeclub.org/GoogleDrive/1cqVl2wSGx92UTdhOxU9pW3wJgmvZMT_J
https://moeclub.org/onedrive/IMAGE/Windows/win8.1emb_x64.tar.gz
# Windows 10 ltsc 64-bit Chinese:
https://image.moeclub.org/GoogleDrive/1OVA3t-ZI2arkM4E4gKvofcBN9aoVdneh
https://moeclub.org/onedrive/IMAGE/Windows/win10ltsc_x64.tar.gz
Default Username: Administrator
Default Password: VicerFeatures / Optimizations
- Automatically obtains IP address, gateway, subnet mask
- Automatically detects network environment, selects domestic/foreign mirrors to resolve slow speeds
- One-click operation for ease of use, no complex commands required
- Fixes some issues in the MoeClub script that cause installation errors
- CentOS 7 image abandons LVM, reverts to ext4, reducing instability factors
Notes
- System passwords after reinstallation are provided in the script. Please change the password as soon as possible after installation. The default password is provided by the script during installation; please pay attention. For Linux systems, enabling key-based login is recommended.
- Not applicable for OpenVZ / LXC architecture systems.
Changelog
f8f53-add database sectionon
Copyright
Copyright Ownership:Sakurajiamai
License under:Attribution-NonCommercial-NoDerivatives 4.0 International (CC-BY-NC-ND-4.0)
