LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-28-2016, 02:13 PM   #1
haary
Member
 
Registered: Apr 2015
Posts: 49

Rep: Reputation: Disabled
resize2fs segfaults on Slackware 64 14.2


I am trying to shrink a 200GB ext4 partition by a few GB:

Code:
resize2fs -p /dev/sda5 200864640K
resize2fs 1.43.1 (08-Jun-2016)
Resizing the filesystem on /dev/sda5 to 50216160 (4k) blocks.
Begin pass 3 (max = 1545)
Scanning inode table          XXXXXXXXSegmentation fault--------------
The file system was created under another linux distro (I think it was Debian or one of the Ubuntu family). Below is the output of tune2fs -l.

Finally I could shrink the partition under a Debian live system without problems. But under Slackware64 the problem persists.

The system under which the fs was created was 32bit, as was the Debian live system.

Code:
tune2fs 1.43.1 (08-Jun-2016)
Filesystem volume name:   <none>
Last mounted on:          /home
Filesystem UUID:          253d7f76-1b5f-4c5b-a370-dd323a2487f5
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash 
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              12656640
Block count:              50603776
Reserved block count:     2530188
Free blocks:              40981291
Free inodes:              12572737
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      1011
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
RAID stride:              32743
Flex block group size:    16
Filesystem created:       Wed Oct  7 14:17:00 2015
Last mount time:          Thu Jul 28 20:57:49 2016
Last write time:          Thu Jul 28 20:59:38 2016
Mount count:              0
Maximum mount count:      -1
Last checked:             Thu Jul 28 20:59:38 2016
Check interval:           0 (<none>)
Lifetime writes:          68 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      fd582c08-0085-442b-827e-2534d8c88527
Journal backup:           inode blocks
 
Old 07-28-2016, 08:26 PM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Quote:
I am trying to shrink a 200GB ext4 partition by a few GB
Finally I could shrink the partition under a Debian live system without problems. But under Slackware64 the problem persists.
resize2fs may be used to expand or shrink an UNMOUNTED partition.
But it can only enlarge or expand (with available space) while MOUNTED, beginning kernel 2.6 it supports on-line expanding.

Working with LiveCD assumes that the target volume was not mounted so resize2fs can work with anything.

Hope that helps.

m.m.
 
Old 07-29-2016, 12:55 AM   #3
haary
Member
 
Registered: Apr 2015
Posts: 49

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by malekmustaq View Post
resize2fs may be used to expand or shrink an UNMOUNTED partition.
But it can only enlarge or expand (with available space) while MOUNTED, beginning kernel 2.6 it supports on-line expanding.

Working with LiveCD assumes that the target volume was not mounted so resize2fs can work with anything.

Hope that helps.

m.m.
Of course it was also unmounted under Slackware64. Otherwise resize2fs complains and terminates. The segfault has nothing to do with it.
 
  


Reply

Tags
ext4, resize2fs, segfault



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
resize2fs Mercury305 Linux - General 5 06-23-2014 09:42 AM
aout still segfaults after modprobe binfmt_aout on Slackware 14.0_x32 forkosh Slackware - Installation 15 01-08-2013 03:48 AM
resize2fs nooch Red Hat 2 02-25-2005 09:42 PM
Ldconfig Segfaults On Slackware 9.1 johnleemk Linux - General 0 02-18-2004 02:39 AM
slackware installation causes segfaults logik313 Slackware - Installation 2 01-21-2004 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:53 PM.

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