On Sun, Aug 16, 2009 at 12:54 AM, Philip Guenther<guent...@gmail.com> wrote:
> On Sat, Aug 15, 2009 at 3:44 PM, 4625<4625...@gmail.com> wrote:
>> Is it correct string for /etc/fstab? "/dev/wd2d /altroot ffs xx 0 0"
>
> Assuming /dev/wd2d is the correct partition, yes.  (You're looking at
> the daily(8) manpage, right?)

same device i am using here ("a" for root, "b" for swap, "c" entire
disk, "d" for /altroot, and so on...)

just two advices: (1) the /altroot filesystem must have the same size
as the root ("a") one (it may be slightly larger on architectures
where root does not start at the beginning of the disk, like i386);
(2) as Philip suggests you must read daily(8) to know how enabling
back up of the root filesystem. my personal choice is setting
ROOTBACKUP to "1" by hand and then run /etc/daily, this way /altroot
will survive in case a mistake in the root filesystem remains
unnoticed for more than twenty four hours.

>> Should "df" display the "/altroot"?
>
> Only if you mount it yourself.  It is not normally mounted and
> therefore does not appear in 'df' output.  (No point in displaying it,
> what with it being a duplicate of the root filesystem)

indeed, filesystems with "xx" as mount option are never mounted on
boot.  it is a backup filesystem -- automatically mounting it is a bad
idea.

cheers,
igor.

Reply via email to