本帖最后由 宠虫 于 2019-9-20 03:20 编辑
私钥忘保存了,崩溃。
参考的九五青年博客的教程,但一直搞不定。。。
免费主机的系统是:CentOS 6.10,新建了一同样系统的收费主机。
前面的步骤都很正常,但到 fdisk -l /dev/sdb ,查看磁盘信息的时候,就开始报错,提示不支持gpt,要用gnu(一脸懵逼)。磁盘也显示不正常。
强行按教程步骤走下去,最终改了也是无法写入和保存。
折腾了快通宵了,一直卡在这问题上。也尝试换各种系统的收费主机,也不行。报错的内容虽然不一样,但结果都是不行。
求吴彦祖们,帮帮我吧~~~
代码部分报错:
连接成功
Last login: Thu Sep 19 17:49:20 2019 from 46.226.229.35.be.googleusercontent.com
[opc@abc ~]$ sudo su -
[root@abc ~]# sudo iscsiadm -m node -o new -T iqn.2015-02.oracle.boot:uefi -p 169.254.2.4:3260
New iSCSI node [tep:[hw=,ip=,net_if=,iscsi_if=default] 169.254.2.4,3260,-1 iqn.2015-02.0 racle.boot:uefi] added
[root@abc ~]# sudo iscsiadm -m node -o update -T iqn.2015-02.oracle.boot:uefi -n node.s tartup -v automatic
[root@abc ~]# sudo iscsiadm -m node -T iqn.2015-02.oracle.boot:uefi -p 169.254.2.4:3260 -l
Logging in to [iface: default, target: iqn.2015-02.0racle.boot:uefi, portal: 169.254.2.4 ,3260] (multiple)
Login to [iface: default, target: iqn.2015-02.0racle.boot:uefi, portal: 169.254.2.4,3260 ]successful.
[root@abc ~]# fdisk -l /dev/sdb
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't suport GPT. Use GNU Parted.
Disk /dev/sdb: 50.0 GB, 50010783744 bytes
255 heads, 63 sectors/track, 6080 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 1048576 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdbl 1 6081 48838655+ ee GPT
Partition 1 does not start on Dhvsical sector boundary.
[root@abc ~]# sudo mount -o nouuid /dev/sdb3 /mnt
mount:
wrong fs type, bad option, bad superblock on /dev/sdb3,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
强行保存报错:
"/mnt/home/opc/.ssh/autho rized_keys"
"/mnt/home/opc/.ssh/authorizedkeys" E212: Can't open file for writing
Press ENTER or type command to continue
|