[ILUG] Adding a hard disk ....
Brian Brazil
bbrazil at netsoc.tcd.ie
Wed Jul 14 14:18:06 IST 2004
On Wed, Jul 14, 2004 at 01:59:07PM +0100, Declan Grady wrote:
>
>
> Brian Brazil wrote:
>
> >On Wed, Jul 14, 2004 at 09:57:21AM +0100, Declan Grady wrote:
> >
> >
> >>I dont know how to do this.... If i create a new /var/spool partition,
> >>how do I get at the data in the current /var/spool directory ?
> >>
> >>
> >
> >Insert Disk
> >Boot in single user mode
> >(in lilo 'linux single' will probably do it. YMMV)
> >Partition the new drive
> >Format the new partition(s) (mkfs.<filesystem type>)
> >Mount the new partition on /mnt
> >copy data: cp -aR /var/spool/ /mnt
> >umount /mnt (optional)
> >umount /var/spool (also optional)
> >mount /dev/hdb1 /var/spool
> >init 3 #or whatever runlevel you normally use
> >
> >
> >
> >
> OK. Sounds reasonable ... do I have to change the fstab file to point
> /var to the new location ?
Yes. The 'mount /dev/hdb1 /var/spool' step bypasses a need for the
relavent fstab entry until the next boot, by mounting it manually.
Brian
--
Website: http://netsoc.tcd.ie/~bbrazil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: not available
Url : http://mail.linux.ie/pipermail/ilug/attachments/20040714/2f8c2e95/attachment.pgp
More information about the ILUG
mailing list