无法再安装Ubuntu,找不到缓存

最近,我正在玩Ubuntu发行版,并想尝试另一个版本。 我试图在Ubuntu 16.04上制作一个可启动的USB,并且在/boot/uefi空间/boot/uefi遇到了一些错误。 我搜索了如何清理它,但我认为我删除了比我应该做的更多。 我设法用Mac OS X制作可启动USB,但是当我尝试从USB重启时,我得到了这个。

 [ 1.070715] nouveau 0000:01:C0.0: priv: HUBO: 10ecc0 ffffffff (1C40822c) [ 3.378413] sid 3:0:0:0: [sdc] No Caching mode page found [ 3.378453] sid 3:0:0:0: [sdc] Assuming drive cache: write through BusyBox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (ash) Enter 'help' for a list of built-in commands. (initramfs) mount: mounting dev/loop0 on //filesystem.squashfs failed: Invalid argument Can not Mount /dev/loop0 (/cdrom/casper//filesystem.squashfs on //filesystem.squashfs 

现在我再次陷入没有任何function的操作系统。

我还做了一个哈希和检查,以确保我得到了正确的文件。 如果有办法制作缓存文件夹或类似的东西,我会尝试一下。

如果我理解你的问题,你应该做的是重新创建可启动的USB。 你没有提到你是如何创造它的,但是当你“删除了我应该拥有的东西”时,你可能已经做了一些不受欢迎的事情。

我建议使用dd来完成这项任务而不是第三方软件,因为它对我来说总是更可靠。

警告:绝对确定您正在选择正确的输出设备,因为没有带dd训练轮

命令行应该类似于dd if=input.iso of=targetdevice

有关更多详细信息,请参阅man dd或源下的链接:

资源:

http://osxdaily.com/2015/06/05/copy-iso-to-usb-drive-mac-os-x-command/

看来你有一个糟糕的超级块。 解决这个问题:

首先,启动到现场CD或USB

通过使用找出您的分区号

  sudo fdisk -l|grep Linux|grep -Ev 'swap' 

然后,使用以下命令列出所有超级块:

  sudo dumpe2fs /dev/sda2 | grep superblock 

将sda2替换为您的驱动器号

你应该得到类似的输出

  Primary superblock at 0, Group descriptors at 1-6 Backup superblock at 32768, Group descriptors at 32769-32774 Backup superblock at 98304, Group descriptors at 98305-98310 Backup superblock at 163840, Group descriptors at 163841-163846 Backup superblock at 229376, Group descriptors at 229377-229382 Backup superblock at 294912, Group descriptors at 294913-294918 Backup superblock at 819200, Group descriptors at 819201-819206 Backup superblock at 884736, Group descriptors at 884737-884742 Backup superblock at 1605632, Group descriptors at 1605633-1605638 Backup superblock at 2654208, Group descriptors at 2654209-2654214 Backup superblock at 4096000, Group descriptors at 4096001-4096006 Backup superblock at 7962624, Group descriptors at 7962625-7962630 Backup superblock at 11239424, Group descriptors at 11239425-11239430 Backup superblock at 20480000, Group descriptors at 20480001-20480006 Backup superblock at 23887872, Group descriptors at 23887873-23887878 

从此列表中选择一个备用超级块,对于这种情况,备用超级块#32768

现在,使用备用超级块#32768检查和修复Linux文件系统:

  sudo fsck -b 32768 /dev/sda2 -y 

-y标志用于跳过所有修复? 问题并自动回答所有问题

您应该获得类似的输出:

  fsck 1.40.2 (12-Jul-2007) e2fsck 1.40.2 (12-Jul-2007) /dev/sda2 was not cleanly unmounted, check forced. Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Free blocks count wrong for group #241 (32254, counted=32253). Fix? yes Free blocks count wrong for group #362 (32254, counted=32248). Fix? yes Free blocks count wrong for group #368 (32254, counted=27774). Fix? yes .......... /dev/sda2: ***** FILE SYSTEM WAS MODIFIED ***** /dev/sda2: 59586/30539776 files (0.6% non-contiguous), 3604682/61059048 blocks 

现在尝试安装分区

  sudo mount /dev/sda2 /mnt 

现在,尝试使用以下命令浏览文件系统

  cd /mnt mkdir test ls -l cp file /path/to/safe/location 

如果您能够执行上述命令,则很可能已修复错误。

现在,重新启动计算机,您应该能够正常启动。

资料来源: http : //www.cyberciti.biz/faq/recover-bad-superblock-from-corrupted-partition/