LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-11-2023, 02:03 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,430

Rep: Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591
e2fsck - What's the fix?


I'm getting this from an sdcard. It's no disaster if I lose it, but I'd like the way out, if there is one.
Code:
dec@Ebony:~$sudo e2fsck -f /dev/sdb2
e2fsck 1.46.5 (30-Dec-2021)
The filesystem size (according to the superblock) is 7556347 blocks
The physical size of the device is 7556096 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? yes
dec@Ebony:~$sudo e2fsck -f -b 98304 /dev/sdb2
e2fsck 1.46.5 (30-Dec-2021)
The filesystem size (according to the superblock) is 7556347 blocks
The physical size of the device is 7556096 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>?
Pressing 'yes' dumps you out. Pressing no ignores the problem & checks the rest, but the thing won't mount. As the second exchange shows, the superblock looks OK.
 
Old 10-11-2023, 02:26 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,010

Rep: Reputation: 7892Reputation: 7892Reputation: 7892Reputation: 7892Reputation: 7892Reputation: 7892Reputation: 7892Reputation: 7892Reputation: 7892Reputation: 7892Reputation: 7892
the physical size of the device is smaller than the filesystem on it (as I see). I would save everything and reformat it (either the partition or the whole sdcard).
 
Old 10-11-2023, 10:14 PM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,426
Blog Entries: 1

Rep: Reputation: 2220Reputation: 2220Reputation: 2220Reputation: 2220Reputation: 2220Reputation: 2220Reputation: 2220Reputation: 2220Reputation: 2220Reputation: 2220Reputation: 2220
The physical size of the sdb device is 7556096 blocks, or the physical size of the sdb2 device is 7556096 blocks? If sdb2, how many blocks is sdb, so perhaps you could delete sdb2 and recreate it larger?
 
Old 10-11-2023, 10:47 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,811

Rep: Reputation: 1680Reputation: 1680Reputation: 1680Reputation: 1680Reputation: 1680Reputation: 1680Reputation: 1680Reputation: 1680Reputation: 1680Reputation: 1680Reputation: 1680
Resize the file system with resize2fs to fit inside the partition or use parted to resize the partition large enough to hold the file system.
 
Old 10-12-2023, 04:49 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,430

Original Poster
Rep: Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591
Quote:
Originally Posted by colorpurple21859 View Post
Resize the file system with resize2fs to fit inside the partition or use parted to resize the partition large enough to hold the file system.
Well, I resized the disk (again), and that did it. It had started life as a disk image of ~14G with an ext2 file system. So I've already resized it to 100%, but tried again and got there. Extending an ext? filesystem is a much less controlled process

Thanks to all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] a fix? --> e2fsck: unable to set superblock flags on 2TBInternal: BW-userx Linux - Hardware 8 06-21-2019 01:34 PM
e2fsck fails to fix ext4 file system after recovery to new USB flash drive hGi'mD Linux - Hardware 8 12-07-2017 01:47 AM
[SOLVED] maximal mount count reached - how can I fix fstab to run e2fsck or run it manually? jg1 Linux - Newbie 4 08-06-2011 06:09 PM
e2fsck couldn't fix parent of inode Kumud Kumar Singh Linux - General 1 07-17-2009 05:28 AM
fs damage. e2fsck will not run to fix linux partition aya_rei Linux - Software 4 02-23-2005 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration