[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

restoration of ~ftp



Hello all.

In an attempt to move some things around on my Linux server, I forgot that
a reboot clears /tmp, and subsequently erased parts of the ftp home
directory which I was shifting from one disk to another.  What's the best
way for me to restore ~ftp/bin, ~ftp/etc, and ~ftp/lib?

For the curious, I'm working on reorganizing my server to provide a mirror
of ftp.debian.org on one of my disks, while still being able to use the
same partition for more than just anonymous ftp.  My /etc/fstab is now,
and a df is towards the bottom (along with info on the invisible ones):

# /etc/fstab: static file system information.
#
# <file system> <mount point>	<type>	<options>	<dump>	<pass>
/dev/hda1	/               ext2    defaults	0	1
/dev/hdc2	none		swap	sw		0	0
proc		/proc		proc	defaults	0	0
/dev/hdc4	/tmp		ext2	defaults	0	2
/dev/hda2	/usr		ext2	defaults	0	2
/dev/hdc3	/var		ext2	defaults	0	3
/dev/hda3	/nfs		ext2	defaults	0	3
/dev/hdb1	/server		ext2	defaults	0	4

/home -> /nfs/home
/usr/local -> /nfs/usr/local
/var/spool/mail -> /nfs/spool/mail

So that I can export one filesystem (/nfs) by, you guessed it, NFS, to my
workstation (if/when I can manage to get Debian to use my 3c905
netcard...) in one quick snap.  All I'll hafta do is make the same
symlinks on the workstation and TA-DA, instant easy workstation.

I'm now trying to consolidate my "services" on /server, so I could perhaps
make certain parts of it available via NFS.  Originally, I had
~ftp/pub/debian -> /server/ftp/debian, but that doesn't work (wu-ftpd does
a chroot to ~ftp, so then you can't symlink out (just in)).


It was:

# /etc/fstab: static file system information.
#
# <file system> <mount point>	<type>	<options>	<dump>	<pass>
/dev/hda1	/               ext2    defaults	0	1
/dev/hdc2	none		swap	sw		0	0
proc		/proc		proc	defaults	0	0
/dev/hda2	/usr		ext2	defaults	0	2
/dev/hdc3	/var		ext2	defaults	0	2
/dev/hda3	/nfs		ext2	defaults	0	3
/dev/hdc4	/tmp		ext2	defaults	0	3
/dev/hdb1	/nfs/home/ftp	ext2	defaults	0	4

This tied up hdb1 for one purpose only, which I didn't want.

(hda and hdc are Quantum 850s, hdb is a Western Digital 3.1G.)

df looks like:

Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/hda1              19485   11539     6940     62%   /
/dev/hdc4             288354      33   273428      0%   /tmp
/dev/hda2             223494  116098    95855     55%   /usr
/dev/hdc3             198123    8205   179687      4%   /var
/dev/hda3             560060   13657   517474      3%   /nfs
/dev/hdb1            2990073  943922  1891526     33%   /server
/dev/hdc1             198091   14761   173101      8%   /mnt

/dev/hda2 (swap) is 120M.  I originally had 128M swap in two 64M
partitions, one on hda2 and the other on hdc2, but I got occasional
errors.  Bummer.  hdc1 is supposed to be a spare self-contained bootable,
but it's broke.  

Thanks for the advice, and sorry if I cyberbabbled.

  --Pete
_______________________________________________________________
Peter J. Templin, Jr.                   Client Services Analyst
Computer & Communication Services       tel: (717) 524-1590
Bucknell University			templin@bucknell.edu



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: