Andreas Gerdd wrote on Sun, Mar 28, 2010 at 06:01:07PM +0300:
> On Sun, Mar 28, 2010, Nick Holland <[email protected]> wrote:
>> Andreas Gerdd wrote:

>>> I try to have a root backup with /altroot.
>>> I did everything related to the man pages. But i wonder why my
>>> /altroot partition is still empty.
>>>
>>> fstab file:
>>>
>>> /dev/wd0a / ffs rw,softdep 1 1
>>> /dev/wd0d /altroot ffs xx 0 0
>>>
>>> Both / and /altroot partitions are having the same size,
>>>
>>> I also added ROOTBACKUP=1 to /etc/daily.local,
>>>
>>> Daily.out file:
>>>
>>> Backing up root=/dev/rwd0a to /dev/rwd0d:
>>> 33129+1 records in
>>> 33129+1 records out
>>> 271393792 bytes transferred in 13.288 secs (20423240 bytes/sec)
>>> ** /dev/rwd0d

>> How are you verifying that the /altroot PARTITION is empty?

> ls /altroot
> shows nothing inside, other than ./ and ../

What does
 $ df /altroot
tell you, in particular, which mount point is it reporting?
"Mounted on /" or "Mounted on /altroot"?

I'm asking because "xx" in fstab(5) means "ignore totally",
so /altroot will not be mounted by default, so ls(1) can't
show the contents.

By the way, this is useful behaviour.
If you are regularly dd(1)ing into a partition,
you do *not* want it to be mounted.

Yours,
  Ingo

Reply via email to