重置 vps root 密码

重置 vps root 密码

我购买了一个 vps,但我忘记了它的服务器 rootpassword。我尝试通过救援模式重置它,但在安装级别失败:

 root@rescue:~# mount -o rw /dev/sda1 /mnt
mount: /dev/sda1 is write-protected, mounting read-only
NTFS signature is missing.
Failed to mount '/dev/sda1': Invalid argument
The device '/dev/sda1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?


root@rescue:~# mount -o rw /dev/sdb1 /mnt
mount: /dev/sdb1 is write-protected, mounting read-only
NTFS signature is missing.
Failed to mount '/dev/sdb1': Invalid argument
The device '/dev/sdb1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

这是 fdisk -l 的输出:

Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 365A92FB-97D5-40E3-A37D-BD3C2F9DDD86

Device          Start        End    Sectors    Size Type
/dev/sda1          40       2048       2009 1004.5K BIOS boot
/dev/sda2        4096   40962047   40957952   19.5G Linux RAID
/dev/sda3    40962048 3905974271 3865012224    1.8T Linux RAID
/dev/sda4  3905974272 3907020799    1046528    511M Linux swap

Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: A729FAD1-4D0D-4EF0-B368-34F5CF70AAB1

Device          Start        End    Sectors    Size Type
/dev/sdb1          40       2048       2009 1004.5K BIOS boot
/dev/sdb2        4096   40962047   40957952   19.5G Linux RAID
/dev/sdb3    40962048 3905974271 3865012224    1.8T Linux RAID
/dev/sdb4  3905974272 3907020799    1046528    511M Linux swap

Disk /dev/md3: 1.8 TiB, 1978886193152 bytes, 3865012096 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/md2: 19.5 GiB, 20970405888 bytes, 40957824 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

df -h 的显示

root@rescue:~# df -h

Filesystem                          Size  Used Avail Use% Mounted on
aufs                                 16G  1.5M   16G   1% /
devtmpfs                             16G     0   16G   0% /dev

相关内容