HD copying in FreeBSD

2000-11-09 Thread Maxim Kryachko

Hi people.
My problem is not directly related to Linux, but to BSD instead.
I need to copy all the contents of a hard-drive which contains root
partition onto another one as is, preserving all the file structure and
links. I need to do it ASAP, so I'm terrible sorry, but I have no time to
look for documentation (only man on machine itself will be available), and I
don't have any experience with FreeBSD. I need just a command line which
does it and if there are possible problems.
Any help will be greately appreciated.

Thnx
Max.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: Printing the x/g/k-term contents

2000-11-09 Thread Tzafrir Cohen

Hi

On Thu, 9 Nov 2000, Ishai Parasol wrote:

 Is there a way to print the contents of the xterm (and its similair
 terminas), including the command lines, the prompts, the commands / file
 names and ofcourse the output ?

I can't think of a better way than marking the text you want to print,
pasting it in a text editor, and printing it from there.

the only terminal emulation I can think of at the moment that supports
printing of the terminal content itself is (gnu/x)emacs's terminal
emulation. Since the terminal is an emacs buffer, you can also print it.

-- 
Tzafrir Cohen
mailto:[EMAIL PROTECTED]
http://www.technion.ac.il/~tzafrir


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: HD copying in FreeBSD

2000-11-09 Thread Sagi Bashari

Hi,

There's a nice manual about that at
http://www.linuxdoc.org/HOWTO/mini/Hard-Disk-Upgrade/index.html. it's a
linux manual, but it should work on freebsd as well. (except the mount
devices, etc).

anyway - you'll have to setup the freebsd bootloader as well. I'm not sure
how to do it, I suggest you to check the freebsd handbook.

--Sagi.

On Thu, 9 Nov 2000, Maxim Kryachko wrote:

 Hi people.
 My problem is not directly related to Linux, but to BSD instead.
 I need to copy all the contents of a hard-drive which contains root
 partition onto another one as is, preserving all the file structure and
 links. I need to do it ASAP, so I'm terrible sorry, but I have no time to
 look for documentation (only man on machine itself will be available), and I
 don't have any experience with FreeBSD. I need just a command line which
 does it and if there are possible problems.
 Any help will be greately appreciated.

 Thnx
 Max.

 =
 To unsubscribe, send mail to [EMAIL PROTECTED] with
 the word "unsubscribe" in the message body, e.g., run the command
 echo unsubscribe | mail [EMAIL PROTECTED]



   _
 ___ __ _ __ _(_)   Sagi Bashari
(_-/ _` / _` | |- [EMAIL PROTECTED]
/__/\__,_\__, |_|
 |___/


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: HD copying in FreeBSD

2000-11-09 Thread Omer Zak

The 'dd' command?

On Thu, 9 Nov 2000, Maxim Kryachko wrote:

 Hi people.
 My problem is not directly related to Linux, but to BSD instead.
 I need to copy all the contents of a hard-drive which contains root
 partition onto another one as is, preserving all the file structure and
 links. I need to do it ASAP, so I'm terrible sorry, but I have no time to
 look for documentation (only man on machine itself will be available), and I
 don't have any experience with FreeBSD. I need just a command line which
 does it and if there are possible problems.
 Any help will be greately appreciated.
 
 Thnx
 Max.
 --- Omer
There is no IGLU cabal.  All cabal members were transported to an 
alternate universe due to careless usage of the trans-universe 'dd'
command.
WARNING TO SPAMMERS:  see at http://www.zak.co.il/spamwarning.html


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: HD copying in FreeBSD

2000-11-09 Thread Omer Musaev



Maxim Kryachko wrote:

 Hi people.
 My problem is not directly related to Linux, but to BSD instead.
 I need to copy all the contents of a hard-drive which contains root
 partition onto another one as is, preserving all the file structure and
 links. I need to do it ASAP, so I'm terrible sorry, but I have no time to
 look for documentation (only man on machine itself will be available), and I
 don't have any experience with FreeBSD. I need just a command line which
 does it and if there are possible problems.
 Any help will be greately appreciated.

Those examples use bourne shell:

Assuming you have gnu tar:

 mount /dev/whatever_you_call_it_under_bsd  /target_partition
 (cd /  tar --exclude target_partition cf - . ) | (cd /target_partition 
tar xf - )

Assuming you have bsd dump/restore and made new partitons on new hard drive

 echo \
/dev/old_partition_1  /dev/new_partition_1\
/dev/old_partition_2 /dev/new_partition_2 \
 (etc)  \ | while read oldp newp ; do
 dump $oldp -f - | ( newfs $newp  mount $newp /tmp/newp  cd
/tmp/newp  restore rf -)
done
Some flags may be nessesarry on BSD.
tar method is prefferred, IMHO.

 Thnx
 Max.

 =
 To unsubscribe, send mail to [EMAIL PROTECTED] with
 the word "unsubscribe" in the message body, e.g., run the command
 echo unsubscribe | mail [EMAIL PROTECTED]

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: number of CPUs

2000-11-09 Thread Nadav Har'El

On Wed, Nov 08, 2000, Adi Stav wrote about "Re: number of CPUs":
...
 But why is it so crucial not to parse a file? I can't imagine anyone
 checking for the number of CPUs in the inner loop of their programs :)
 
   system( "exit `grep ^processor /proc/cpuinfo | tail -1 | cut -d : -f 2`" )
 
 Would probably work (I don't have SMP machine to check it).

This will obviously not work - unless your intention was to print the number
of processors on the standard output, rather than actually using it in
your program :)

The one-namespace idea of /proc was very good (probably taken from plan 9),
but in my opinion it wasn't done too well. We should have had a number of
different files for the different informations, e.g,
/proc/cpuinfo/ncpus
/proc/cpuinfo/1/model
...
and things like that. (just like you have for processes on /proc).

Alternatively, we should have a libary (say, liblinux.so) that has functions
that use the /proc interface to get this information. But I don't believe
such a library exists.


-- 
Nadav Har'El|Thursday, Nov 9 2000, 11 Heshvan 5761
[EMAIL PROTECTED] |-
Phone: +972-53-245868, ICQ 13349191 |Promises are like babies: fun to make,
http://nadav.harel.org.il   |but hell to deliver.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: number of CPUs

2000-11-09 Thread Nadav Har'El

On Thu, Nov 09, 2000, To [EMAIL PROTECTED] wrote about "Re: number of CPUs":
 On Wed, Nov 08, 2000, Adi Stav wrote about "Re: number of CPUs":
 ...
  But why is it so crucial not to parse a file? I can't imagine anyone
  checking for the number of CPUs in the inner loop of their programs :)
  
system( "exit `grep ^processor /proc/cpuinfo | tail -1 | cut -d : -f 2`" )
  
  Would probably work (I don't have SMP machine to check it).
 
 This will obviously not work - unless your intention was to print the number
 of processors on the standard output, rather than actually using it in
 your program :)

Sorry - I was too quick on my reply. What you wrote should in fact work -
I didn't notice the "exit" part. This is not to say that it's a very
efficient method of doing it... And it will not work on machines with over
126 CPUs :)

-- 
Nadav Har'El|Thursday, Nov 9 2000, 11 Heshvan 5761
[EMAIL PROTECTED] |-
Phone: +972-53-245868, ICQ 13349191 |Someone offered you a cute little quote
http://nadav.harel.org.il   |for your signature? JUST SAY NO!

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: number of CPUs

2000-11-09 Thread Yedidya Bar-david

Hi

Nadav Har'El wrote:
 
[snip]
 
 Alternatively, we should have a libary (say, liblinux.so) that has functions
 that use the /proc interface to get this information. But I don't believe
 such a library exists.

Actually, Debian has a package libproc, that exports a variable named
'smp_num_cpus'. I never used it, so I don't know how good or portable
between kernel versions it is, but it seems worth a try.

didi

 
 
 -- 
 Nadav Har'El|Thursday, Nov 9 2000, 11 Heshvan 5761
 [EMAIL PROTECTED] |-
 Phone: +972-53-245868, ICQ 13349191 |Promises are like babies: fun to make,
 http://nadav.harel.org.il   |but hell to deliver.
 
 =
 To unsubscribe, send mail to [EMAIL PROTECTED] with
 the word "unsubscribe" in the message body, e.g., run the command
 echo unsubscribe | mail [EMAIL PROTECTED]
 


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: HD copying in FreeBSD

2000-11-09 Thread Ishay Sommer

(Please don't flame me about this)
What about Norton Ghost?

-Original Message-
From: Sagi Bashari [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 09, 2000 6:01 AM
To: Omer Zak
Cc: Linux-IL mailing list
Subject: Re: HD copying in FreeBSD


On Thu, 9 Nov 2000, Omer Zak wrote:

 The 'dd' command?


I think that you can you 'dd' only if the HDD's are exactly the same size,
etc. otherwise it wont work..
   _
 ___ __ _ __ _(_)   Sagi Bashari
(_-/ _` / _` | |- [EMAIL PROTECTED]
/__/\__,_\__, |_|
 |___/


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: Printing the x/g/k-term contents

2000-11-09 Thread Shaul Karl

Can the script command be of any use?
It does have its drawbacks: One has to run and exit it before he can have the 
logs, get all the escape characters with their attached actions.


 
 Hi
 
 Is there a way to print the contents of the xterm (and its similair
 terminas), including the command lines, the prompts, the commands / file
 names and ofcourse the output ? 
 
 TIA,
 
 Ishai.
 
 
 =
 To unsubscribe, send mail to [EMAIL PROTECTED] with
 the word "unsubscribe" in the message body, e.g., run the command
 echo unsubscribe | mail [EMAIL PROTECTED]
 

-- 

Shaul Karl [EMAIL PROTECTED]



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




hebrew chars on konsole/kde2

2000-11-09 Thread Tzafrir Cohen

Hi

I have not yet managed to get konsole to display Hebrew (iso-8859-8)
chars. When I set the font, through options-font-custom , to an
iso8859-8 font, I see question marks instead o Hebrew chars.

Any way around this?

I figure that this is a more general problem of qt2 and different
encodings. I still have not managed to get licq/qt-gui to use any encoding
other than iso8859-1 or iso10646-1 . Haven't dug much there, though.

Speaking of licq: someone decided to add "logical hebrew" support to licq:
http://www.iglu.org.il/faq/cache/120.html . 
I haven't examined it much yet.

enjoy

-- 
Tzafrir Cohen
mailto:[EMAIL PROTECTED]
http://www.technion.ac.il/~tzafrir


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: HD copying in FreeBSD

2000-11-09 Thread Ishay Sommer

it's a program which copies your HD binary to an image or another disk...
You don't get into trouble because of open operating system files and etc.


-Original Message-
From: Sagi Bashari [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 09, 2000 8:09 AM
To: Ishay Sommer
Cc: '[EMAIL PROTECTED]'
Subject: RE: HD copying in FreeBSD


On Thu, 9 Nov 2000, Ishay Sommer wrote:

 (Please don't flame me about this)
 What about Norton Ghost?

Whats norton ghost?

Its probably a windows program.. why use it when you can do it easily on
linux.

   _
 ___ __ _ __ _(_)   Sagi Bashari
(_-/ _` / _` | |- [EMAIL PROTECTED]
/__/\__,_\__, |_|
 |___/

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]