bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System crashed while using parted


From: Andrew Clausen
Subject: Re: System crashed while using parted
Date: Wed, 30 May 2001 10:51:32 +1000

Michael Wendell wrote:
> Hello,
>     I was attempting to use parted version 1.4.13 to copy
> partitions on an existing hard disk to an additional
> attached hard disk.  However, I had a couple of other
> windows opened.  I had gnome running and was attempting to
> copy while running this as well as a few other
> applications.  I am assuming this was a poor way to go
> about things, since the machine locked up entirely and the
> only way I could clear out was by rebooting manually
> (resetting the machine).

I have also found problems with X and heavy IO.  I should upgrade
to a newer X, and see if it persists.  I suspect it's an X issue,
anyway.

>  Now at every boot of Red Hat 7.0
> 2.2.16.ert, the machine locks up and fails its self test on
> /dev/hda7, which is a linux partition on the drive I was
> attempting to copy from.  This machine has vital
> information on it and I need to get this hard drive copied
> in its entirety in order to have a backup of this OS for a
> very crucial job here at work.

Ouch.  What do you mean, "fails it's self test"?
Can you run e2fsck on it?  Anyway, copying *from* a partition
in parted shouldn't do any damage...

Was the partition mounted?  Maybe there are cache issues...

>     On another note, what would be a best bet suggestion to
> accomplish this? Is parted the right program to be using?

I would use tar or some backup program.

> I
> am rather new to Linux and I have read pages upon pages of
> How-To's, but nothing seems to come closer than Parted.
> Will parted successfully copy the boot sector so I can use
> my copy to run a system standalone without the Mother hard
> disk? 

Perhaps partimage.sourceforge.net is what you want...
I don't think it does partition tables / MBR though.
(you can do that with dd, though:
        # dd if=/dev/hda of=mbr.backup bs=512 count=1
)

If you want to backup "then entire disk", you can use dd
to copy.  Eg: if you have a spare hard disk:

        # dd if=/dev/hda of=/dev/hdb bs=4M

(bs=4M means "copy 4Mb at a time")

If you copy all the partitions on a disk to another disk
with Parted, it won't be bootable.  However, it is easy
to make it bootable, by booting off a floppy (say, the
parted boot floppy, or your distro install CD), and doing:

        # chroot /dev/hda[INSERT-ROOT-DEV-NUM] /sbin/lilo

Andrew Clausen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]