Re: Accidental deletion. Help please!



Vilmos Soti <vilmos@xxxxxxx> writes:

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.

Fine. The key point is to make a copy of the material and work on that and
not work on the original If you work on the original there is far too great
a chance of destroying crucial things through some misunderstanding or
incompetence.
Whatever works to making an exact copy of the partition.


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: [opensuse] Quick Help! - is it OK to ssh, su and umount and re-mount /home?
    ... is it OK to umount and mount /home ... The partition is on /dev/sdb1. ... unmount home change the 'acl' mount option to 'noacl' and remount the ... I guess the mount remount is the key to keeping the ...
    (SuSE)
  • Re: /c: unmount pending error: blocks -68512 files 0
    ... > I ended up having to modify the script to unmount /config completely ... > and then mount it read-only... ... I've modified my CVSup script (the cvs repo is on a r/o partition, ...
    (freebsd-current)
  • Re: lost root password on solaris 8 V880 with disksuite OS drive(s)
    ... Thanks for the info. I'll go to the OK prompt, boot from cd, mount the ... partition, make the change, unmount the filesystem. ... > Should be able to mount the original partition (not the meta disk). ... > Make your change and UNMOUNT before rebooting. ...
    (comp.unix.solaris)
  • parted - how to use on RHAS 4.0
    ... I've found the docs regarding the use of parted on the RH Linux docs dvd and according to them I'm supposed to unmount the partition before I modify it. ... Since the unallocated space isn't really "assigned" to a mount point, do I have to unmount anything before I create the partition? ... I've seen qtparted which is a gui frontend to parted but I can't get it to compile on RHAS 4.0. ...
    (alt.os.linux.redhat)
  • Re: parted - how to use on RHAS 4.0
    ... I would like to create a partition and mount it so I>>can use the 8gig of space. ... Since the unallocated>>space isn't really "assigned" to a mount point, do I have to unmount>>anything before I create the partition? ... I'm assuming I need>>to unmount the / partition which will require I mount a boot disk or>>something. ...
    (alt.os.linux.redhat)