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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-11-2023, 02:03 PM
|
#1
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,430
|
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.
|
|
|
10-11-2023, 02:26 PM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,010
|
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).
|
|
|
10-11-2023, 10:14 PM
|
#3
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,426
|
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?
|
|
|
10-11-2023, 10:47 PM
|
#4
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,811
|
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.
|
|
|
10-12-2023, 04:49 AM
|
#5
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,430
Original Poster
|
Quote:
Originally Posted by colorpurple21859
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.
|
|
|
All times are GMT -5. The time now is 06:58 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|