ianw1974 Posted December 16, 2005 Report Share Posted December 16, 2005 OK, so in addition to using: fdisk -l /dev/sda to find out partition information, is there some sort of utility so that I can find out what configuration was applied when I used the following commands: mke2fs mke2fs -j mkreiserfs the reason I ask is that I don't know what each file system sets the block sizes to by default. I know I can change during the mkxxxxx process, but I just want to be able to find out what they are currently configured as and with what values. Quote Link to comment Share on other sites More sharing options...
lavaeolus Posted December 16, 2005 Report Share Posted December 16, 2005 for ext2/3 you can use dumpe2fs, don't know about reiser, but there should be an equivalent command maybe fsck has some options that show these informations ? Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted December 19, 2005 Author Report Share Posted December 19, 2005 Cool, that works for my ext2/ext3 partitions. I used debugreiserfs for my reiserfs partition, and that worked a treat! Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted December 19, 2005 Author Report Share Posted December 19, 2005 And I think there's dumpxfs for xfs partitions too, will have to check when I get home :D Quote Link to comment Share on other sites More sharing options...
lynchmob Posted December 19, 2005 Report Share Posted December 19, 2005 Do you use the actual partition info as an argument? ie.: dumpe2fs /dev/sda1 or debugreiserfs /dev/sda6 Or do you point to the entire device? lynchmob Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted December 19, 2005 Author Report Share Posted December 19, 2005 I've been using how you mention above with the command followed by the device/partition. My gentoo systems has /dev/sda1 which is ext2 or ext3 depending on what I was building, and /dev/sda3 which is reiserfs or xfs depending on my preference. I've both tested the dumpe2fs and debugreiserfs and they work no problem, but I've yet to test what's available for xfs. Quote Link to comment Share on other sites More sharing options...
lavaeolus Posted January 9, 2006 Report Share Posted January 9, 2006 you have to point the command to a partition (e. g. /dev/sda1) not the entire disk, since the dump command informs you about the filesystem (version, attributes and the like) not the physical disk, for info about the disk itself you can use hdparm or better smartmontools Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted January 9, 2006 Author Report Share Posted January 9, 2006 I know :P But when using fdisk -l I have to use without the numbers :D Quote Link to comment Share on other sites More sharing options...
lavaeolus Posted January 9, 2006 Report Share Posted January 9, 2006 sorry, was an answer to lynchmobs question :D Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted January 11, 2006 Author Report Share Posted January 11, 2006 I never saw that! I think I was having a bad eye day :P Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.