Re: Re: hdparm -U

2004-10-11 Thread pir aa
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

Re: hdparm -U

2004-10-11 Thread robin
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 give me a

Re: hdparm -U

2004-10-11 Thread Greg Folkert
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. It just prints the help screen, n