可以调整分区大小来破坏文件系统吗?

可能重复:
存在内核错误:EXT4-fs

我调整了一个分区(使用Gparted live cd),并没有问题。 一天后,我开始得到EXT错误。 这两个事件可能是依赖的,或者很可能是硬件问题?

来自kernel.log的错误

Feb 3 12:27:44 evgeny-dell kernel: [ 308.088401] EXT4-fs (sda1): error count: 11 Feb 3 12:27:44 evgeny-dell kernel: [ 308.088405] EXT4-fs (sda1): initial error at 1359831799: ext4_ext_search_left:1224: inode 309104 Feb 3 12:27:44 evgeny-dell kernel: [ 308.088408] EXT4-fs (sda1): last error at 1359886942: ext4_remount:4539: inode 309104 

SMART的输出:

 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 187 187 021 Pre-fail Always - 1633 4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 211 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 100 100 000 Old_age Always - 598 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 100 100 000 Old_age Always - 207 191 G-Sense_Error_Rate 0x0032 001 001 000 Old_age Always - 4257 192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 45 193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 1573 194 Temperature_Celsius 0x0022 104 099 000 Old_age Always - 43 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 200 200 000 Old_age Offline - 0 240 Head_Flying_Hours 0x0032 100 100 000 Old_age Always - 579 241 Total_LBAs_Written 0x0032 200 200 000 Old_age Always - 620156852 242 Total_LBAs_Read 0x0032 200 200 000 Old_age Always - 607562502 254 Free_Fall_Sensor 0x0032 199 199 000 Old_age Always - 1 SMART Error Log Version: 1 No Errors Logged 

如果你知道你在做什么,那么这是安全的,这是一个每天要做的事情。 但是你应该总是有备份!

在成长文件系统 – 分区的深层次上,您可以使用以下方法:

  1. 重新分区磁盘以使包含文件系统的分区更大。 这不会触及你的文件系统只是分区表。
  2. 将您的文件系统扩展到新分区的大小。 在EXT resize2fs为你做这个,它是安全的。 它也迫使你以前做fsck。

当你缩小文件系统分区时,

  1. 您可以使用resize2fs缩小文件系统以适应新的大小。
  2. 调整分区大小。 这是一个棘手的部分,因为如果你把它缩小,那么你可以减less你的文件系统的结束。

像gparted这样的工具可以自动完成上层stream程。

但是,像往常一样,每个程序都可能有错误,但通常这是一个安全的过程。

是。 这就是为什么每个即使一半体面的分区工具警告你。 只需从重新分区之前的备份中恢复即可。 你知道,为了防止这种事情发生,你拿了一个。