Jump to content

Finding out hard disk information


Recommended Posts

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.

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 weeks later...

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...