LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 04-01-2007, 02:31 PM   #1
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 341

Rep: Reputation: 34
ext2/3 Free block bitmap


Hi all

I keep seeing/hearing that the ext2/3 file system uses a bitmap to find out what inodes are located/free

Is there any way to extract this bitmap and see this for myself?


Thanks


Andy
 
Old 04-01-2007, 03:30 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: At home: Arch, OpenBSD, Solaris. At work: CentOS, Debian, Ubuntu
Posts: 3,625

Rep: Reputation: 101Reputation: 101
The e2image program will dump out the bitmap (at least according to the debugfs man page). Perhaps the best way is to use e2image and then use debugfs to look at the resultant image file. Be very careful when using debugfs and only use it on an image file. You can easily destroy a file system with improper use of debugfs. Read the man page for more info.
 
Old 04-01-2007, 03:36 PM   #3
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 341

Original Poster
Rep: Reputation: 34
Managed to make the image with e2image but nowhere in debugfs does it say anything about extracting the bitmap
 
Old 12-11-2010, 05:08 AM   #4
PietroBattiston
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
dumpe2fs

I guess what you (and anyone stumbling, as me, on this page from Google) search is

sudo dumpe2fs /dev/diskpath

Pietro
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why we can't change the block size in ext2 filesystem in source code nagesh20k Linux - General 3 08-23-2006 04:47 PM
partimage - cannot read bitmap block 0 from image CollieJim Linux - General 0 12-21-2005 09:15 AM
e2fsck - Block bitmap differences - LVM1 ddaas Red Hat 1 08-03-2005 04:28 AM
illegal bitmap block(s) HOHCEHC Linux - General 0 05-04-2004 09:07 PM
block size in ext2 ramu_ak Linux - General 2 03-30-2004 01:20 AM


All times are GMT -5. The time now is 11:14 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration