Thanks,
Steve
I think you may be able to do this with the dd command. Something like:
dd < /dev/hda1 > /dev/hdb1
However, please don't try this unless you have a backup and are ready to
use it.
--
--
JaDeStar
Disclaimer !?! I don't need no STINKIN' disclaimer!
That's what I pay NETCOM for.
That will work, but you will probably not be pleased with the result. What
you would end up with is a duplicate of the original filesystem on the larger
drive partition. That sounds like what you want at first, until you realize
that the filesystem is still the same "size" that it was before. The "new"
space at the end of the partition is unused. What you need to do is to
make a new filesystem on the new partition and copy the directory heirarchy
to the new filesystem. You will also need to arrange to set up LILO on the
new disk so that you can boot from it.
> However, please don't try this unless you have a backup and are ready to
> use it.
>
That is always good advice.
--
l...@tfnet.ils.unc.edu (Lou Sortman) for(i=0; i<3; i++) puts(
"Janet! Dr. Scott! \n"
"Janet! Brad! \n"
Whoever dies with the most LEGO wins. "Rocky! <Uh!> \n");
: Thanks,
: Steve
You look for dd. Try 'dd bs=512 if=/dev/oldpartition of=/dev/newpartition'.
The partitions should be of the same size. Afterwoods you have to reinstall
lilo to be able to boot the system.
BTW why don't you try the following?
- boot a floppy system with ramdisk
- mkdir /tmp/old/; mkdir /tmp/new
- mount -t?? /dev/oldpartition /tmp/old
- mount -t?? /dev/newpartition /tmp/new
- cp --preserve --recursive --no-dereference /tmp/old /tmp/new
- reinstall lilo
This should also do some defragmentation to your drive :-) .
Stefan
--
| Stefan Giessler
Experience is directly proportional to |
the amount of equipment ruined. | e-mail : s...@gandalf.han.de
(Murphy) | s...@harlie.han.de
: That will work, but you will probably not be pleased with the result. What
: you would end up with is a duplicate of the original filesystem on the larger
: drive partition. That sounds like what you want at first, until you realize
: that the filesystem is still the same "size" that it was before. The "new"
: space at the end of the partition is unused. What you need to do is to
: make a new filesystem on the new partition and copy the directory heirarchy
: to the new filesystem. You will also need to arrange to set up LILO on the
: new disk so that you can boot from it.
I thought about that and kept wondering why he was asking for the dump
command. However he sounded like he knew more about *nix than I so
I just looked for the closest think to what he was asking about.
I've had no trouble learning the fdisk, mkfs (mkefs2), mount
sequence -- but I'm still a little sketchy on the tar/cpio switches
(makes me almost long for the stupid simplicty of MS-DOG's XCOPY)
Say, Is anyone out there willing to make a bash script that
gives us DOS converts the equivalent behaviour of XCOPY through
cpio? Make it a whole collection of aliases and scripts (with
support for the same switches -- except we'll use the dash character
and not allow the '/' for those).
Under DOS (4DOS) I've long since aliased copy to cp and move to mv
(and dir /4vp to simply .) because their shorter and I've gotten used
to them. Under bash I alias clear to cls.
: > However, please don't try this unless you have a backup and are ready to
: > use it.
: That is always good advice.
And I always repeat it. Sometimes I even follow it.