我试图更新 Java,我使用了一个星号来确保它被完全删除,但没有意识到它会搞乱一切
我用了
apt-get remove java*
这是在 Ubuntu 16.0 或其他服务器上。现在,我的服务器上有 sysrcd 或系统救援 CD,我正在尝试取回旧文件,将它们放在新服务器上,并将 sysrcd 服务器重新加载回 Ubuntu。但是我似乎不知道如何使用安装系统。
我尝试过跑步
fdisk -l
我得到
Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 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: 0x04a5ca62
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 4095 1024 83 Linux
/dev/sda2 6142 468860927 234427393 5 Extended
/dev/sda5 6144 2004991 999424 83 Linux
/dev/sda6 2007040 468860927 233426944 8e Linux LVM
Disk /dev/mapper/vg-root: 221.6 GiB, 237879951360 bytes, 464609280 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
Disk /dev/mapper/vg-tmp: 976 MiB, 1023410176 bytes, 1998848 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
Disk /dev/mapper/vg-swap: 88 MiB, 92274688 bytes, 180224 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
我不确定要安装哪个驱动器或如何安装它。有人可以帮忙吗?
答案1
LVM
与非 LVM 分区相比,安装分区时需要执行更多步骤。
sudo apt-get install lvm2 #This step may or may not be required.
sudo pvscan #Use this to verify your LVM partition(s) is/are detected.
sudo vgscan --mknodes #Scans for LVM Volume Group(s)
sudo vgchange -ay #Activates LVM Volume Group(s)
sudo lvscan #Scans for available Logical Volumes
sudo mount /dev/YourVolGroup00/YourLogVol00 /YourMountPoint
答案2
还有 gui 方法使用gnome 磁盘
- 选择磁盘和分区
- 单击带有齿轮图标的“更多操作”按钮
- 打开:“编辑安装选项”菜单项
- 关闭用户默认值,因为
- 勾选“系统启动时安装”