How to map a disk block to filename/ Inode


 
Thread Tools Search this Thread
Operating Systems Solaris How to map a disk block to filename/ Inode
# 1  
Old 03-17-2005
How to map a disk block to filename/ Inode

Hi,
I want to find out a particular disk block belong to which file. in solaris 2.8
Can anyone help.

Thanks and Regards
Bala
# 2  
Old 03-21-2005
This is good question.

To get the specific inode of the file ls -i filename should work. This information is part of the file-system. As for phys location of the file on the disk may take a little more work. I havent personally had to do this so I am not sure exaclty how.

I found a site on google that seems to have how to do this documented:
http://mail-index.netbsd.org/tech-us...4/17/0000.html

Hope this helps.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script to get one to one map and rename the filename

I have 2 files sorted by numerically. I need help with shell script to read these 2 files and do a 1:1 mapping and rename the filenames with the mapped case#; For example: cat case.txt 10_80 10_90 cat files.txt A BCD_x 1.pdf A BCD_x 2.pdf ls pdf_dir A BCD_x 1.pdf A BCD_x 2.pdf ... (2 Replies)
Discussion started by: iaav
2 Replies

2. Solaris

How to cross check created boot block in second disk

Hi All, I have copied a existing root file system from c0t0d0 to c0t1d0 in SUN Fire 6800 by using the below command, ufsdump 0ucf - / | (cd /new.root ; ufsrestore -rf - ) and later on I created a boot block on c0t1d0s0 by using the below command installboot /usr/platform/`uname... (1 Reply)
Discussion started by: dammaharasba
1 Replies

3. UNIX for Advanced & Expert Users

Deciding whether to get a buffer cache block or inode block

I was reading a book on UNIX internals "The design of the UNIX Operating system." There are two memory structures that are confusing me: 1) Buffer cache 2) Inode cache My questions are 1) Does a process get both buffer cache and Indoe cache allocated when it opens/creates a file? 2) if no,... (1 Reply)
Discussion started by: sreeharshasn
1 Replies

4. Shell Programming and Scripting

How can I get only FileName associated with a INODE on Unix much faster?

How can I get only FileName associated with a INODE on Unix in seconds instead of minutes, as it is the case for me as shown below. # Say I have FileDescriptor: 43, INODE: 2590784, File: abc.rdb. I want to get only filename associated with inode:2590784 and FD:43. $> time find / -inum... (7 Replies)
Discussion started by: kchinnam
7 Replies

5. UNIX for Advanced & Expert Users

How to map on a Windows disk ?

Hi, I have installed ubuntu. -how to see the disk on Windows machine ? I should copy some files from a Windows machien which is on the same network to my ubuntu machine. Thank you. (4 Replies)
Discussion started by: big123456
4 Replies

6. UNIX for Dummies Questions & Answers

inode filename

can someone please tell me why is the filename not inlcuded in the inode of the file? (2 Replies)
Discussion started by: wowman
2 Replies

7. AIX

How to get the filename of which has been deleted if I know the inode number?

How to get the filename of which has been deleted if I know the inode number. i can use the command "istat" to get the inode number of the file. # istat /proc//fd/x If this file has been deleted,but the process of this file has not been closed and handle has not been released ,so this... (3 Replies)
Discussion started by: JoyOnLine
3 Replies

8. Shell Programming and Scripting

Filename from splitting files to have the same filename of the original file with counter value

Hi all, I have a list of xml file. I need to split the files to a different files when see the <ko> tag. The list of filename are B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml ... (3 Replies)
Discussion started by: natalie23
3 Replies

9. UNIX for Dummies Questions & Answers

Number of Inode on a disk

How we can know number of inode present in my Disk including free and occupied. Is there any tool or program to know how much free inode are there in inode free list . (2 Replies)
Discussion started by: mr_deb
2 Replies

10. Solaris

inode = which block

hiho, i would like to show my apprentices the auto-defrag/perform mechanism from UFS. new FS, creating new directories, each directory get its own cylinder on the disk. hmm.... they want proofs..... *embarrassing* i couldn't remember how to look on which block the inode is linked.... so,... (4 Replies)
Discussion started by: pressy
4 Replies
Login or Register to Ask a Question