|
Home > Archive > Unix Programming > January 2004 > Opening and reading hard disk in Solaris
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Opening and reading hard disk in Solaris
|
|
| KVRN Kiran Kumar 2004-01-28, 9:35 pm |
| Hi Everybody,
Can anybody help me in resolving this issue?
I need to open the hard disk in Solaris. First of all, I don't know
what is the string for that. I have
/dev/rdsk/c1t0d0p0
But, if I use
open("/dev/rdsk/c1t0d0p0",O_RDONLY) it returns -1.
Any help is greatly appreciated.
Regards,
KVRN Kiran Kumar.
| |
|
|
| Fletcher Glenn 2004-01-30, 4:34 am |
|
KVRN Kiran Kumar wrote:quote:
> Hi Everybody,
>
> Can anybody help me in resolving this issue?
>
> I need to open the hard disk in Solaris. First of all, I don't know
> what is the string for that. I have
>
> /dev/rdsk/c1t0d0p0
>
> But, if I use
>
> open("/dev/rdsk/c1t0d0p0",O_RDONLY) it returns -1.
>
> Any help is greatly appreciated.
>
> Regards,
> KVRN Kiran Kumar.
Generally, you have to be root to open a raw device.
--
Fletcher Glenn
|
|
|
|
|