[Ilugc] How to change the inode number using VFS

  • From: dearsaravanan@xxxxxxxxx (Saravanan S)
  • Date: Mon Jan 25 13:23:42 2010

On Mon, Jan 25, 2010 at 10:38 AM, rajkumar vbalakrishnasamy wrote:

Friends i need to change the inode number of the any file system and please
tell some tutorials for that


Hi Rajkumar,
                      In Linux, i-node numbers represents link to physical
locations (AFAIK). Unless you necessarily require a physical location i-node
numbers don't change or its not needed (in case of moving files inode
numbers do not change).

If u need to change a file's i-node number, trick is to copy and paste it
into the same location with a new name and remove the original file and
rename the new file back to original one.
Now check the new i-node number with the command ls -i.


Saravanan Sundaramoorthy
Red Hat Certified Engineer
+91 99404 32545

Other related posts: