Re: [SLUG] ext3 recovery tools

2004-03-10 Thread mlh

I should also mention the linux disk editor 
http://lde.sourceforge.net/

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] C++ fstream class

2004-03-10 Thread Lucas King
hello,

a somewhat technical question - i am trying to associate a file 
descriptor with a file pointer using the C++ fstream class.  this 
function is an extension to the C++ library.

in the documentation that i downloaded from the WEB 
(http://nf.apac.edu.au/facilities/sc/compaq_mirror3/progtool/cplus/basic_fstream_3c__std.htm) 
it shows a constructor, explicit basic_fstream(fd).  i take this to mean 
that it can be done.  however, it does not provide an example on how to 
invoke the method.

basically, what i am trying to do is fdopen(), a Linux system call, but 
using C++.

please do not assume that my knowledge of C++ is extensive.  this is by 
no means the case.

any feedback on how to do this or a pointer to further reference 
material will be appreciated.

many thanks,

Lucas




The information contained in this e-mail message and any accompanying files
is or may be confidential.If you are not the intended recipient, any use, 
dissemination, reliance,forwarding, printing or copying of this e-mail or
any attached files is unauthorised.This e-mail is subject to copyright. No
part of it should be reproduced,adapted or communicated without the written
consent of the copyright owner.If you have received this e-mail in error,
please advise the sender immediately by return e-mail, or telephone and
delete all copies.Fairfax does not guarantee the accuracy or completeness
of any information contained in this e-mail or attached files. Internet
communications are not secure, therefore Fairfax does not accept legal
responsibility for the contents of this message or attached files.


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] MTA for laptop

2004-03-10 Thread [EMAIL PROTECTED]
  I have an old Compaq Armada currently running Debian Woody...
  Question is a good lightweight MTA for it.
 For MTA, you might want to try lightweight stuff like nullmailer. Personally,
 I find Postfix light enough to use on my laptop.
Seconded on Postfix - works nicely with mutt on my own laptop, with
minimal load.
I haven't used nullmailer, but will probably also do what you want.


Cheers,
James
-- 
...so there I am at ten thousand feet with a power drill in one hand, a
takeaway menu in the other, no parachute and a _very_ suprised
expression...


pgp0.pgp
Description: PGP signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] C++ fstream class

2004-03-10 Thread Matthew Wlazlo
Hi,

Here's an example for reading a file:

#include fstream
#include iostream

using namespace std;

string str;
ifstream inf(test.txt, ios::in);

while(!inf.eof()) {
inf  str;
cout  str  endl;
}


For writing it's almost the same:

ofstream outf(test.txt, ios::out);
outf  Hello World;


HTH

Cheers,
Matt.



** On Wed Mar 10, 2004 at 10:40:44PM +1100, Lucas King ([EMAIL PROTECTED]) wrote:
 hello,
 
 a somewhat technical question - i am trying to associate a file 
 descriptor with a file pointer using the C++ fstream class.  this 
 function is an extension to the C++ library.
 
 in the documentation that i downloaded from the WEB 
 (http://nf.apac.edu.au/facilities/sc/compaq_mirror3/progtool/cplus/basic_fstream_3c__std.htm)
  
 it shows a constructor, explicit basic_fstream(fd).  i take this to mean 
 that it can be done.  however, it does not provide an example on how to 
 invoke the method.
 
 basically, what i am trying to do is fdopen(), a Linux system call, but 
 using C++.
 
 please do not assume that my knowledge of C++ is extensive.  this is by 
 no means the case.
 
 any feedback on how to do this or a pointer to further reference 
 material will be appreciated.
 
 many thanks,
 
 Lucas
 
 
 
 
 
 The information contained in this e-mail message and any accompanying files
 is or may be confidential.If you are not the intended recipient, any use, 
 dissemination, reliance,forwarding, printing or copying of this e-mail or
 any attached files is unauthorised.This e-mail is subject to copyright. No
 part of it should be reproduced,adapted or communicated without the written
 consent of the copyright owner.If you have received this e-mail in error,
 please advise the sender immediately by return e-mail, or telephone and
 delete all copies.Fairfax does not guarantee the accuracy or completeness
 of any information contained in this e-mail or attached files. Internet
 communications are not secure, therefore Fairfax does not accept legal
 responsibility for the contents of this message or attached files.
 
 
 -- 
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


pgp0.pgp
Description: PGP signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] MTA for laptop

2004-03-10 Thread Alexander Samad
On Wed, Mar 10, 2004 at 10:50:05PM +1100, [EMAIL PROTECTED] wrote:
   I have an old Compaq Armada currently running Debian Woody...
   Question is a good lightweight MTA for it.
  For MTA, you might want to try lightweight stuff like nullmailer. Personally,
  I find Postfix light enough to use on my laptop.
 Seconded on Postfix - works nicely with mutt on my own laptop, with
 minimal load.
 I haven't used nullmailer, but will probably also do what you want.

I run exim off inetd, haven't bother to change from the default install
debian 3

A

 
 
 Cheers,
 James
 -- 
 ...so there I am at ten thousand feet with a power drill in one hand, a
 takeaway menu in the other, no parachute and a _very_ suprised
 expression...



 -- 
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html



signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Why is K3b so slow to launch, and why do I need SCSI emulation?

2004-03-10 Thread Stephen Reynolds
Why is K3b so slow to launch in Mandrake 9.2?

I have two CD drives, a CD-RW and a CD-R. When I launch K3b it takes an
age to launch while it tells me it is scanning drives. When it
eventually fires up I get a message box telling me that:
No support for ATAPI with cdrdao
You will not be able to use all your reading devices as copy sources
since there is at least one not configured to use SCSI emulation and
your system does not support ATAPI with cdrdao.
Solution: The best and recommended solution is to enable ide-scsi (SCSI
emulation) for all writer devices. This way you won't have any problems.
How do I enable scsi emulation and why do I need it? Neither of my
drives are scsi drives!
Seems odd to me, and I am a bit confused by this...

Here is my current fstab.

Begin fstab

/dev/hdb2 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hdb9 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/scd0,fs=udf:iso9660,ro,--,iocharset=iso8859-15 0 0
none /mnt/cdrom2 supermount dev=/dev/hdd,fs=udf:iso9660,ro,--,iocharset=iso8859-15 0 0
none /mnt/floppy supermount 
dev=/dev/fd0,fs=ext2:vfat,--,sync,iocharset=iso8859-15,umask=0,codepage=850 0 0
none /mnt/removable supermount dev=/dev/sda1,fs=vfat,--,noexec,umask=0 0 0
/dev/hda1 /mnt/win_c ntfs iocharset=iso8859-15,ro,umask=0 0 0
/dev/hda2 /mnt/win_d ntfs iocharset=iso8859-15,ro,umask=0 0 0
/dev/hda3 /mnt/win_e ntfs iocharset=iso8859-15,ro,umask=0 0 0
/dev/hdb8 /mnt/win_f vfat user,umask=0 0 0
none /proc proc defaults 0 0
/dev/hdb5 swap swap defaults 0 0
/dev/ide/host0/bus1/target1/lun0/cd /mnt/cdrom  autoro,noauto,user,exec
 0 0
/dev/scsi/host0/bus0/target0/lun0/cd/mnt/cdwriter   autoro,noauto,user,exec
 0 0
End fstab



--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] C++ fstream class

2004-03-10 Thread mlh
On Wed, 10 Mar 2004 22:40:44 +1100
Lucas King [EMAIL PROTECTED] wrote:

 hello,
 
 a somewhat technical question - i am trying to associate a file 
 descriptor with a file pointer using the C++ fstream class.  this 
 function is an extension to the C++ library.
 
 in the documentation that i downloaded from the WEB 
 (http://nf.apac.edu.au/facilities/sc/compaq_mirror3/progtool/cplus/basic_fstream_3c__std.htm)


That doco is for the RogueWave library, which is not necessarily in the standard.
In fact I'm pretty sure it's not, because file descriptors are a unix
thing not a language (c++) thing

 it shows a constructor, explicit basic_fstream(fd).  i take this to mean 
 that it can be done.  however, it does not provide an example on how to 

I've been wanting to do a similar thing, and the thing to use
is a gnu extension.  Beginning with g++ 3.1, you should use 
a class __gnu_cxx::stdio_filebuf which is defined in the include file 
ext/stdio_filebuf.h (aka /usr/include/g++/ext/stdio_filebuf.h)

But I'm right in the middle of doing this and haven't got anything working
at the moment.  The net is a bit short on examples!


Matt
PS. I want this so I can popen nicely from within c++.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] C++ fstream class

2004-03-10 Thread mlh
On Wed, 10 Mar 2004 22:51:52 +1100
Matthew Wlazlo [EMAIL PROTECTED] wrote:
 Here's an example for reading a file: [  ]

He wanted to specifically convert unix file
descriptors/pointers to c++ input streams.

Matt
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] C++ fstream class

2004-03-10 Thread Matthew Wlazlo
** On Thu Mar 11, 2004 at 12:11:09AM +1100, [EMAIL PROTECTED] ([EMAIL PROTECTED]) 
wrote:
 On Wed, 10 Mar 2004 22:51:52 +1100
 Matthew Wlazlo [EMAIL PROTECTED] wrote:
  Here's an example for reading a file: [  ]
 
 He wanted to specifically convert unix file
 descriptors/pointers to c++ input streams.

Doh


pgp0.pgp
Description: PGP signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] C++ fstream class

2004-03-10 Thread Matthew Wlazlo
Ok let's try that again (hope i read the question right this time!)

using namespace std;
using namespace __gnu_cxx;



int fd = open(test.txt, O_RDONLY);
stdio_filebufchar in(fd, ios::in, false, 1024);
istream inf(in);

string str;
while(!inf.eof()) {
inf  str;
cout  str  endl;
}

close(fd);


This reads a file using standard c++ streams created from a POSIX file
descriptor. Compiled using gcc 3.2.2.

HTH this time


** On Thu Mar 11, 2004 at 12:04:06AM +1100, [EMAIL PROTECTED] ([EMAIL PROTECTED]) 
wrote:
 On Wed, 10 Mar 2004 22:40:44 +1100
 Lucas King [EMAIL PROTECTED] wrote:
 
  hello,
  
  a somewhat technical question - i am trying to associate a file 
  descriptor with a file pointer using the C++ fstream class.  this 
  function is an extension to the C++ library.
  
  in the documentation that i downloaded from the WEB 
  (http://nf.apac.edu.au/facilities/sc/compaq_mirror3/progtool/cplus/basic_fstream_3c__std.htm)
 
 
 That doco is for the RogueWave library, which is not necessarily in the standard.
 In fact I'm pretty sure it's not, because file descriptors are a unix
 thing not a language (c++) thing
 
  it shows a constructor, explicit basic_fstream(fd).  i take this to mean 
  that it can be done.  however, it does not provide an example on how to 
 
 I've been wanting to do a similar thing, and the thing to use
 is a gnu extension.  Beginning with g++ 3.1, you should use 
 a class __gnu_cxx::stdio_filebuf which is defined in the include file 
 ext/stdio_filebuf.h (aka /usr/include/g++/ext/stdio_filebuf.h)
 
 But I'm right in the middle of doing this and haven't got anything working
 at the moment.  The net is a bit short on examples!
 
 
 Matt
 PS. I want this so I can popen nicely from within c++.
 -- 
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


pgp0.pgp
Description: PGP signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Why is K3b so slow to launch, and why do I need SCSI emulation?

2004-03-10 Thread Erik de Castro Lopo
On Wed, 10 Mar 2004 23:22:24 +1030
Stephen Reynolds [EMAIL PROTECTED] wrote:

 Why is K3b so slow to launch in Mandrake 9.2?

Is it faster on some other Linux distribution? By how much? Is the
hardware different between the two machines?

It might be because of the following:

 How do I enable scsi emulation and why do I need it? Neither of my
 drives are scsi drives!

Its a kernel compile option/kernel module. Under the 2.4 kernel, 
SCSI emulation was the best way to control cd burners. This is
no longer the case under the 2.6 kernel.

Erik
-- 
+---+
  Erik de Castro Lopo  [EMAIL PROTECTED] (Yes it's valid)
+---+
Seen on usenet (possibly a quote from an IBM exec):
Each large company needs its Vietnam, and Microsoft will
 experience it with NT...
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Why is K3b so slow to launch, and why do I need SCSI emulation?

2004-03-10 Thread John Clarke
On Wed, Mar 10, 2004 at 11:22:24 +1030, Stephen Reynolds wrote:

 How do I enable scsi emulation and why do I need it? Neither of my
 drives are scsi drives!

SCSI emulation is used for IDE CDs.  You need the sg, sr_mod, scsi_mod
and ide-scsi modules, and you need to tell your kernel to use ide-scsi
for your CD.  If, for example, your CD is hdc, pass hdc=ide-scsi to
the kernel at boot time - add it to the kernel line in grub.conf:

title Red Hat Linux (2.4.20-30.7.legacycustom)
root (hd0,0)
kernel /boot/vmlinuz-2.4.20-30.7.legacycustom ro root=/dev/hda1 
hdc=ide-scsi

or add append hdc=ide-scsi in lilo.conf:

image=/boot/vmlinuz-2.4.18-3
label=linux
initrd=/boot/initrd-2.4.18-3.img
read-only
root=/dev/hda1
append hdc=ide-scsi


Cheers,

John
-- 
 Oh yes. We got that as a 'bonus pack' with Win98. Caused so many problems
I swear to god. I read that as 'bogus'.  And it made perfect sense
   -- Shalon Wood
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Deb SIG bug squash - can #230716 get looked at?

2004-03-10 Thread Michael Lake
Angus Lees wrote:
 At Mon, 08 Mar 2004 13:40:14 +1100, Michael Lake wrote:
 
This is a question about the Deb SIG bug squash this weekend.
I have a *repeatable* Debian bug involving libdbi-perl on a Ti PowerBook 
running Debian stable (Debian bug number #230716).
Is this the sort of thing that can get looked at?

Yesterday I did an apt-get upgrade and glibc got upgraded. The problem 
is now gone. The problem has existed for quite a while and now for the 
first time I have got the database aplication working on my laptop.

Thanks for the feedback gus. In a way its a shame that it got fixed. It 
would have been nice to track it down with SLUG help.

-- 
Michael Lake
Chemistry, Materials  Forensic Science, UTS
Ph: 9514 1724 Fx: 9514 1460



UTS CRICOS Provider Code:  00099F

DISCLAIMER

This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.
If you have received this message in error, please notify the sender
immediately and delete this message. Any views expressed in this message
are those of the individual sender, except where the sender expressly,
and with authority, states them to be the views the University of
Technology Sydney. Before opening any attachments, please check them for
viruses and defects.


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Possible FAQ: Bank websites and Linux browsers

2004-03-10 Thread Grant Parnell
On Wed, 10 Mar 2004, Mary Gardiner wrote:

 Does anyone know of a reasonably up-to-date website listing Australian
 bank websites and their Linux browser/general standards compatibility?
 It strikes me as a useful thing to have in the mailing list FAQ.

OK so it's hideously out-of-date but probably a good starting point
http://www.linuxhelp.com.au/electronic-banking/

We'd be happy to have it updated. I guess if it's more convenient to stick 
on the SLUG site that's an option but you'd have to check with Anthony.

If somebody with spare time want's to go through the SLUG emails over the 
last month or two looking for internet banking issues and just put them in 
one file (or mbox folder!) that'd be real cool.

-- 
---GRiP---
Electronic Hobbyist, Former Arcadia BBS nut, Occasional nudist, 
Linux Guru, SLUG/AUUG/Linux Australia member, Sydney Flashmobber,
BMX rider, Walker, Raver  rave music lover, Big kid that refuses
to grow up. I'd make a good family pet, take me home today!
Do people actually read these things?


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] C++ fstream class

2004-03-10 Thread mlh
On Thu, Mar 11, 2004 at 01:10:16AM +1100, Matthew Wlazlo wrote:
 Ok let's try that again (hope i read the question right this time!)
 
 using namespace std;
 using namespace __gnu_cxx;
 
 
 
 int fd = open(test.txt, O_RDONLY);
 stdio_filebufchar in(fd, ios::in, false, 1024);
 istream inf(in);
 
 string str;
 while(!inf.eof()) {
   inf  str;
   cout  str  endl;
 }
 
 close(fd);

Thanks!  I modified that program to use popen,
added the required headers, did a bit of error checking
and stuff and got the following.  Tested under
solaris/gcc3.3.1 and fedora/gcc3.3.2:

Note that I needed to change your if (!feof...).
because I was getting world twice.  I guess
that was a bug.  Anyway while(inf  ...) is
more idiomatic imho.  I got the same bug with
fopen as well as popen, fwiw.




#include iostream
#include cstdio
#include ext/stdio_filebuf.h


using namespace std;
using namespace __gnu_cxx;


int
main()
{

FILE* fp = popen(echo hello, world, r);
if (0 == fp) {
perror(popen);
return 1;
}

stdio_filebufchar in(fp, ios::in);
istream inf(in);

string str;
while(inf  str)
{
cout  str  endl;
}
cout  flush;

if (-1 == fclose(fp)) {
perror(fclose);
return 1;
}
}


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Damaged Partition Recovery

2004-03-10 Thread pesoy misak
Dear Sluggers

This isn't part of linux question but I don't know
where to ask hopefully you want to answer my question.

I have a box that accidentially I have damaged the
partition. Is there any slugger know about recover the
old partition since I haven't create anything since
then.

many thank

pesoy

__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Damaged Partition Recovery

2004-03-10 Thread Matthew Wlazlo
Hi,

I accidentally deleted my partitions once (years ago) and managed to get it 
back without damage by creating them again with exactly the same sizes as 
they were before. 

YMMV, but if you have the exact sizes etc of what they were before you might 
be able to just re-create the partition table and mount like nothing 
happened. I guess because the partition information is fixed size and doesnt 
overwrite anything of importance..

Good luck

Cheers,
Matt.

On Thu, 11 Mar 2004 12:40 pm, pesoy misak wrote:
 Dear Sluggers

 This isn't part of linux question but I don't know
 where to ask hopefully you want to answer my question.

 I have a box that accidentially I have damaged the
 partition. Is there any slugger know about recover the
 old partition since I haven't create anything since
 then.

 many thank

 pesoy

 __
 Do you Yahoo!?
 Yahoo! Search - Find what you’re looking for faster
 http://search.yahoo.com

-- 
Matthew Wlazlo

Dimension Technology Phone   :  (+61 2) 8230 0321
[EMAIL PROTECTED]  Mobile  : (+61) 0411 325 520
www.dimtech.com.au

PGP Key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xA30E22E9

CAUTION:
This message may contain privileged and confidential information
intended only for the use of the addressee named above. If you are not
the intended recipient of this message you are hereby notified that
any use, dissemination, distribution or reproduction of this message
is prohibited. If you have received this message in error please
notify Dimension Technology immediately.



pgp0.pgp
Description: signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Damaged Partition Recovery

2004-03-10 Thread Darren Williams
Hi pesoy

If you can remember the old partition layout, then you
can reset the partition table to the old figures, and
if you have not formated, created new file systems you
should be alright.

Make sure you are using the same partitioning program.


Darren


On Wed, 10 Mar 2004, pesoy misak wrote:

 Dear Sluggers
 
 This isn't part of linux question but I don't know
 where to ask hopefully you want to answer my question.
 
 I have a box that accidentally I have damaged the
 partition. Is there any slugger know about recover the
 old partition since I haven't create anything since
 then.
 
 many thank
 
 pesoy
 
 __
 Do you Yahoo!?
 Yahoo! Search - Find what you?re looking for faster
 http://search.yahoo.com
 -- 
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
--
Darren Williams dsw AT gelato.unsw.edu.au
[EMAIL PROTECTED] www.gelato.unsw.edu.au
--
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Damaged Partition Recovery

2004-03-10 Thread Stuart Cooper

 This isn't part of linux question but I don't know
 where to ask hopefully you want to answer my
 question.

 I have a box that accidentally I have damaged the
 partition. Is there any slugger know about recover
 the old partition since I haven't create anything
 since then.

I'm assuming you mean that you've zonged the partition
table accidentally. Don't panic.

You can get everything back; you basically go into
the fdisk program and set one partition from block
1 to the end. You then save that partition table and
exit fdisk. You then exit and mount that partition.
Then take careful note of the actual size of the
partition as reported by fsck. Then go back into fdisk
and set the partition size to what it should actually
be and make a new partition just above that that
stretches out to the end of the disk. Save that 
partition table and exit fdisk and remount the second
one. Repeat this process until you've got all your
partitions back. Figure out which partition is which;
find out which is /, which is /var, which is swap
etc because you'll have to re-set that up. If you
can find the old /etc/fstab that should give you
the mapping of partitions onto Linux filesystems
although probably won't help with the sizes of the
partitions themselves.

By the time you've finished you will know a hell of
a lot about fdisk, fsck and bytes, kilobytes and 
megabytes.

For a more thorough writeup of the procedure visit
http://www.tldp.org/HOWTO/Partition/recovering.html

This procedure works; I've done it myself took me
the best part of a day but boy did I feel like a god
when it got fixed. I also had cool looking pages of
scribbled notepaper full of calculations with numbers
like 479199232 and stuff. One thing I did which proved
very helpful was write down how many bytes an fdisk
cylinder gave me.

In my situation the partition table had been zonged
by a parallel install of a later version of Redhat on
a different disk and a misunderstanding by the 
installer caused the install program to write to the
partition table of both disks.

Have a lot of fun,
Stuart.


http://personals.yahoo.com.au - Yahoo! Personals
New people, new possibilities. FREE for a limited time.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Intel release Centrino wireless driver

2004-03-10 Thread Simon Wong
On Wed, 2004-03-10 at 14:35, Jan Schmidt wrote:
 P.S. It appears to still require a limited-license binary firmware, and
 doesn't have a lot of features finished yet, but it's a step upward from 
 having to load the windows driver using ndiswrapper.

ndiswrapper works fairly well though for basic infrastructure
connections (I used it at LCA2004 with NO problems).

I hope this project progresses further and faster though...

Did you try it out?

How did it compare against ndiswrapper?
-- 
Simon Wong [EMAIL PROTECTED]

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] C++ fstream class

2004-03-10 Thread Lucas King
many thanks to those that replied.  it works.  i have been trying to 
make this work for the past three days.  again thanks.

regards,

Lucas

[EMAIL PROTECTED] wrote:

On Thu, Mar 11, 2004 at 01:10:16AM +1100, Matthew Wlazlo wrote:
 

Ok let's try that again (hope i read the question right this time!)

using namespace std;
using namespace __gnu_cxx;


int fd = open(test.txt, O_RDONLY);
stdio_filebufchar in(fd, ios::in, false, 1024);
istream inf(in);
string str;
while(!inf.eof()) {
inf  str;
cout  str  endl;
}
close(fd);
   

Thanks!  I modified that program to use popen,
added the required headers, did a bit of error checking
and stuff and got the following.  Tested under
solaris/gcc3.3.1 and fedora/gcc3.3.2:
Note that I needed to change your if (!feof...).
because I was getting world twice.  I guess
that was a bug.  Anyway while(inf  ...) is
more idiomatic imho.  I got the same bug with
fopen as well as popen, fwiw.


#include iostream
#include cstdio
#include ext/stdio_filebuf.h
using namespace std;
using namespace __gnu_cxx;
int
main()
{
FILE* fp = popen(echo hello, world, r);
if (0 == fp) {
perror(popen);
return 1;
}
stdio_filebufchar in(fp, ios::in);
istream inf(in);
string str;
while(inf  str)
{
cout  str  endl;
}
cout  flush;
if (-1 == fclose(fp)) {
perror(fclose);
return 1;
}
}
 






The information contained in this e-mail message and any accompanying files
is or may be confidential.If you are not the intended recipient, any use, 
dissemination, reliance,forwarding, printing or copying of this e-mail or
any attached files is unauthorised.This e-mail is subject to copyright. No
part of it should be reproduced,adapted or communicated without the written
consent of the copyright owner.If you have received this e-mail in error,
please advise the sender immediately by return e-mail, or telephone and
delete all copies.Fairfax does not guarantee the accuracy or completeness
of any information contained in this e-mail or attached files. Internet
communications are not secure, therefore Fairfax does not accept legal
responsibility for the contents of this message or attached files.


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Intel release Centrino wireless driver

2004-03-10 Thread Jan Schmidt
quote who=Simon Wong
 On Wed, 2004-03-10 at 14:35, Jan Schmidt wrote:
  P.S. It appears to still require a limited-license binary firmware, and
  doesn't have a lot of features finished yet, but it's a step upward from 
  having to load the windows driver using ndiswrapper.
 
 ndiswrapper works fairly well though for basic infrastructure
 connections (I used it at LCA2004 with NO problems).

Yeah, same. It works pretty well. A few hiccups with WEP, but otherwise
good. 

 I hope this project progresses further and faster though...

I wish that it didn't have the binary firmware portion, although I can
understand why Intel chose to do things that way.

 Did you try it out?

Actually, I got distracted putting out a new gst-editor release and forgot
to.

 How did it compare against ndiswrapper?

Here's the cut and paste from the website, seemingly saying that it should 
be ok for unencrypted links if there are no errors encountered :)

What it does:
* Build (tested in 2.4.23-25, and 2.6.1-3)
* Initialize the firmware
* Scan and associate
* Limited support of iw* tools
* Infrastructure mode
* Dynamically load the binary firmware image from /etc/firmware/ipw2100-1.0.fw
* Fragmentation (Tx and Rx) 

What it doesn't do:
* AdHoc mode
* WEP
* Restart the firmware after a 'fatal interrupt' received. 

J.
-- 
Jan Schmidt  [EMAIL PROTECTED]

Open Source Software: Free as in Free Speech, not Free Beer
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] New member, hello everyone...

2004-03-10 Thread vini
Hi people,

I've just moved to Sydney and just found this list.

I'm from Brazil and I'm here to study english and of course enjoy the life.

I'm Slackware user and also I was Red Hat user.

Well I'd like to attend to your meeting next saturday, can I?

I hope I can make many friends here...

See you
Vini

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] New member, hello everyone...

2004-03-10 Thread Michae Fox
 Hi people,

 I've just moved to Sydney and just found this list.

 I'm from Brazil and I'm here to study english and of course enjoy the
 life.

 I'm Slackware user and also I was Red Hat user.

 Well I'd like to attend to your meeting next saturday, can I?

 I hope I can make many friends here...

Hi,

Welcome to SLUG mail list and our city Sydney :)

---
Michael Fox
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] New member, hello everyone...

2004-03-10 Thread Phil Scarratt
Hi people,

I've just moved to Sydney and just found this list.

I'm from Brazil and I'm here to study english and of course enjoy the
life.
I'm Slackware user and also I was Red Hat user.

Well I'd like to attend to your meeting next saturday, can I?

I hope I can make many friends here...


G'day and welcome to Sydney. I'm sure you'd be welcome at the meeting

Fil
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] New member, hello everyone...

2004-03-10 Thread Mary Gardiner
On Wed, Mar 10, 2004, [EMAIL PROTECTED] wrote:
 Well I'd like to attend to your meeting next saturday, can I?

Yes: most events (including that one) are completely open. Come along!

-Mary
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Red Hat world tour coming to Sydney March 22

2004-03-10 Thread Mike MacCana
www.redhat.com.au for the skinny, but here's the short of it:

Youve heard it said before: Open source is changing the world. On March
15, Red Hat will begin a two-week tour around the globeseven cities, six
countries, four continents. To see just how this change is happening, and
most importantly, meet the people making it happen.
The open source community has changed, too. Today it is a worldwide
assembly of advocates, developers, individual users, corporate
administrators, chief technology officers.
At each event you will hear from organizations deploying Linux, speak with
Red Hat partners building open source solutions for the real world, and
meet users just like yourself. We will also talk about the role we play in
the community and how you can get involved. Then you can tell us what you
think.

Mike (who contracts for Red Hat in Melbourne where we don't yet have an
office, and don't get to feel the World Tour love).

Mike
--
__
Mike MacCana ConsultantRHCX, MCSE, MCP+I
0419 394 504

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html