Re: add and copy a partition

2000-05-29 Thread Stanislav Malyshev a.k.a Frodo

MZ Any real language (as opposed to glorified assemblers (C++) or macro
MZ processors (Tcl/bash)) has a built-in serialize and deserialize mechanism: 
MZ Java (implements serializable)
MZ Python (pickle)
MZ Perl (Data::Dumper)
MZ Scheme (write)

BTW, there are language-independent serialization protocols (WDDX, for
instance, or RPC has one, but it's rather compilcated). Actually, every
time you do "Save" in your editor, you are serializing, especially when
editor uses some proprietary format.

-- 
[EMAIL PROTECTED]  \/  There shall be counsels taken
Stanislav Malyshev  /\  Stronger than Morgul-spells
phone +972-3-9316425/\  JRRT LotR.
http://sharat.co.il/frodo/  whois:!SM8333



=
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: add and copy a partition

2000-05-29 Thread Moshe Zadka

On Mon, 29 May 2000, Stanislav Malyshev a.k.a Frodo wrote:

 MZ Any real language (as opposed to glorified assemblers (C++) or macro
 MZ processors (Tcl/bash)) has a built-in serialize and deserialize mechanism: 
 MZ Java (implements serializable)
 MZ Python (pickle)
 MZ Perl (Data::Dumper)
 MZ Scheme (write)
 
 BTW, there are language-independent serialization protocols (WDDX, for
 instance, or RPC has one, but it's rather compilcated). Actually, every
 time you do "Save" in your editor, you are serializing, especially when
 editor uses some proprietary format.

Of course: but the cool thing a language built-in serialization protocol
gives you is "for free": any new object you define, and structure, just go
and serialize it without defining anything.

--
Moshe Zadka [EMAIL PROTECTED]
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com


=
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: add and copy a partition

2000-05-28 Thread Ben-Nes Michael

Just wonder, the reboot is really annoying.
Are they going to fix it in the new kernel or there is a way (even complicate)
around ?

Ira Abramov wrote:


 - fdisk to change the partition type. if changing the size too, you must
 reboot if another partition is mounted from that drive. as long as even
 ONE partition is mounted from that same disk, the kernel won't re-read
 the partition table.

--
--
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-6-6925757
Fax: 972-6-6925858
http://www.canaan.co.il
--



=
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: add and copy a partition

2000-05-28 Thread Alex Shnitman

Hi, Marc!

On Sat, May 27, 2000 at 07:24:45AM +0300, you wrote the following:

 mkfs /dev/hd{x}{y}
 mount -t ext2 !$ /mnt
 cd /home
 umask 000
 tar cspBf - . | (cd /mnt; tar xvvspBf -)

Any reason why not to use cp -a that I'm not aware of?


-- 
Alex Shnitman| http://www.debian.org
[EMAIL PROTECTED], [EMAIL PROTECTED]   +---
http://alexsh.hectic.netUIN 188956PGP key on web page
   E1 F2 7B 6C A0 31 80 28  63 B8 02 BA 65 C7 8B BA

Software suppliers are trying to make their software packages more
"user-friendly".  ...  Their best approach, so far, has been to take all
the old brochures, and stamp the words, "user-friendly" on the cover.
-- Bill Gates, Microsoft, Inc.

=
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: add and copy a partition

2000-05-28 Thread Marc A. Volovic

Alex Shnitman wrote:

 Hi, Marc!

 On Sat, May 27, 2000 at 07:24:45AM +0300, you wrote the following:

  mkfs /dev/hd{x}{y}
  mount -t ext2 !$ /mnt
  cd /home
  umask 000
  tar cspBf - . | (cd /mnt; tar xvvspBf -)

 Any reason why not to use cp -a that I'm not aware of?

Complexification.


=
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: add and copy a partition

2000-05-28 Thread Ira Abramov

On Sun, 28 May 2000, Alex Shnitman wrote:

  tar cspBf - . | (cd /mnt; tar xvvspBf -)
 
 Any reason why not to use cp -a that I'm not aware of?

in theory you have one process writing and one reading, so in an SMP
machine, copying between two different partitions on two different
drives on two different controllers, you could have a HUGE speed
gain! :-)))

-- 
Ira Abramov ; Penguinophile ; www.linux.org.il 
.you could spend *all day* customizing the title bar.  Believe me.  I
speak from experience."
(By Matt Welsh)


=
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: add and copy a partition

2000-05-28 Thread Omer Mussaev

Alex Shnitman wrote:

 Hi, Marc!

 On Sat, May 27, 2000 at 07:24:45AM +0300, you wrote the following:

  mkfs /dev/hd{x}{y}
  mount -t ext2 !$ /mnt
  cd /home
  umask 000
  tar cspBf - . | (cd /mnt; tar xvvspBf -)

paranoia: s/\;/\/


 Any reason why not to use cp -a that I'm not aware of?

first: using tar is POSIX compliant, thus you can use tar method on
any POSIX(applications) compliant machine.
second: this is the Unix way.


--
Omer Mussaev051-308-214   mailto:[EMAIL PROTECTED]
systems programmer, Mercury Interactive/RND/Conduct/core




=
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: add and copy a partition

2000-05-28 Thread Moshe Zadka

On Sun, 28 May 2000, Omer Mussaev wrote:

  Any reason why not to use cp -a that I'm not aware of?
 
 first: using tar is POSIX compliant, thus you can use tar method on
 any POSIX(applications) compliant machine.
 second: this is the Unix way.

Let me add my own reason for why I like the tar|tar trick better: it's 
standard. No, not in UNIX: in programmer think. You know what the standard
way is to copy objects in Java? Why, serialize/deserialize. You know what
the standard way is to copy objects in Python? Why, pickle/unpickle.
The *correct* way to copy in a pointer-isomorphic way, is by a
serialize/deserialize mechanism. But that's *exactly* the meaning of tar.

--
Moshe Zadka [EMAIL PROTECTED]
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com


=
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: add and copy a partition

2000-05-28 Thread Shaul Karl

 On Sun, 28 May 2000, Omer Mussaev wrote:
 
   Any reason why not to use cp -a that I'm not aware of?
  
  first: using tar is POSIX compliant, thus you can use tar method on
  any POSIX(applications) compliant machine.
  second: this is the Unix way.
 
 Let me add my own reason for why I like the tar|tar trick better: it's 
 standard. No, not in UNIX: in programmer think. You know what the standard
 way is to copy objects in Java? Why, serialize/deserialize. You know what
 the standard way is to copy objects in Python? Why, pickle/unpickle.
 The *correct* way to copy in a pointer-isomorphic way, is by a
 serialize/deserialize mechanism. But that's *exactly* the meaning of tar.
 


Your terms are very cryptic for me. Would you mind elaborating on what is 
serialize/deserialize? pickle/unpickle? pointer-isomorphic way? 
serialize/deserialize mechanism?


 --
 Moshe Zadka [EMAIL PROTECTED]
 http://www.oreilly.com/news/prescod_0300.html
 http://www.linux.org.il -- we put the penguin in .com
 
 
 =
 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]



-- 

--  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]




Re: add and copy a partition

2000-05-28 Thread Moshe Zadka

On Mon, 29 May 2000, Shaul Karl wrote:

 Your terms are very cryptic for me. Would you mind elaborating on what is 
 serialize/deserialize? pickle/unpickle? pointer-isomorphic way? 
 serialize/deserialize mechanism?

Sure: serialize (or pickle, or marshal) simply means to get a flat
representation of a data structure. For example, you could say computer
programs are seralized representations of the parse trees.

I think the term pointer-isomorphism should be obvious: a non-formal
definition wouild be to say that there is a mapping between the addresses
such that one structure goes into the other.

Any real language (as opposed to glorified assemblers (C++) or macro
processors (Tcl/bash)) has a built-in serialize and deserialize mechanism: 
Java (implements serializable)
Python (pickle)
Perl (Data::Dumper)
Scheme (write)

This is a cool way to implement RPC, persistent objects, etc.

--
Moshe Zadka [EMAIL PROTECTED]
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com


=
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: add and copy a partition

2000-05-28 Thread Alex Shnitman

Hi, Moshe!

On Mon, May 29, 2000 at 07:45:34AM +0300, you wrote the following:

 Any real language (as opposed to glorified assemblers (C++) or macro
 processors (Tcl/bash)) has a built-in serialize and deserialize mechanism: 
..
 Perl (Data::Dumper)

Or Storable, which is binary and not human-readable, but faster by
many orders of magnitude.


-- 
Alex Shnitman| http://www.debian.org
[EMAIL PROTECTED], [EMAIL PROTECTED]   +---
http://alexsh.hectic.netUIN 188956PGP key on web page
   E1 F2 7B 6C A0 31 80 28  63 B8 02 BA 65 C7 8B BA

"Everything that can be invented has been invented."
-- Charles Duell, head of the U.S. Patent Office, 1899

=
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: add and copy a partition

2000-05-26 Thread Shaul Karl

 
 Hi
 
 I have ran out of space on my /home/USER partition and I would like to
 erase one of my windows partions and to make it ext2 and to copy the /home
 partition on it (exactly as it is - without the need to make a new user
 and install everything from scratch).
 
 Is it possible ? Can someone show me how to do it ?
 


It is possible.
This or a very similar problem was discussed many times on the list. You can 
probably find an exact recipe in the list archive.
My favorite solution is to read www.linux.org.il/LDP/HOWTO/mini/Hard-Disk-Upgra
de.html.


 TIA
 
 Ishai Parasol
 
 
 =
 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]




Re: add and copy a partition

2000-05-26 Thread Ira Abramov

On Fri, 26 May 2000, Ishai Parasol wrote:

 I have ran out of space on my /home/USER partition and I would like to
 erase one of my windows partions and to make it ext2 and to copy the /home
 partition on it (exactly as it is - without the need to make a new user
 and install everything from scratch).
 
 Is it possible ? Can someone show me how to do it ?

assuming you can red HOWTOs and such, here's the skinny:

- fdisk to change the partition type. if changing the size too, you must
reboot if another partition is mounted from that drive. as long as even
ONE partition is mounted from that same disk, the kernel won't re-read
the partition table.

- mke2fs on it

- mount it on /mnt/newhome or somewhere.

- stop mail daemons or anything running. infact maybe do all this at
runlevel 1 (init 1)

- copy the stuff over, I use "cp -a /home/* /mnt/newhome"

- switch around:

  mv /home /homeold (umount and remount if a seperate partition)
  mkdir /home
  umount /mnt/newhome
  -- change/add the entry in fstab
  mount /home

et voila. have fun, if you have abslutly any more questions, please
don't hesitate not to call me.


-- 
Ira Abramov ; Penguinophile ; www.linux.org.il 
And 1.1.81 is officially BugFree(tm), so if you receive any bug-reports
on it, you know they are just evil lies."
(By Linus Torvalds, [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: add and copy a partition

2000-05-26 Thread Marc A. Volovic

mkfs /dev/hd{x}{y}
mount -t ext2 !$ /mnt
cd /home
umask 000
tar cspBf - . | (cd /mnt; tar xvvspBf -)

=
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]