Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Theory question about the organization of a UNIX file... Post 302182477 by ti_ma on Sunday 6th of April 2008 06:18:29 PM
Old 04-06-2008
Theory question about the organization of a UNIX file...

Hi,

I am quite sure that I am posting a question in the very wrong forum but I have to give a try. It's a question about UNIX theory. I don't have any clue of how to solve this question. If someone could kindly provide some good references or give me the formulas, it will be really helpful...Thanks for taking your time....

Consider the organization of a UNIX file as represented by the inode. Assume that there are 12 direct block pointers, and a singly, doubly, and triply indirect pointer in each inode. Further, assume that the system block size and the disk sector size are both 4K. Moreover, the disk block pointer is 32 bits, with 8 bits to identify the physical disk and 24 bits to identify the physical block within a disk.

- What is the maximum file size supported by this system?
- What is the maximum file system partition (that is, the number of addressable bytes) supported by this system?
- Assuming that the file inode is already in main memory, how many disk accesses are required to directly access the byte in position 13,423,956?


Thanks a lot...I really appreciate any kind of help!
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

File Oput question in Unix?

Just curious in Unix BSD lpr customer would result in the printing of the file customers to a printer but I also came across this command pr| customer| lpr which suppose to prepare the file by formatting before printing. My question is what type of formatting is done to the file for example what... (1 Reply)
Discussion started by: wmosley2
1 Replies

2. AIX

Organization in a big file system

hello I have a file system with 737 Go of data (oracle) I want to add 230 Go. IBM technician says to me that it's better (for performance) to backup the file system, rebuild it with the new 250Go and restore it.... 737 Go to backup, it is not very simple... !!!! You confirm what says the... (6 Replies)
Discussion started by: pascalbout
6 Replies

3. UNIX for Dummies Questions & Answers

File organization, /bin and /src

The /src file is obviously designed to contain source code, so when I download programs, I should put them in /src (because they contain the source files + the executables)? What do most people do with the executables? Do they copy them to /bin, make links to them in /bin, or just leave them in... (4 Replies)
Discussion started by: css136
4 Replies

4. Shell Programming and Scripting

mail outside organization

Hi All, Through mailx command, we are able to send mail to all users within the organization but not outside the organization. I need to work with Admin to configure it. Can someone tell me on what are the things needs be done to enable it. i have checked the resolv.conf, it shows only... (1 Reply)
Discussion started by: ace_friends22
1 Replies

5. Shell Programming and Scripting

Help with re-organization data

Input file DATA2.2 POSITION_152486.2 COLUMN689699.2 DATA2.2 ROW00000342066 UNIT00000342313 DATA7.2 POSITION_017891.4 COLUMN060361.4 DATA7.2 ROW00000379319 UNIT00000368623 DATA7.2 ROW00000421241 UNIT00000400736 DATA8.1 POSITION_153254.2 COLUMN694986.2 DATA8.1 ROW00000379288... (1 Reply)
Discussion started by: perl_beginner
1 Replies

6. UNIX for Dummies Questions & Answers

question about unix file system

Hi, The file system unix use a multilevel indexes access to disk, 12 direct blocks, 1 single indirect block, 1 double indirect block, 1 triple indirect block: Assuming a: block = 512 bytes, pointer = 4 byte, and there is a file of 200 blocks, how many disk access is needed to read the block... (1 Reply)
Discussion started by: blob84
1 Replies

7. UNIX for Dummies Questions & Answers

Recursive file organization?

Does anyone have any idea of how I can make something like the code below run recursively? I'll run it on a tree of directories all with different names and all containing a sequence of .dpx files. I've tried to do it using find and exec but can't get it to work right. What it needs to do is... (4 Replies)
Discussion started by: scribling
4 Replies

8. UNIX for Dummies Questions & Answers

Question about UNIX file rights

Hello experts, i am a Unix beginner and to test the rules of file rights (rwx) i created the file /root/testdir/subdir/test.sh and set the rights of testdir,subdir, test.sh (using chmod) to various configurations in order to get an idea in which case you need which rights. Test commands... (5 Replies)
Discussion started by: mike_bn
5 Replies

9. UNIX for Dummies Questions & Answers

UNIX File reading question

Is there a script that will automatically access/count the words in each individual file for a program? (Sorry, I'm trying to help my girlfriend who's in computer science out, I know nothing about this. We're having trouble wording this question.) (1 Reply)
Discussion started by: Triple M
1 Replies
FFIND(1)						      General Commands Manual							  FFIND(1)

NAME
ffind - Finds the name of the file or directory using a given inode SYNOPSIS
ffind [-aduvV] [-f fstype] [-i imgtype] [-o imgoffset] [-b dev_sector_size] image inode DESCRIPTION
ffind finds the names of files or directories that are allocated to inode on disk image image. By default it only will only return the first name it finds. With some file systems, this will find deleted file names. ARGUMENTS
image [images] One (or more if split) disk or partition images whose format is given with '-i'. inode Integer of inode to find. The optional arguments are: -a Find all occurrences of inode. -d Find deleted entries only. -f fstype Identify the file system type of the image. Use '-f list' to list the supported file system types. If not given, autodetection methods are used. -u Find undeleted entries only. -i imgtype Identify the type of image file, such as raw or split. Use '-i list' to list the supported types. If not given, autodetection methods are used. -o imgoffset The sector offset where the file system starts in the image. -b dev_sector_size The size, in bytes, of the underlying device sectors. If not given, the value in the image format is used (if it exists) or 512-bytes is assumed. -v Verbose output to stderr. -V Display version. This program searches all directory entries looking for the given inode. This is useful when an inode has been identified from a disk unit address using ifind(1). EXAMPLE
# ffind -a image 212 SEE ALSO
ifind(1) AUTHOR
Brian Carrier <carrier at sleuthkit dot org> Send documentation updates to <doc-updates at sleuthkit dot org> FFIND(1)
All times are GMT -4. The time now is 04:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy