From: "Adam Price" <adam+usenet@pappnase.demon.co.uk>
Subject: Re: What's the easiest way to replace the root disk (DU V4.0D)?
Date: 2000/01/31 [thread overview]
Message-ID: <949339421.18045.0.nnrp-13.c2deb51d@news.demon.co.uk> (raw)
In-Reply-To: 87442b$3cj$1@localhost.localdomain
Tim Fredrick wrote in message <87442b$3cj$1@localhost.localdomain>...
>We have an Alphastation running Digital Unix 4.0D and we are having
>problems with the disk that holds /, /usr, and the swap area. Right now,
>I have access to the drive and would like to swap it for a nice new
>18GB drive.
>
>Would it work to simply partition the new drive similarly, mount the
>partitions, and use tar or cp -r or some such to move the files from
>the current / and /usr to the new drive? Then replace the drive using
>the SCSI ID of the failing disk with the new drive?
>
>Or must I reinstall Digital Unix with the new drive in place?
>
>Thanks in advance,
>
The important things are to make sure that you get bootblocks on
the disk when you disklabel it (see the man page for disklabel),
and to make sure that when you copy the data you retain all permissions.
The problem with tar is that it loses setuid bits, and cp -r copies
symbolic links as real files.
Several other methods are available, you can use dd to copy the raw
binary data from one disk to another (not recommended unless the disks
are the same size), you can use vdump piped into vrestore, or my favourite
you can use pax, it has a built in argument for copying files from one
location to another and will preserve all permissions if you pass it the
right args.
Hope this helps
Adam Price.
prev parent reply other threads:[~2000-01-31 5:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-31 5:00 What's the easiest way to replace the root disk (DU V4.0D)? Tim Fredrick
2000-01-31 5:00 ` Michael Sch�fer
2000-01-31 5:00 ` mstargard
2000-01-31 5:00 ` Adam Price [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox