البرمجة

تأثير الكتل السيئة على الأقراص

Bad blocks are related to the physical storage medium, such as a hard drive or SSD, rather than the partition itself. When you run e2fsck -c to check for bad blocks, the tool marks these bad blocks in the filesystem’s bad block inode so that the operating system avoids using them. This marking is persistent and is tied to the physical storage medium, not the partition.

If you reformat the partition using mkfs.ext4, the bad blocks will still be marked because the marking is at the storage device level. The filesystem creation process will typically skip these bad blocks when setting up the new filesystem.

However, it’s important to note that the presence of bad blocks can indicate potential issues with the storage device, and it may be prudent to monitor the situation and consider replacing the device if the number of bad blocks increases over time.

المزيد من المعلومات

عندما تكتشف أدوات فحص الأقراص الصلبة مثل e2fsck وجود كتل سيئة (bad blocks)، يتم عادة تسجيل هذه الكتل في جدول الكتل السيئة (bad block table) الخاص بالجهاز التخزين. هذا الجدول يحتوي على معلومات حول مواقع الكتل السيئة ويتم استخدامه لتجنب استخدام هذه الكتل في المستقبل.

عملية تسجيل الكتل السيئة في الجدول تعتبر دائمة على الجهاز التخزين ولا تتأثر بعمليات إعادة التهيئة (formatting) للقسم (partition) أو القرص بشكل عام. حتى بعد إعادة تهيئة القسم باستخدام mkfs.ext4، ستظل الكتل السيئة مسجلة في الجدول ولن تستخدم من قبل نظام الملفات الجديد.

من الجدير بالذكر أن وجود كتل سيئة يمكن أن يكون ناتجًا عن مشاكل في الجهاز التخزين نفسه، وقد تشير زيادة عددها مع مرور الوقت إلى حاجة النظر في استبدال الجهاز.

مقالات ذات صلة

زر الذهاب إلى الأعلى
إغلاق

أنت تستخدم إضافة Adblock

يرجى تعطيل مانع الإعلانات حيث أن موقعنا غير مزعج ولا بأس من عرض الأعلانات لك فهي تعتبر كمصدر دخل لنا و دعم مقدم منك لنا لنستمر في تقديم المحتوى المناسب و المفيد لك فلا تبخل بدعمنا عزيزي الزائر