I now know, what I missed:
if (ioctl(fd, HDIO_UNREGISTER_HWIF, hwif))
Just the little ioctl() ;-)
---
Alles Kaufen und Verkaufen! eBay.at - der eigene Marktplatz für Österreich.
http://www.austronaut.at/ebay.php
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe
Hi,
I used the command hdparm -U 1 /dev/hdc1 to unregister the ide1 interface.
(version 5.7)
The PC responded with:
attempting to unregister hwif#1
But that's it. And as far as I understand the C code, than -U doesn't really
do antything. I only found:
if (unregister_hwif) {
Hi,
I used the command hdparm -U 1 /dev/hdc1 to unregister the ide1 interface.
The PC responded with:
attempting to unregister hwif#1
But that's it. And as far as I understand the C code, than -U doesn't really
do antything. I only found:
if (unregister_hwif) {
printf("
I do think, that you need a number as you find the following code in hdparm.c
case 'U':
if (!*p && argc && isdigit(**argv))
p = *argv++, --argc;
if(! p) {
fprintf(stderr, "expected hwif_nr\n");
exit(1);
}
sscanf(p++, "%i", &hwif);
unregister_hwif = 1;
break;
isdigit
Returns true if and o
pir aa wrote:
Hi,
I would like to know, how to tell hdparm to unregister ide1 (the secondary ide
channel). I tried with version 4.5:
hdparm -U 1
hdparm -U ide1
hdparm -U /proc/ide/ide1/channel
but it doesn't work. It just prints the help screen, not doing anything else.
Can someone please gi
On Mon, 2004-10-11 at 15:17 +0200, pir aa wrote:
> Hi,
> I would like to know, how to tell hdparm to unregister ide1 (the secondary ide
> channel). I tried with version 4.5:
> hdparm -U 1
> hdparm -U ide1
> hdparm -U /proc/ide/ide1/channel
>
> but it doesn't work. I
Hi,
I would like to know, how to tell hdparm to unregister ide1 (the secondary ide
channel). I tried with version 4.5:
hdparm -U 1
hdparm -U ide1
hdparm -U /proc/ide/ide1/channel
but it doesn't work. It just prints the help screen, not doing anything else.
Can someone please give me a hint?
7 matches
Mail list logo