Find the answer to your Linux question:
Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By hagfish52
There's some ways to read the types of file system in each partition in user space, like blkid. Now I want to transplant it under kernel space. By reading the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2012
    Posts
    2

    How to read the file system type of a partition in kernel space


    There's some ways to read the types of file system in each partition in user space, like blkid. Now I want to transplant it under kernel space. By reading the source codes of blkid I found that it reads the partition information from the file "/etc/blkid/blkid.tab", but who writes the information in it and how does it get these information? Any help would be appreciated

  2. #2
    Linux Newbie hagfish52's Avatar
    Join Date
    Dec 2011
    Location
    Asheville, NC
    Posts
    225
    I think libblkid writes that info to the cache file /etc/blkid/blkid.tab
    livevil likes this.

  3. #3
    Just Joined!
    Join Date
    Jul 2012
    Posts
    2
    I figured it out later,problem solved. But thanks anyway

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •