Path: news.mitre.org!blanket.mitre.org!nntprelay.mathworks.com!dispose.news.demon.net!demon!bullseye.news.demon.net!demon!sun4nl!news.Amsterdam.NL.net!phcoms4.seri.philips.nl!news.best.ms.philips.com!news From: "Tom Thornhill" Newsgroups: comp.os.ms-windows.programmer.nt.kernel-mode Subject: Re: raw file systems on NT Date: 22 Jan 1998 08:36:12 GMT Organization: Philips Medical Systems Best Message-ID: <01bd2710$a14fe650$725e9082@mniw0055> References: <34C54BB8.6B63@nowhere.edu> <34C60154.8810EF6E@sybase.com> NNTP-Posting-Host: mniw0055.ms.philips.nl X-Newsreader: Microsoft Internet News 4.70.1155 Lines: 36 Eoin Woods wrote in article <34C60154.8810EF6E@sybase.com>... > Sailu Reddy wrote: > > From what I could gather so far, it seems the only way to have a UNIX > > style raw file system is through writing your own file system driver. > > Could any one be so kind as to confirm this ? > No, you can access the partitions directly (e.g. via the name: > > \\.\Device\Harddisk0\Partition0 No you need to use a Win32 name like - \\.\C: - Open drive C: in raw mode \\.\PHYSICALDRIVE0 - Open whole disk in raw mode ( On my system the Win32 device C: is linked to \Device\Harddisk0\Partition1 ) NB Partition numbers start from 1 not 0 Somewhat scarily you can open a partition in READ / WRITE mode, even though NT is running on it, but only if you have admin rights. Obviously if you're using C then the above paths need to be "\\\\.\\C:" and "\\\\.\\PHYSICALDRIVE0" since \ is an escape. Tom. -- ** Please email me a copy of anything you post *** Mailto: tthornhi@best.ms.philips.com-nospam ( remove the -nospam before replying ) Talkto: Tom Thornhill, Philips Medical Systems Nederland BV Tel +31 4027 64080 (Work), +31 499 338211 (Hotel - after 5pm UK time)