Re: Accidental deletion. Help please!



Lines re-broken for easier comment

et472@xxxxxxxxxxxxxxxxxxx (Michael Black) writes:

Vilmos Soti (vilmos@xxxxxxx) writes:
Unruh <unruh-spam@xxxxxxxxxxxxxx> writes:

Well, I would first make sure that the partition was
unmounted. Then I would mount it read only, and use
dd to make an exact copy of it to another partition,
and only work on that exact copy.

And why should he remount ro in order to dd?

Vilmos

To prevent anything being added to the partition while it's mounted?

And why anybody needs to *mount* the partition before dd-ing it?
Whether ro or rw? You don't dd the mountpoint. You dd the device.

My main point (albeit I recognize it was anything but clear) was,
that it is *NOT* needed to mount ro the partition. It doesn't even
need to be mounted.

The point of the process is that you want to "freeze" that partition
as soon as possible, because once you start doing anything to it, it
moves it further away from any recovery.

Yes. But still, why should he mount ro again? Isn't it easier simply
to unmount then dd?

The OP should have done (fortunately his misery is already resolved)
to immediately umount the partition the dd. No remount ro. It simply
doesn't make sense.

Vilmos
.



Relevant Pages

  • Re: Problem with random disks mount sequence
    ... I'll get random mount sequences. ... At the beginning the USB ... nautilus remember that 'storage3' was 1st partition, ... SCSI drives are listed by order of discovery. ...
    (Fedora)
  • 2.6.32-rc6 - 2.6.32-rc6-git3 misinterpreting fstype on boot
    ... strangeness - misinterpreting the xfs partition as reiserfs. ... proc on /proc type proc ... is a reiserfs partition it needs to mount as "/root"????. ...
    (Linux-Kernel)
  • Re: 2.6.32-rc6 - 2.6.32-rc6-git3 misinterpreting fstype on boot
    ... strangeness - misinterpreting the xfs partition as reiserfs. ... system.board.vendor = 'ASUSTeK Computer INC.' ... is a reiserfs partition it needs to mount as "/root"????. ...
    (Linux-Kernel)
  • Re: Ubuntu second hard drive was Windows partition
    ... Ubuntu second hard drive was Windows partition ... If ntfs-3g does come default in ubuntu, you can probably mount the ... on these lists for a couple of years now and should know what to say and ...
    (Ubuntu)
  • Re: Relabel partition didnt work
    ... > You're confusing disk lables with mount points. ... > When installing etch, at some point partman asked for a mount point for ... > that partition and I entered /xyz. ... There's nothing to do to the second hard disk. ...
    (Debian-User)