Linux Mint 上的根分区实时收缩失败

Linux Mint 上的根分区实时收缩失败

采取的步骤:

*使用 fdisk 删除现有根分区并从同一块开始创建一个新的根分区 (PV)

*使用 fdisk 添加了“a”标志,使其可启动,因为 /boot 位于根分区下

重新启动后,我卡在 GRUB 屏幕上,并显示错误“尝试在磁盘 'hd0' 之外读取或写入”

使用实时 USB 后,这是我当前的分区表:

   mint@mint ~ $ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 identifier: 0x0008fb69

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    41945087    20971520   83  Linux
/dev/sda2       609040382   625141759     8050689    5  Extended
Partition 2 does not start on physical sector boundary.
/dev/sda5       609040384   625141759     8050688   82  Linux swap / Solaris

我不确定为什么会收到此错误,因为我认为分区不必是连续的。

mint@mint ~ $ sudo fsck /dev/sda1
fsck from util-linux 2.20.1
e2fsck 1.42.9 (4-Feb-2014)
Error reading block 37781504 (Invalid argument).  Ignore error<y>? yes
Force rewrite<y>? no
Superblock has an invalid journal (inode 8).
Clear<y>? no
fsck.ext4: Illegal inode number while checking ext3 journal for /dev/sda1

/dev/sda1: ********** WARNING: Filesystem still has errors **********

我打算在调整分区大小后使用 resize2fs 重新调整文件系统的大小,但是来自 fsck 的这个错误似乎我应该首先处理这个问题。查看解决方案后,似乎如果我清除超级块,文件系统将丢失其日志并变成外部2。我不确定发生了什么事,希望得到一些建议。

谢谢。

******编辑**********

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   154   130   021    Pre-fail  Always       -       1266
  4 Start_Stop_Count        0x0032   092   092   000    Old_age   Always       -       8446
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   093   093   000    Old_age   Always       -       5213
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   098   098   000    Old_age   Always       -       2182
191 G-Sense_Error_Rate      0x0032   001   001   000    Old_age   Always       -       31259
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       68
193 Load_Cycle_Count        0x0032   157   157   000    Old_age   Always       -       130128
194 Temperature_Celsius     0x0022   105   097   000    Old_age   Always       -       38
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   100   253   000    Old_age   Offline      -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]


SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):

相关内容