Sponsored Content
Full Discussion: unix filesystem question
Homework and Emergencies Homework & Coursework Questions unix filesystem question Post 302554158 by blob84 on Saturday 10th of September 2011 11:22:59 AM
Old 09-10-2011
unix filesystem question

1. The problem statement, all variables and given/known data:
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 number 13 with direct disk access?
And how many disk access is needed to read this file sequentially form first block to 150?

2. Relevant commands, code, scripts, algorithms:
none


3. The attempts at a solution (include all code and scripts):
I think that is needed 1 disk access to read the block 13 and 150 disk accesses to read the file sequentially.


4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
Universià degli studi di Salerno, Salerno(Italy), Adele Rescigno, www.dia.unisa.it/professori/rescigno/SO/lo.htm

Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

What filesystem does unix use?

And what program can i use to make a unix format? (6 Replies)
Discussion started by: Dark Chrono
6 Replies

2. Filesystems, Disks and Memory

question on filesystem

I heard that if normal users were allowed to create device files by mknod, security problem would be happened. what problem do you think will happen? and It is a really bad idea to use fsck(1M) on a disk partition that is mounted. For example it would be a mistake to run #... (1 Reply)
Discussion started by: junghun_95
1 Replies

3. UNIX for Dummies Questions & Answers

Unix filesystem

hello all, i want to know about the unix file system. about the boot block,super block,and how to access them ,all the geometry details of the file systemetc etc... where can i find this??? i'l b happy if u can help me with a link!!!!! thanx in advance (2 Replies)
Discussion started by: anwerreyaz
2 Replies

4. UNIX for Dummies Questions & Answers

Quick Question on Filesystem

I have an AIX filesystem at 100% and I need to increase it by 30gb. Please give me the command to do this. Thanks in advance. I tried this command and got this error: chfs -a size=+500M /dev/test1223 0516-404 allocp: This system cannot fulfill the allocation request. There are not... (3 Replies)
Discussion started by: NycUnxer
3 Replies

5. Solaris

UFS filesystem mounted on 2 hosts question

I have two Unix (Solaris) hosts that are both attached to our SAN. They are both presented with the same luns. What I want to do is have the same UFS filesystem mounted on both hosts at the same time. What I am trying to accomplish is creating a zone that will reside on both hosts but only... (2 Replies)
Discussion started by: beaker457
2 Replies

6. SuSE

filesystem from unix 32 to linux 64

Hi all. Im migrating from a Unix 32 bit to a linux suse 10 64 bit and would like to know whats the best way to migrate the filesystems? cpio? tar? ftp? Could I make a backup in tape in the unix 32 and restore it in the linux 64? thanx (1 Reply)
Discussion started by: mrodrig
1 Replies

7. UNIX for Dummies Questions & Answers

Copy unix filesystem to windows

Hi all Is there a way to copy a unix filesystem (folders, subfolder and files) to windows (AD) and at the same time maintaine the unix permission (user/group) when copied to windows (AD) filesystem? I want the same permission in windows as I had in unix in one copy job. Is this... (8 Replies)
Discussion started by: tomjen
8 Replies

8. Solaris

Unix command to fill filesystem

I have been trying to fill all available file space on my Solaris box for my project but have not been successful. I have tried the following script: tr '\0' '\060' < /dev/zero | dd of=zero2.txt bs=1024 count=1953125 But the only thing i get in return is this: "d: bad numeric argument:... (8 Replies)
Discussion started by: rbur101
8 Replies

9. UNIX for Dummies Questions & Answers

If [ -h filesystem] question

Hi, I have linux script for post install, there is a line shown below what I do not understand if then     rm -f /opt/isv/testfile     umask 000 Can any one explain me what if does. (1 Reply)
Discussion started by: stew
1 Replies

10. AIX

Question about shared filesystem btw AIX and RHEL

We found out that the Spectrum Scale (GPFS) doesnt support mix nodes (AIX and RHEL) on direct attached storage. Is there any other options besides NFS for mix O/S? Trying to avoid network type of shared filesystem which might end up high traffic on IO because we do run backup jobs on those... (0 Replies)
Discussion started by: kiasu
0 Replies
cmdk(7D)							      Devices								  cmdk(7D)

NAME
cmdk - common disk driver SYNOPSIS
cmdk@target, lun : [ partition | slice ] DESCRIPTION
The cmdk device driver is a common interface to various disk devices. The driver supports magnetic fixed disks and magnetic removable disks. The block-files access the disk using the system's normal buffering mechanism and are read and written without regard to physical disk records. There is also a "raw" interface that provides for direct transmission between the disk and the user's read or write buffer. A sin- gle read or write call usually results in one I/O operation; raw I/O is therefore considerably more efficient when many bytes are transmit- ted. The names of the block files are found in /dev/dsk; the names of the raw files are found in /dev/rdsk. I/O requests to the magnetic disk must have an offset and transfer length that is a multiple of 512 bytes or the driver returns an EINVAL error. Slice 0 is normally used for the root file system on a disk, slice 1 as a paging area (for example, swap), and slice 2 for backing up the entire fdisk partition for Solaris software. Other slices may be used for usr file systems or system reserved area. Fdisk partition 0 is to access the entire disk and is generally used by the fdisk(1M) program. FILES
/dev/dsk/cndn[s|p]n block device (IDE) /dev/rdsk/cndn[s|p]n raw device (IDE) where: cn controller n dn lun n (0-7) sn UNIX system slice n (0-15) pn fdisk partition(0) /kernel/drv/cmdk 32-bit kernel module. /kernel/drv/amd64/cmdk 64-bit kernel module. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |x86 | +-----------------------------+-----------------------------+ SEE ALSO
fdisk(1M), mount(1M), lseek(2), read(2), write(2), readdir(3C), scsi(4), vfstab(4), attributes(5), dkio(7I) SunOS 5.10 9 Oct 2004 cmdk(7D)
All times are GMT -4. The time now is 09:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy