Hi Mahesh, On Wed, Oct 21, 2009 at 1:24 PM, mahesh sobale <msobale007@xxxxxxxxx> wrote: > HI, > > I am new to kernelnewbies. I am trying to print meta data in kernel > space for superblock. > for that i have to fire ioctl and write char device driver(This part i > know), > how about using debugfs. root#debugfs /dev/myvg/lv0 Try help to see all the possible commands. > But i don't know how create loop device and mount ext2 file system on > that and then print > superblock info. > dd if=/dev/zero of=./ext2image1 seek=500000 count=0 &> /dev/null #Setup loopback devices modprobe loop losetup -d /dev/loop0 losetup /dev/loop0 ./ext2image1 mke2fs /dev/lopp0 mount /dev/loop0 /mnt This will mount the loop device on /mnt You can use debugfs on loop device. umount /mnt debugfs /dev/loop0 > Can anybody help on this. > > Thanx..... > Mahesh. > > HTH, -- Regards, Sandeep. “To learn is to change. Education is a process that changes the learner.” -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ