Re: =?iso-8859-1?Q?variable=3DStrart=5FProgramPID =3F=3F?=

2004-11-25 Thread pir aa
Thanks, You are right it is $! but my question that this throws up, is, if when running x scripts the $! could return at some time the pid of a wrong command. What I mean: Imagine having two scripts (I know ls and df don't run long enough, it is just used as an example): 1.) ls pid1s=$! kill $pid1

variable=Strart_ProgramPID ??

2004-11-24 Thread pir aa
Hi, I wrote a bash script from which I call one c-program, that is mainly a loop. But in the script I would like to be able to just kill the loop. So I thought, that there must be a way how to get the PID of a program when starting it (then save it in a variable and later use it to call kill). Is t

(bootdisk HOWTO & initrd) => "login incorrect" :-(

2004-11-02 Thread pir aa
The "funny/strange" thing for me is, that I can pass at boot the option "single" and am asked for the password AND CAN log in?!?! Can anyone help me?? What's wrong with my image, what did I do wrong? Thanks Pir --- Alles Kaufen und Verkaufen! eBay.at - der eigene Marktplatz für Österreich. ht

(bootdisk HOWTO & initrd) => "login incorrect" :-(

2004-11-02 Thread pir aa
Hi, I tried to make a initrd (root has to stay in ram) image by hand, following the suggestions of the bootdisk HOWTO. So I copied almost everything to my image, but when I boot I am prompted to type in my login name. But after doing so I receive four lines of "Login incorrect" (automaticly) and t

hdparm -U

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

hdparm -U

2004-10-14 Thread pir aa
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) { printf(" att

hdparm -U

2004-10-14 Thread pir aa
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(" attempting to un

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: Move Kernel to RAM

2004-10-11 Thread pir aa
What I mean ist, that I want the entire system running from RAM. No swaping to disk, no loading of not loaded/used commamds. What I want is something like a copy of the filesystem system in the RAM. Imagine, that there would be no disk anymore, after copying everything to RAM. Pir --- Alles Kauf

Move Kernel to RAM

2004-10-11 Thread pir aa
Hi again, I would like to have my system (Linux kernel 2.4) moved to ram, after/before booting and stay it there (do everything from there). I have read I might need chroot, but no other information. Does anyone know, where I could find some more info about this? THX Pir --- Alles Kaufen und V

hdparm -U

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

Re: IDE Bus rescan

2004-09-13 Thread pir aa
The Idea of a modul is interesting, but wouldn't that mean, that if I remove the module I'll remove the whole IDE. I've hear that removing the /root could cause problems. My disk is on a separate line anyway, so is there a way to have a modul, that removes just the one line, leaving the other untou

Re: Re: IDE Bus rescan

2004-09-09 Thread pir aa
Yes, but that is not my primary concern. I'll figure the HW out. What I want to know, is if there is a command for rescan or reinitialize the IDE bus. --- Alles Kaufen und Verkaufen! eBay.at - der eigene Marktplatz für Österreich. http://www.austronaut.at/ebay.php -- To UNSUBSCRIBE, email to

IDE Bus rescan

2004-09-09 Thread pir aa
Is there a way to rescan the IDE Bus under Linux. (Not looking at the need of HW). The only thing I want to know, is if I can rescan the Bus after power on. I heard about hdparm -U and hdparm -R, but does it really make a rescan and realizes the new HD? Thx Pir --- Alles Kaufen und Verkaufen! eB