Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-27-2016, 04:38 AM   #1
Glenn D.
Registered: May 2009
Location: ACT - Australia
Distribution: Opensuse x86_64 (Latest)
Posts: 132

Rep: Reputation: 26
Are there any tools/code to list 'used blocks' on reiser4 volume ? [sdb] ?

Are there any tools/code to list 'used blocks' on reiser4 volume ? [/dev/sdb] ?

The reason I ask is 57% unused space on volume so [100% - 43% used = 57% unused]

# df -h shows:
Filesystem Size Used Avail Use% Mounted on
/dev/sdb 1.8T 747G 1.0T 43% /media/disk

- To identify used blocks of a reiser4 volume,
- resize volume to ['last' used block allocated to a file + 1 ]
- Is that possible and safe to do so ?
- Frees up a lot of the allowable space [ 1.8T - 747G used]
- Are there any tools/code to re-size a reiser4 partition-volume ?


# fsck.reiser4 --check /dev/sdb shows:
file count: 188,313

# fsck.reiser4 --check /dev/sdb
Reiser4 fs was detected on /dev/sdb.

Master super block (16):
magic: ReIsEr4
blksize: 4096
format: 0x0 (format40)
uuid: 3006ced1-7490-4ea8-a9b8-d82143c6bede
label: <none>

Format super block (17):
plugin: format40
description: Disk-format plugin.
version: 0
magic: ReIsEr40FoRmAt
mkfs id: 0x1ddaf754
flushes: 0
blocks: 488378640
free blocks: 217146980
root block: 37017218
tail policy: 0x2 (smart)
next oid: 0xedade
file count: 188313
tree height: 6
key policy: LARGE

Now using,
# rpm -qa |grep -i reiser4 |sort




kernel now in use:

latest reiser4 patch used:

# fdisk -l shows:
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

references used:
Old 08-28-2016, 06:57 AM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora 34
Posts: 3,664

Rep: Reputation: 1059Reputation: 1059Reputation: 1059Reputation: 1059Reputation: 1059Reputation: 1059Reputation: 1059Reputation: 1059
Not a good idea. Unmount the filesystem, shrink it with resize_reiserfs, then reduce the block device.


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
Bad blocks and LVM2 volume groups Nutria Linux - General 5 05-23-2013 08:48 PM
[SOLVED] How to determine number of blocks of a logical volume Iyyappan Linux - Server 7 04-27-2012 12:58 AM
Does anyone have a list of A blocks used in the US? (or A block used outside the US) abefroman Linux - Security 7 02-13-2012 04:38 PM
code::blocks 10.05 does not highlight code? michaelinux Linux - Software 1 10-24-2010 11:25 AM
list known bad blocks. bruse Linux - Software 1 02-19-2006 08:50 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:04 AM.

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