|
楼主 |
发表于 2023-4-27 11:57:15
|
显示全部楼层
从 Use rescue image 进入系统后,输入如下
Welcome to Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-69-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Thu Apr 27 03:52:42 UTC 2023
System load: 0.1650390625 Processes: 92
Usage of /home: unknown Users logged in: 0
Memory usage: 19% IPv4 address for ens2: 10.69.84.197
Swap usage: 0% IPv6 address for ens2: 2001:bc8:62c:262::1
=> /media/root-ro is using 96.5% of 1.96GB
Expanded Security Maintenance for Applications is not enabled.
0 updates can be applied immediately.
Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
tmpfs-root /media/root-rw tmpfs rw,relatime,inode64 0 0
overlayroot / overlay rw,relatime,lowerdir=/media/root-ro,upperdir=/media/root-rw/overlay,workdir=/media/root-rw/overlay-workdir/_ 0 0
/dev/sda1 /media/root-ro ext4 ro,relatime 0 0
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
root@scw-par:~# wget -qO- http://dl-cdn.alpinelinux.org/al ... t-3.11.9-x86_64.iso | dd of=/dev/vda
77824+0 records in
77824+0 records out
39845888 bytes (40 MB, 38 MiB) copied, 3.42086 s, 11.6 MB/s
root@scw-par:~# fdisk /dev/vda
Welcome to fdisk (util-linux 2.37.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
The device contains 'iso9660' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details.
Command (m for help): t
Partition number (1,2, default 2): 1
Hex code or alias (type L to list all): ef
Changed type of partition 'Empty' to 'EFI (FAT-12/16/32)'.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
root@scw-par:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 63.3M 1 loop /snap/core20/1852
loop1 7:1 0 111.9M 1 loop /snap/lxd/24322
loop2 7:2 0 49.8M 1 loop /snap/snapd/18596
sda 8:0 0 9.3G 1 disk
├─sda1 8:1 0 2.1G 1 part /media/root-ro
├─sda14 8:14 0 4M 1 part
└─sda15 8:15 0 106M 1 part /boot/efi
vda 252:0 0 1.9G 0 disk
├─vda1 252:1 0 38M 0 part
└─vda2 252:2 0 1.4M 0 part |
|