12-07-2011
hey methyl and thanks foryouranswer
i know what internal fragmentation is i think i asked wrong way
what i meant was, how to write a script that will calculate in % how much dsck spaceistakingthat directory where script is executed
will appreciate help!
...filesystem is linux-opensuse ext3
---------- Post updated at 02:21 PM ---------- Previous update was at 02:08 PM ----------
if its stillnotclear i will write exactlyhowi got it...
write a script that will calculate amountof internal fragmentation forall files in directory. assume each block is1024 bytes
10 More Discussions You Might Find Interesting
1. IP Networking
HI all,
I am in urgent need of this answer.
In TCP/IP protocol, If the IP datagram size > MTU of the any
routing network then the IP fragmentation takes place!
Where exactly the Fragmentation takes place? is it at the source network layer or in between at some router?
If so, which of the... (1 Reply)
Discussion started by: reddyb
1 Replies
2. Shell Programming and Scripting
Hi,
I have written one script to calculate total space of all file in one directory, ignoring subdirectory, it works fine.
Now, I've been trying to calculate all files which includes files in any subdirectories.
I use recursive function to do this, but it can work only if there is only one... (4 Replies)
Discussion started by: KLL
4 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Please let me know more details on fragmentation in redhat linux and command to check fragmented files?
Thanks,
Bache Gowda (2 Replies)
Discussion started by: bache_gowda
2 Replies
4. Solaris
All.
How can i calculate the fragmentation ratio on a mounted disk, given that i have no root privilege and i cannot switch to single user mode. (0 Replies)
Discussion started by: Negm
0 Replies
5. UNIX for Dummies Questions & Answers
I need to calcualte the size of a directory by the year the files in that directory were created .
For example the script will sum up, by year, the number of blocks for that directory and its' subdirectories for files created / accessed in that year.
I need a report that would look like... (11 Replies)
Discussion started by: igidttam
11 Replies
6. UNIX for Advanced & Expert Users
Hi,
I need to redirect internal internet requests to a auth client site siting on the gateway. Currently users that are authenticated to access the internet have there mac address listed in the FORWARD chain. All other users need to be redirected to a internal site for authentication.
Can... (1 Reply)
Discussion started by: mshindo
1 Replies
7. Shell Programming and Scripting
Hello,
I'm new member of shell scripting and i face some difficulties. To begin, i try to write an algorithm that calculate from one directory containing nfdump files (288) the entropy of one day 24hours. Each of the file is 5 min interval
(nfdump -r nfcapd.200908250000 -s srcip) 1st
(nfdump... (0 Replies)
Discussion started by: draxmas
0 Replies
8. Shell Programming and Scripting
Hello :
I need some help in writing a ksh script which will find a particular directory in all the file systems in a server and finally report the total size of the direcotry in all the file systems.
Some thing like this..
find /u*/app/oracle -type d -name "product" -prune
and then... (1 Reply)
Discussion started by: Sam1974
1 Replies
9. IP Networking
Hello all, I am experiencing a problem with IP fragmentation.
I am receiving an udp packet that is larger than the MTU and it is fragmented along the network.
I am receiving the two fragments but they are not being reassembled correclty.
The MTU of the system is 1500 and I cannot increase it,... (2 Replies)
Discussion started by: arichard
2 Replies
10. Shell Programming and Scripting
I am trying to use awk to calculate the average of all lines in $2 for every file in a directory. The below bash seems to do that, but I cannot figure out how to capture the string before the _ as the output file name and have it be tab-delimeted. Thank you :).
Filenames in... (3 Replies)
Discussion started by: cmccabe
3 Replies
E2UNDO(8) System Manager's Manual E2UNDO(8)
NAME
e2undo - Replay an undo log for an ext2/ext3/ext4 filesystem
SYNOPSIS
e2undo [ -f ] [ -h ] [ -n ] [ -o offset ] [ -v ] [ -z undo_file ] undo_log device
DESCRIPTION
e2undo will replay the undo log undo_log for an ext2/ext3/ext4 filesystem found on device. This can be used to undo a failed operation by
an e2fsprogs program.
OPTIONS
-f Normally, e2undo will check the filesystem superblock to make sure the undo log matches with the filesystem on the device. If they
do not match, e2undo will refuse to apply the undo log as a safety mechanism. The -f option disables this safety mechanism.
-h Display a usage message.
-n Dry-run; do not actually write blocks back to the filesystem.
-o offset
Specify the filesystem's offset (in bytes) from the beginning of the device or file.
-v Report which block we're currently replaying.
-z undo_file
Before overwriting a file system block, write the old contents of the block to an undo file. This undo file can be used with
e2undo(8) to restore the old contents of the file system should something go wrong. If the empty string is passed as the undo_file
argument, the undo file will be written to a file named e2undo-device.e2undo in the directory specified via the E2FSPROGS_UNDO_DIR
environment variable.
WARNING: The undo file cannot be used to recover from a power or system crash.
AUTHOR
e2undo was written by Aneesh Kumar K.V. (aneesh.kumar@linux.vnet.ibm.com)
AVAILABILITY
e2undo is part of the e2fsprogs package and is available from http://e2fsprogs.sourceforge.net.
SEE ALSO
mke2fs(8), tune2fs(8)
E2fsprogs version 1.44.1 March 2018 E2UNDO(8)