From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,63f3ea989c9138f1 X-Google-Attributes: gidfee84,public From: "Adam Price" Subject: Re: What's the easiest way to replace the root disk (DU V4.0D)? Date: 2000/01/31 Message-ID: <949339421.18045.0.nnrp-13.c2deb51d@news.demon.co.uk>#1/1 X-Deja-AN: 579962110 X-NNTP-Posting-Host: pappnase.demon.co.uk:194.222.181.29 References: <87442b$3cj$1@localhost.localdomain> X-Trace: news.demon.co.uk 949339421 nnrp-13:18045 NO-IDENT pappnase.demon.co.uk:194.222.181.29 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: comp.unix.osf.osf1 X-Complaints-To: abuse@demon.net 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.