Re: [gentoo-user] redifining harddrive partitions and restore linux

2003-12-04 Thread Alan
On Thu, Dec 04, 2003 at 12:30:15PM +, Helder Rossa wrote:
> hi,
> 
> 
> I want to clear all partitions of my HDD and then put the data of the
> partitions that I have now in those new partitions. I'm wondering if it
> is possible.
> 
> basically I want to redefine my HDD partitions without re-installing all
> the stuff that I have.

Other than the suggestions elsewhere about resizing filesystems, another
thing to look at is mondoarchive, which lets you burn your system to a
CD (or 50) and restore it at a later time, but with different options.
I haven't used it much, but in theory you can use it to move from
non-raid to raid, or to lvm, or from raid0 to raid5, or to move your
partitions around, or change filesystem, or just about any change you need.  
Once you boot up on the CD(s) it creates, you can edit your fstab and/or 
partition set up and mondoarchive will restore the data back properly.
It seems to have an active dev team, and Hugo (project leader) is quick
to answer questions and fix bugs.  I'd suggest testing this with vmware
or something if you're going to try, just in case, but there seems to be
a pretty good response from users.  I use it to back up my server onto 3
CDs, but haven't had the "opportunity" to use it in restore mode yet
(knock on wood :)

alan

-- 
Alan <[EMAIL PROTECTED]> - http://arcterex.net

"There are only 3 real sports: bull-fighting, car racing and mountain 
climbing. All the others are mere games."-- Hemingway

--
[EMAIL PROTECTED] mailing list



[gentoo-user] redifining harddrive partitions and restore linux

2003-12-04 Thread Helder Rossa
hi,


I want to clear all partitions of my HDD and then put the data of the
partitions that I have now in those new partitions. I'm wondering if it
is possible.

basically I want to redefine my HDD partitions without re-installing all
the stuff that I have.

if i do "dd if=/dev/hda2 of=hda2.iso" and the try to restore that iso in
one partition it replaces with an exact copy of the original partition.
Can I do a backup of the data only and not the partition info??





--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] redifining harddrive partitions and restore linux

2003-12-04 Thread Helder Rossa
hummm... 

just tar / untar the partitions?!!

- boot from a cd;
- tar the parttions;
- create / edit parttions;
- untar the stuff to the partition i want;
- install bootloader.

think I'm not forgetting nothing.

- and that's it?!!




> > I want to clear all partitions of my HDD and then put the data of the
> > partitions that I have now in those new partitions. I'm wondering if it
> > is possible.
> > 
> > basically I want to redefine my HDD partitions without re-installing all
> > the stuff that I have.
> > 
> > if i do "dd if=/dev/hda2 of=hda2.iso" and the try to restore that iso in
> > one partition it replaces with an exact copy of the original partition.
> > Can I do a backup of the data only and not the partition info??
> You could use tar. tar up the dir(s) then move the tar file to a
> different partition. Resize that partition and then untar the files into
> that partition.
> 
> There maybe some 'special' things you will need to do if you do this to
> /. Try a google for 'restore from tar'.
> 



--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] redifining harddrive partitions and restore linux

2003-12-04 Thread Collins Richey
On Thu, 04 Dec 2003 15:43:29 + Helder Rossa <[EMAIL PROTECTED]> wrote:

> i think you don't need to do nothing special cause i remember i used dd
> do bak the partition, mounted the image and just copied the data to a
> clean partition. I'm not sure but the root (/) partition or another is
> just the same... on NOT! :-)
> 
> I will test it in another PC... not the same hardware but if it boots
> I'm in the right way.
> 
> 
> > > just tar / untar the partitions?!!
> > > 
> > > - boot from a cd;
> > > - tar the parttions;
> > > - create / edit parttions;
> > > - untar the stuff to the partition i want;
> > > - install bootloader.
> > > 
> > > think I'm not forgetting nothing.
> > > 
> > > - and that's it?!!
> > > 
> > That is certainly the case for non root partitions. I'm not a file
> > system expert. So there might be some "magic" you will need to fix
> > before being able to boot from the resized / partitiom.
> 

The only thing "magic" about root partitions is /etc/fstab.  If you restore the
image to a different hddn location, you must edit the /etc/fstab to specify
the new location of the / partition.  And, of course, you must update lilo/grub
to insure that the new partition is bootable.

HTH,

-- Collins Richey - Denver Area
if you fill your heart with regrets of yesterday and the 
worries of tomorrow, you have no today to be thankful for.



--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] redifining harddrive partitions and restore linux

2003-12-04 Thread Helder Rossa
i think you don't need to do nothing special cause i remember i used dd
do bak the partition, mounted the image and just copied the data to a
clean partition. I'm not sure but the root (/) partition or another is
just the same... on NOT! :-)

I will test it in another PC... not the same hardware but if it boots
I'm in the right way.


> > just tar / untar the partitions?!!
> > 
> > - boot from a cd;
> > - tar the parttions;
> > - create / edit parttions;
> > - untar the stuff to the partition i want;
> > - install bootloader.
> > 
> > think I'm not forgetting nothing.
> > 
> > - and that's it?!!
> > 
> That is certainly the case for non root partitions. I'm not a file
> system expert. So there might be some "magic" you will need to fix
> before being able to boot from the resized / partitiom.



--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] redifining harddrive partitions and restore linux

2003-12-04 Thread David Gethings
On Thu, 2003-12-04 at 14:59, Helder Rossa wrote:
> hummm... 
> 
> just tar / untar the partitions?!!
> 
> - boot from a cd;
> - tar the parttions;
> - create / edit parttions;
> - untar the stuff to the partition i want;
> - install bootloader.
> 
> think I'm not forgetting nothing.
> 
> - and that's it?!!
> 
That is certainly the case for non root partitions. I'm not a file
system expert. So there might be some "magic" you will need to fix
before being able to boot from the resized / partitiom.

Cheers

Dg


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] redifining harddrive partitions and restore linux

2003-12-04 Thread Neil Bothwick
Peter Eis said, 

> You could use partimage (it's on the gentoo live CD).
> The only problem is, that the target partition size must be at least the 
> same size as the original partition.

If not, you could use resize2fs or resize_reiserfs to shrink the
partition before imaging it.


Cheers

Neil
-- 
We can sympathize with a child who is afraid of the dark, but the
tragedy of life is that most people are afraid of the light.


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] redifining harddrive partitions and restore linux

2003-12-04 Thread David Gethings
On Thu, 2003-12-04 at 12:30, Helder Rossa wrote:
> hi,
> 
> 
> I want to clear all partitions of my HDD and then put the data of the
> partitions that I have now in those new partitions. I'm wondering if it
> is possible.
> 
> basically I want to redefine my HDD partitions without re-installing all
> the stuff that I have.
> 
> if i do "dd if=/dev/hda2 of=hda2.iso" and the try to restore that iso in
> one partition it replaces with an exact copy of the original partition.
> Can I do a backup of the data only and not the partition info??
You could use tar. tar up the dir(s) then move the tar file to a
different partition. Resize that partition and then untar the files into
that partition.

There maybe some 'special' things you will need to do if you do this to
/. Try a google for 'restore from tar'.

Hope that helps.

Dg


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] redifining harddrive partitions and restore linux

2003-12-04 Thread Peter Eis
Helder Rossa wrote:

hi,

I want to clear all partitions of my HDD and then put the data of the
partitions that I have now in those new partitions. I'm wondering if it
is possible.
basically I want to redefine my HDD partitions without re-installing all
the stuff that I have.
if i do "dd if=/dev/hda2 of=hda2.iso" and the try to restore that iso in
one partition it replaces with an exact copy of the original partition.
Can I do a backup of the data only and not the partition info??
 

You could use partimage (it's on the gentoo live CD).
The only problem is, that the target partition size must be at least the 
same size as the original partition.

Peter



--
[EMAIL PROTECTED] mailing list
 



--
[EMAIL PROTECTED] mailing list