How to read raw system disk

  • Hi,

    I'm trying to write software that should access raw disk and analyze file
    system structures.

    For that I need to read /dev/rdisk0 . rdisk1 etc files.



    While I can open secondary hard disk (/dev/rdisk1) using POSIX function
    open(), it fails in case of system disk /dev/rdisk0 (permission denied).

    If this is not the right list then please point me to.



    Thanks in advance.

    Navneet
  • On Dec 13, 2007 9:55 AM, Navneet Kumar <navneet...> wrote:
    > Hi,
    >
    > I'm trying to write software that should access raw disk and analyze file
    > system structures.
    >
    > For that I need to read /dev/rdisk0 . rdisk1 etc files.
    >
    >
    >
    > While I can open secondary hard disk (/dev/rdisk1) using POSIX function
    > open(), it fails in case of system disk /dev/rdisk0 (permission denied).
    >
    > If this is not the right list then please point me to.

    1) Please don't cross post.
    2) Wrong lists try darwin-dev list.
    3) You cannot get raw access to a mounted disk. (make sure to use
    block aligned reads/writes when access raw devices)

    -Shawn
previous month december 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today