Hello, I'd like to read superblock's information on Redhat 7.3, but I don't know how to do it. For example, Input : "/dev/sdj2" Output : ext2_super_block struct's s_wtime (I saw it at "/usr/include/ext2fs/ext2_fs.h") Input : "/dev/sdj1" Output : ext3_super_block struct's s_wtime (I saw it at "/usr/include/linux/ext3_fs.h") Please give me an answer...
Carles Xavier Munyoz Baldó
2003-Jun-12 12:14 UTC
Re: How can I read superblock(ext2, ext3)'s information?
El Jueves, 12 de Junio de 2003 07:48, 이지은 escribió:> Hello, > I'd like to read superblock's information on Redhat 7.3, > but I don't know how to do it.Hi, Use de debugfs command over the desired partition, and the "show_super_stats -h" debugfs command. For example: # debugfs /dev/hda1 debugfs: show_super_stats -h Filesystem volume name: /boot Last mounted on: <not available> Filesystem UUID: bd9fc6d2-4102-4328-91af-g257964e513b Filesystem magic number: 0xEF53
Andreas Dilger
2003-Jun-12 14:26 UTC
Re: How can I read superblock(ext2, ext3)'s information?
On Jun 12, 2003 14:48 +0900, ÀÌÁöÀº wrote:> I'd like to read superblock's information on Redhat 7.3, > but I don't know how to do it. > > For example, > Input : "/dev/sdj2" > Output : ext2_super_block struct's s_wtime > (I saw it at "/usr/include/ext2fs/ext2_fs.h") > > Input : "/dev/sdj1" > Output : ext3_super_block struct's s_wtime > (I saw it at "/usr/include/linux/ext3_fs.h")"dumpe2fs -h /dev/sdj1" or "tune2fs -l /dev/sdj2" Cheers, Andreas -- Andreas Dilger http://sourceforge.net/projects/ext2resize/ http://www-mddsp.enel.ucalgary.ca/People/adilger/