33 MB used on a empty partition?
Hi. I was running some system checks on a server where I had created a partition for future use... This partition has 60GB, formatted with ext3 with largefile option (created with the sarge debian installer) and the only thing I can see there is the lost+found folder... df shows [EMAIL PROTECTED]:~$ df Filesystem 1K-blocks Used Available Use% Mounted on ... /dev/md5 58875084 32828 55897952 1% /backup or, using this output to be more visible [EMAIL PROTECTED]:~$ df -h FilesystemSize Used Avail Use% Mounted on ... /dev/md5 57G 33M 54G 1% /backup However, du shows: linux:/home/jpcl# du -sh /backup/ 20K /backup/ ... So, where are those 33MB going to? Is it related to largefile? Or maybe by being ext3 (maybe the journal size)? What tool can I use to find out the filesystem details? The partition sizes we can find out with fdisk, cfdisk, or whatever... but how do we check the what filesystem, what blocksize, what journal size, ...? Thanks Joao Clemente -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: 33 MB used on a empty partition?
thats normal when u format a partiton using ext3. It creates an area for the jornaling. On Fri, 07 Jan 2005 19:18:47 +, Joao Clemente [EMAIL PROTECTED] wrote: Hi. I was running some system checks on a server where I had created a partition for future use... This partition has 60GB, formatted with ext3 with largefile option (created with the sarge debian installer) and the only thing I can see there is the lost+found folder... df shows [EMAIL PROTECTED]:~$ df Filesystem 1K-blocks Used Available Use% Mounted on ... /dev/md5 58875084 32828 55897952 1% /backup or, using this output to be more visible [EMAIL PROTECTED]:~$ df -h FilesystemSize Used Avail Use% Mounted on ... /dev/md5 57G 33M 54G 1% /backup However, du shows: linux:/home/jpcl# du -sh /backup/ 20K /backup/ ... So, where are those 33MB going to? Is it related to largefile? Or maybe by being ext3 (maybe the journal size)? What tool can I use to find out the filesystem details? The partition sizes we can find out with fdisk, cfdisk, or whatever... but how do we check the what filesystem, what blocksize, what journal size, ...? Thanks Joao Clemente -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- []'s -- Franz Gustav Niederheitmann [EMAIL PROTECTED] GNU/LINUX USER#301744 Engenhação da Computaria- PucPr --
Re: 33 MB used on a empty partition?
On Fri, 07 Jan 2005 19:18:47 +, Joao Clemente [EMAIL PROTECTED] wrote: What tool can I use to find out the filesystem details? The partition sizes we can find out with fdisk, cfdisk, or whatever... but how do we check the what filesystem, what blocksize, what journal size, ...? Running dump2efs on the partition will give you, among other information, the block size and the journal inode. Then run debugfs on the partition, and use the command: stat i, replacing i with the inode of the journal. This will give you the blockcount. Multiply this blockcount by the block size to get the journal size in bytes. Rabin -- http://rabin.blogspot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: 33 MB used on a empty partition?
Rabin Vincent wrote: On Fri, 07 Jan 2005 19:18:47 +, Joao Clemente [EMAIL PROTECTED] wrote: What tool can I use to find out the filesystem details? The partition sizes we can find out with fdisk, cfdisk, or whatever... but how do we check the what filesystem, what blocksize, what journal size, ...? Running dump2efs on the partition will give you, among other information, the block size and the journal inode. Then run debugfs on the partition, and use the command: stat i, replacing i with the inode of the journal. This will give you the blockcount. Multiply this blockcount by the block size to get the journal size in bytes. Hmmm... too messy for what I was asking... Isnt't there a simple tool that shows something like /dev/hda1 : ext2, 1024byte/block, /dev/hda2 : ext3, 2048byte/block, 10Mb journal journal specific stuff like ... journal sync period time /dev/hda3 : vfat, ... even if we call it one by one (show_fs /dev/hda1, show_fs /dev/hda2,..)? dumpe2fs seems to show information similar to tune2fs -l ... I think it shows most of the information I would like to find, altough we're alredy assuming this is a ext2/ext3 filesystem... And, now that we're talking about filesystems, maybe someone can enlighten me on one other related thing: I usually use noatime in my fstab options, and AFAIK this will prevent the system from updating a last accessed time from a file. So... there is must be a way to know this last accessed time ... wich tool is it? Thanks Joao Clemente -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: 33 MB used on a empty partition?
On Fri, 07 Jan 2005 22:09:39 +, Joao Clemente [EMAIL PROTECTED] wrote: Hmmm... too messy for what I was asking... Isnt't there a simple tool that shows something like /dev/hda1 : ext2, 1024byte/block, /dev/hda2 : ext3, 2048byte/block, 10Mb journal journal specific stuff like ... journal sync period time /dev/hda3 : vfat, ... even if we call it one by one (show_fs /dev/hda1, show_fs /dev/hda2,..)? dumpe2fs seems to show information similar to tune2fs -l ... I think it shows most of the information I would like to find, altough we're alredy assuming this is a ext2/ext3 filesystem... I haven't come across a program that does this. But, here a bash one-liner that does at least part of what you want. It should be one big line, replace /dev/hda2 with your partition, run as root. Its output is like: /dev/hda2, 1024 byte/block, 16452 kb journal --snip-- part=/dev/hda2;blocksize=`tune2fs -l $part | awk '/Block size/ {print $3}'`;tune2fs -l $part | awk '/Journal inode/ {print $3}' | xargs -i debugfs -R 'stat {}' $part 21 | awk '/Blockcount/ {print $4}' | xargs -i expr {} \* $blocksize / 1024 | xargs -i echo $part, $blocksize byte/block, {} kb journal --/snip-- [...] So... there is must be a way to know this last accessed time ... wich tool is it? Use stat or ls -lu. Rabin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: 33 MB used on a empty partition?
On Fri, 07 Jan 2005 22:09:39 +, Joao Clemente [EMAIL PROTECTED] wrote: Rabin Vincent wrote: On Fri, 07 Jan 2005 19:18:47 +, Joao Clemente [EMAIL PROTECTED] wrote: What tool can I use to find out the filesystem details? The partition sizes we can find out with fdisk, cfdisk, or whatever... but how do we check the what filesystem, what blocksize, what journal size, ...? Running dump2efs on the partition will give you, among other information, the block size and the journal inode. Then run debugfs on the partition, and use the command: stat i, replacing i with the inode of the journal. This will give you the blockcount. Multiply this blockcount by the block size to get the journal size in bytes. Hmmm... too messy for what I was asking... Isnt't there a simple tool that shows something like /dev/hda1 : ext2, 1024byte/block, /dev/hda2 : ext3, 2048byte/block, 10Mb journal journal specific stuff like ... journal sync period time /dev/hda3 : vfat, ... even if we call it one by one (show_fs /dev/hda1, show_fs /dev/hda2,..)? dumpe2fs seems to show information similar to tune2fs -l ... I think it shows most of the information I would like to find, altough we're alredy assuming this is a ext2/ext3 filesystem... And, now that we're talking about filesystems, maybe someone can enlighten me on one other related thing: I usually use noatime in my fstab options, and AFAIK this will prevent the system from updating a last accessed time from a file. So... there is must be a way to know this last accessed time ... wich tool is it? ls Andrea -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]