LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Adding a hard disk ....

[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
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell