LinuxQuestions.org
Review your favorite Linux distribution.
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 10-12-2014, 09:09 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Size of a block in ext2?


Hi: I formatted a partition with 'mke2fs -c -v -L<label>', and I did not take notice of the output messages. What can the block size be resulting from that command?
 
Old 10-12-2014, 09:25 AM   #2
jamesf
Member
 
Registered: Dec 2004
Location: USA
Distribution: Slackware 12, Slackware64 14.2
Posts: 236
Blog Entries: 1

Rep: Reputation: 57
Try this command:
Code:
tune2fs -l /dev/XXX
where X is the device and partition number of the partition you're interested in. The block size is listed about halfway down, under 'Block size'.For me, for my root device, it says:
Code:
root@gaz:~# tune2fs -l /dev/sda5
tune2fs 1.42.8 (20-Jun-2013)
Filesystem volume name:   <none>
Last mounted on:          <not available>
Filesystem UUID:          4a251bed-74b5-4aa9-8e65-f1e80650ec08
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
Filesystem flags:         signed_directory_hash 
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              915712
Block count:              3662812
Reserved block count:     183140
Free blocks:              775120
Free inodes:              459727
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      894
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8176
Inode blocks per group:   511
Filesystem created:       Sat Jun 11 04:14:51 2011
Last mount time:          Tue Oct  7 17:25:33 2014
Last write time:          Thu Sep 18 16:51:51 2014
Mount count:              16
Maximum mount count:      21
Last checked:             Thu Sep 18 16:51:51 2014
Check interval:           15552000 (6 months)
Next check after:         Tue Mar 17 16:51:51 2015
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
First orphan inode:       20917
Default directory hash:   half_md4
Directory Hash Seed:      cdcc8d4a-6255-4d4a-8ff9-64fd61e47deb
Journal backup:           inode blocks
 
3 members found this post helpful.
Old 10-12-2014, 09:30 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I also got 'Block size: 4096'. Thank you. Has the fs to be unmounted before running tune2fs -l?
 
Old 10-12-2014, 09:47 AM   #4
jamesf
Member
 
Registered: Dec 2004
Location: USA
Distribution: Slackware 12, Slackware64 14.2
Posts: 236
Blog Entries: 1

Rep: Reputation: 57
For -l, no.
 
2 members found this post helpful.
Old 10-12-2014, 10:03 AM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thanks again.
 
  


Reply



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
how to extend / partition size in ext2 format jogendra.jangid Linux - Server 1 01-10-2014 12:20 AM
ext2/3 Free block bitmap x_terminat_or_3 Linux - General 3 12-11-2010 05:08 AM
why we can't change the block size in ext2 filesystem in source code nagesh20k Linux - General 3 08-23-2006 04:47 PM
Extend ext2/ext3 file size limit npuetz Linux - General 2 10-12-2004 09:31 AM
block size in ext2 ramu_ak Linux - General 2 03-30-2004 01:20 AM

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

All times are GMT -5. The time now is 10:27 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