Art Wildman | 1 Nov 16:38 2004
Picon

Re: IDE disk drive controllers and disk drive sizes supported by RedHat 9 Shrike

Alexander Povolotsky wrote:

>Hi,
>
>I have Linux Red Hat 9 on Pentium III PC (Dell Optiplex 110 )
>running off the 8 Gb Disk Drive; there is also small boot drive on that IDE controller. 
>
>I ran out of disk space on that 8 Gb disk drive.
>
>There is also another IDE controller for the functional CD-ROM there.
>
>I bought (3rd) SIIG UltraATA 100 PCI Controller and 80 Gb Western Digital IDE disk drive - could I add this
new controller with this new disk drive and somehow make existing Linux Red Hat 9 recognize this new drive
as additional disk space ? Is SIIG UltraATA 100 PCI Controller 
>supported by RedHat 9 ? If yes, do I need to do something specific 
>(like compiling module ? - if yes - could be 'dynamically loadable 
>module' or the module should be statically compiled into the kernel ? -
>are steps to be performed documented someplace on-line ?).
>Somebody told me that 'SIIG's IDE controller is a bad choice for Linux Red Hat 9 and that IDE controller from
'Promise' is supported by RedHat 9 - is it true ? 
>Is 80 Gb drive in general supported by RedHat 9 (which is Linux kernel 2.4 based ) ? If not what is the largest
size supported: 10 Gb ? 20 Gb ? 40 Gb ?
>
>Suppose alternatively to above discussed I will just add 20 Gb drive to the second (available) slot on the
existent IDE controller, which now controls the CD-ROM - will it work ? (... and if 'yes' - are any actions
needed on my part ?).
>
>Thanks,
>Alex
>
(Continue reading)

Matías López Bergero | 1 Nov 17:53 2004
Picon

Re: make-the-admin-happy-with-one-line


James Turnbull wrote:
|>If all of us are willing to share their expertise, then i will try to
|>create a wiki on a public ip. Shall i create a Wiki? please give your
|>consent.
|>Currently i have exams coming up, so i will do it after a week or so.
|>
|
| I would be happy to contribute some one-liners.  A wiki on a public
| Wikifarm sounds ideal.

yes! I agree, Wiki is *g*

RB,
Matías.
Atishay Kumar | 1 Nov 18:10 2004
Picon

Re: make-the-admin-happy-with-one-line

On Mon, 01 Nov 2004 13:53:56 -0300, Matías López Bergero
<mlopezb <at> udesa.edu.ar> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> James Turnbull wrote:
> |>If all of us are willing to share their expertise, then i will try to
> 
> 
> |>create a wiki on a public ip. Shall i create a Wiki? please give your
> |>consent.
> |>Currently i have exams coming up, so i will do it after a week or so.
> |>
> |
> | I would be happy to contribute some one-liners.  A wiki on a public
> | Wikifarm sounds ideal.
> 
> yes! I agree, Wiki is *g*
i am in process of making one. i should be able to make it work soon.
rgds
atishay
> 
> RB,
> Matías.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFBhmokRB0HKLRQp/gRAvlHAKDBhInsbizeZKb+DQcOGou4eImY3wCfRHkQ
> AfzCor4v0I6Y1aL4Qk7Ni0Y=
(Continue reading)

Mraz, Scott | 1 Nov 20:10 2004

RE: forcing a reboot


Correct me if I'm wrong, however, would not a shutdown -r now command
not immediately kill the system and reboot?

http://www.computerhope.com/unix/ushutdow.htm

-Scott

-----Original Message-----
From: unki <at> netshadow.at [mailto:unki <at> netshadow.at] 
Sent: Friday, October 22, 2004 6:21 AM
To: drupix <at> gmail.com
Cc: linux-admin <at> vger.kernel.org; urgrue <at> tumsan.fi
Subject: Re: forcing a reboot

if you really nead a reboot and you have sysrq (Magic Sysrq Key in the
Menu Kernel hacking) enabled, you can use 

    echo b > /proc/sysrq-trigger 

to reboot - if your system is still alive then you can try the
combination

    ALT+"Print Screen"

to get the Sysrq-Menu in the console and then press the key as shown on
the oncoming menu.

more information you could find in the file sysrq.txt in the
documentation directory of the linux kernel sources.
(Continue reading)

chuck gelm | 1 Nov 23:18 2004
Picon

Re: IDE disk drive controllers and disk drive sizes supported by RedHat 9 Shrike

Alexander Povolotsky wrote:

>Hi,
>
>I have Linux Red Hat 9 on Pentium III PC (Dell Optiplex 110 )
>running off the 8 Gb Disk Drive; there is also small boot drive on that IDE controller. 
>
>I ran out of disk space on that 8 Gb disk drive.
>
>There is also another IDE controller for the functional CD-ROM there.
>
>I bought (3rd) SIIG UltraATA 100 PCI Controller and 80 Gb Western Digital IDE disk drive - could I add this
new controller with this new 
>
Do You have a (1st and 2nd) SIIG UltraATA PCI Controller or is this the first 'add on' PCI IDE card?

>disk drive and somehow make existing Linux Red Hat 9 recognize this new drive as additional disk space ? Is
SIIG UltraATA 100 PCI Controller 
>supported by RedHat 9 ? 
>
If BIOS can recognize the drives on the new controller card,
 I will bet that linux will be able to use them.  'Somehow make existing 
linux'
recognize the drive just like it somehow recognizes the current drives.
Edit 'fstab' or mount the new partitions manually with a script.

>If yes, do I need to do something specific 
>(like compiling module ? - if yes - could be 'dynamically loadable 
>module' or the module should be statically compiled into the kernel ? -
>are steps to be performed documented someplace on-line ?).
(Continue reading)

chuck gelm | 1 Nov 23:40 2004
Picon

Re: forcing a reboot

Andreas Unterkircher wrote:

>if you really nead a reboot and you have sysrq (Magic Sysrq Key in the
>Menu Kernel hacking) enabled, you can use 
>
>    echo b > /proc/sysrq-trigger 
>
>to reboot - if your system is still alive then you can try the
>combination
>
>    ALT+"Print Screen"
>
>to get the Sysrq-Menu in the console and then press the key as shown on
>the oncoming menu.
>
>more information you could find in the file sysrq.txt in the
>documentation directory of the linux kernel sources.
>
>hope this helps you.
>
>andi
>
>
>Am Freitag, den 22.10.2004, 13:45 +0300 schrieb Adrian C.: 
>  
>
>>You could try a killall -9 zombie_process_name before reboot. man
>>reboot has no force reboot option that i can see.
>>
>>--Adrian.
(Continue reading)

Kevin J. Cummings | 2 Nov 00:16 2004
Picon

Re: forcing a reboot

chuck gelm wrote:
> I do not have a 'sysrq'.

It is usually:  ALT + Print Scrn

> I am using Slackware v9.1, kernel 2.4.22.
> Is 'sysrq (Magic Sysrq Key in the Menu Kernel hacking)'
> distribution specific.
> grep -i sysrq /usr/src/linux/.config returns 'null'.
> ?
> 
> Anyhow, I use
> 'halt'
> to shut my systems down in a hurry.

--

-- 
Kevin J. Cummings
kjchome <at> rcn.com
cummings <at> kjchome.homeip.net
cummings <at> kjc386.framingham.ma.us
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

vick Julius | 2 Nov 05:21 2004
Picon

shell/Perl question

Hi everybody

I have several directories (around 10) named ABC, DEF, GHI,...
Each directory contains more than 50 files named, for example, 1.jpg, 2.jpg, 
3.jpg,...50.jpg
These names are the same in each directory (this is what digital cameras do, 
they give the same names...)
My problem is: I want to put all these files in the same directory, for 
example, Photos, with the following names:
1ABC.jpg, 2ABC.jpg, ...50ABC.jpg, 1DEF.jpg, 2DEF.jpg...50DEF.jpg,...
each image filename (such as 1.jpg) will be split and to insert the name of 
the directory (such as ABC..) after the first part of the name and finally 
append the extension (.jpg) to the filename.

Any idea?
Thanks

Vick

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Glynn Clements | 2 Nov 07:58 2004

Re: shell/Perl question


vick Julius wrote:

> I have several directories (around 10) named ABC, DEF, GHI,...
> Each directory contains more than 50 files named, for example, 1.jpg, 2.jpg, 
> 3.jpg,...50.jpg
> These names are the same in each directory (this is what digital cameras do, 
> they give the same names...)
> My problem is: I want to put all these files in the same directory, for 
> example, Photos, with the following names:
> 1ABC.jpg, 2ABC.jpg, ...50ABC.jpg, 1DEF.jpg, 2DEF.jpg...50DEF.jpg,...
> each image filename (such as 1.jpg) will be split and to insert the name of 
> the directory (such as ABC..) after the first part of the name and finally 
> append the extension (.jpg) to the filename.

Two examples:

	for dir in ABC DEF GHI ; do
	 for file in `(cd "$dir" && echo *.jpg)` ; do
	  mv "$dir/$file" "Photos/${file%%.jpg}$dir.jpg"
	 done
	done

	find . -type f | sed 's!^\./\(.*\)/\(.*\)\.jpg$!mv \1/\2.jpg Photos/\2\1.jpg!' | sh

If any of the filenames contain spaces, it gets more complex.

--

-- 
Glynn Clements <glynn <at> gclements.plus.com>
-
(Continue reading)

Dan Kubilos | 2 Nov 08:50 2004

Re: shell/Perl question

love Vick's short ones.

I use perl for tasks like this.

There is a perl module called File::Copy that is great for this.
something like.

opendir(HANDLE, "dir to read" ).

while ( $eachfile = readdir( HANDLE ) ) {

	move( "$eachfile", "new_location/new_prefix_$eachfile

}

I can send you examples if you are interested.

You might also look at 

http://www.stanford.edu/~epop/igal/

To organize your photos.

On Tue, 2 Nov 2004, Glynn Clements wrote:

> 
> vick Julius wrote:
> 
> > I have several directories (around 10) named ABC, DEF, GHI,...
> > Each directory contains more than 50 files named, for example, 1.jpg, 2.jpg, 
(Continue reading)


Gmane