Re: Detecting disk drives from an installation script

2007-06-29 Thread Michelle Konzack
Am 2007-06-20 11:54:02, schrieb Orestes leal: On Wed, 20 Jun 2007 16:29:12 +0200 Michelle Konzack [EMAIL PROTECTED] wrote: Can you tell me which version of fdisk you are using? fdisk -l returns nothing at all (¶USER or root) fdisk v2.12r :-/ I have v2.12p Thanks, Greetings and nice Day

Re: Detecting disk drives from an installation script

2007-06-22 Thread Matus UHLAR - fantomas
echo -e ${FDISKOUT} | some_command ... ^^ Do not forget it. :-) On 20.06.07 10:28, Bob McGowan wrote: Why is '-e' required? The -e tells 'echo' to -e enable interpretation of backslash escapes, but there are no backslash escapes in the output of the 'fdisk -l' to worry

Re: Detecting disk drives from an installation script

2007-06-21 Thread Hugo Vanwoerkom
Orestes leal wrote: On Wed, 20 Jun 2007 12:53:19 -0500 Hugo Vanwoerkom [EMAIL PROTECTED] wrote: Michelle Konzack wrote: Not the best way, but it works perfectly See attached Shell-Script. This is what I have: [EMAIL PROTECTED]:~$ df Filesystem 1K-blocks Used Available Use%

Re: Detecting disk drives from an installation script

2007-06-20 Thread Michelle Konzack
Am 2007-06-14 19:00:47, schrieb Orestes leal: $fdisk -l | grep dev | gawk -F' *' '{ print $1 }' | gawk -F'/dev/' '{ print $0 }' | grep '/dev/sd' particiones.txt Can you tell me which version of fdisk you are using? fdisk -l returns nothing at all (¶USER or root)

Re: Detecting disk drives from an installation script

2007-06-20 Thread Michelle Konzack
Not the best way, but it works perfectly See attached Shell-Script. Thanks, Greetings and nice Day Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ #

Re: Detecting disk drives from an installation script

2007-06-20 Thread Orestes leal
On Wed, 20 Jun 2007 16:29:12 +0200 Michelle Konzack [EMAIL PROTECTED] wrote: Am 2007-06-14 19:00:47, schrieb Orestes leal: $fdisk -l | grep dev | gawk -F' *' '{ print $1 }' | gawk -F'/dev/' '{ print $0 }' | grep '/dev/sd' particiones.txt Can you tell me which version of fdisk you

Re: Detecting disk drives from an installation script

2007-06-20 Thread Bob McGowan
Orestes leal wrote: On Wed, 20 Jun 2007 16:29:12 +0200 Michelle Konzack [EMAIL PROTECTED] wrote: Am 2007-06-14 19:00:47, schrieb Orestes leal: $fdisk -l | grep dev | gawk -F' *' '{ print $1 }' | gawk -F'/dev/' '{ print $0 }' | grep '/dev/sd' particiones.txt Stripped echo -e

Re: Detecting disk drives from an installation script

2007-06-20 Thread Hugo Vanwoerkom
Michelle Konzack wrote: Not the best way, but it works perfectly See attached Shell-Script. This is what I have: [EMAIL PROTECTED]:~$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 7692876 2444696 4857404 34% / tmpfs

Re: Detecting disk drives from an installation script

2007-06-20 Thread Orestes leal
On Wed, 20 Jun 2007 12:53:19 -0500 Hugo Vanwoerkom [EMAIL PROTECTED] wrote: Michelle Konzack wrote: Not the best way, but it works perfectly See attached Shell-Script. This is what I have: [EMAIL PROTECTED]:~$ df Filesystem 1K-blocks Used Available Use% Mounted on

Detecting disk drives from an installation script

2007-06-14 Thread Dallas Clement
Can anyone please recommend the best way to programatically obtain disk drive information, partition, and format from an install script? I presume I could parse the output of fdisk -l to get the drive info. Seems like there has got to be a better or less error prone method for doing this sort of

Re: Detecting disk drives from an installation script

2007-06-14 Thread Orestes leal
On Thu, 14 Jun 2007 17:51:24 -0500 Dallas Clement [EMAIL PROTECTED] wrote: Can anyone please recommend the best way to programatically obtain disk drive information, partition, and format from an install script? I presume I could parse the output of fdisk -l to get the drive info. Seems