Re: moving directories to new partition
I am in need of some advice about how to go about moving some of the directories off of my main partition and onto one I just made. /dev/hda4 is currently mounted / /dev/hda8 is currently mounted /tmpmount I'd like to be able to move /home, /root, /lib, /bin, and a couple others over to /dev/hda8 Thanks to all who helped me out. I ended up cp -p -r my /home, /var, and /root directories to /tmpmount/originaldir/ and made /home a link to /tmpmount/home ect. This freed up some space, and I was able to get things going just fine. Love quake under X, nice resolution. Rich M [EMAIL PROTECTED] -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: moving directories to new partition
I'd suggest that you consider putting more on your / partition (as opposed to less as you propose) and then freeing up some space elsewhere. Something I find useful is to have a separate partition for local stuff, like home directories, /usr/local etc. I create a separate partition, then make symbolic links on the root file system. (I mount the second partition as /local). I also moved root's home directory to /home/root, which means that root doesn't have a home directory in the event that /local won't mount, but this isn't too serious for me. The advantages, in my mind, are that you can (a) reinstall the OS; although unnecessary with Debian, changing distributions perhaps. I developed this approach when I wanted to change from Slackware to Debian; move everything non-system to /local, then reformat and reinstall the root file system. (b) Rootfs crashes mean you don't lose your local work. (c) Feels nicely organised to me. hamish -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: moving directories to new partition
Copying - I have used cp -a to good effect (transferring /usr amongst others), e.g. cp -a /home/. /tmpmount. CAUTION 1: When you mount a filesystem, the visible effects are mounting a directory tree structure, from the mount point down, so with only one filesystem (on /dev/hda) you CANNOT replace /home, /root, /lib, /bin, without mounting it as /. For example, if you 'mount /dev/hda8 /home' all the subdirectories in /dev/hda8 will hang from /home. The only way you can do this is to have separate filesystems for /home, /root, ... CAUTION 2: Because of the importance of /bin, /sbin, /dev, /etc, /boot the most secure way of partitioning is to have a root partition that is just large enough to handle these directories and then mount the rest of the directories as separate filesystems. This is due to the fact that the smaller a partition is the less probable it is that a sector will die on it, and if a segment dies on root, you have problems. The only directory here that might be loaded as a separate filesystem is /bin, I'm not sure of the dependencies here in Debian Linux. Hope this helps | [EMAIL PROTECTED] | http://www.geocities.com/SiliconValley/Park/1152 | Simon Martin | Old software engineers never die, | they just fail to boot | | Any Trademarks used in this document are recognized | as Registered Trademarks of their respective owners. -- On Mon, 16 Dec 1996, Richard Morin wrote: I am in need of some advice about how to go about moving some of the directories off of my main partition and onto one I just made. /dev/hda4 is currently mounted / /dev/hda8 is currently mounted /tmpmount I'd like to be able to move /home, /root, /lib, /bin, and a couple others over to /dev/hda8 -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: moving directories to new partition
I am in need of some advice about how to go about moving some of the directories off of my main partition and onto one I just made. (1) from Tips-HOWTO: Quick way to move an entire tree of files from one disk to another (cd /source/directory tar cf - . ) | (cd /dest/directory tar xvfp -) (2) I saw a program in sunsite called reflect. I think it is in /pub/Linux/utils/files Ioannis Tambouras [EMAIL PROTECTED] PGP 512/D042DD45, West Palm Beach, Florida -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: moving directories to new partition
On Mon, 16 Dec 1996, Richard Morin wrote: I am in need of some advice about how to go about moving some of the directories off of my main partition and onto one I just made. /dev/hda4 is currently mounted / /dev/hda8 is currently mounted /tmpmount I'd like to be able to move /home, /root, /lib, /bin, and a couple others over to /dev/hda8 Let me first suggest caution, as I've made the classic oops with /lib before. If you proceed with your plans, you risk being without /bin (if the partition holding it won't mount) and having an unfixable system. Not a good thing. My normal approach is to create a new directory somewhere (if there won't be too many I put it on /) and give it a representative name (/slashextend in your case?). In that directory, I make the appropriate directories (bin, home, lib, root) and migrate the files (using either tar cvf somefile /bin; cd /slashextend; tar xvpf /path/to/somefile OR cp -p -r /thisdir /thatdir). Once the migration is tested, then I rmdir the original directory and place a symbolic link from /home to /slashextend/home. I'd suggest that you consider putting more on your / partition (as opposed to less as you propose) and then freeing up some space elsewhere. I do some of the above on my box. I have a Linux server and a triple-boot workstation (95, NTW, Linux). Unfortunately, I have an overly new network card which isn't supported, so I don't have this fully working yet. I have the following partitions on the server: The usual: (hda and hdc are both Quantum 850, hdc2 is 120M swap) Filesystem 1024-blocks Used Available Capacity Mounted on /dev/hda1 19485 14050 4429 76% / /dev/hdc4 288354 33 273428 0% /tmp /dev/hda2 223494 14428367670 68% /usr /dev/hdc3 1981238697 179195 5% /var The not-so-usual (hdb is a 3.1G WD). /dev/hda3 560060 13660 517471 3% /nfs /dev/hdb12990073 914789 1920659 32% /server /nfs contains /nfs/home, /nfs/usr/local, and /nfs/spool/mail. Once I get the workstation up and networked, I can just mount /nfs via NFS into the workstation, symlink /home, /usr/local, and /var/spool/mail, and I'll have all of my appropriate files with only one NFS mount. I've got 560M to play with between personally-built programs, home directories, and incoming mail. The symlinks mentioned above are already in place on the server, so the setup will be identical on server and workstation (except for export out vs. mounted in). /server contains /server/ftp, and /home/ftp is a symlink to /server/ftp. I already provide a mirror of ftp.debian.org/debian/, and I might end up providing a variety of other services in the future, so this way I can use one big drive in a variety of ways without having to dump, repartition, and restore. I used to mount the big drive on /nfs/home/ftp, but that becomes very restrictive (I have to make other directories available by ftp if I ever want to make new directories on that partition). I tend to play a lot with performance tuning and disk usage, so holler if you have questions. :) --Pete ___ Peter J. Templin, Jr. Client Services Analyst Computer Communication Services tel: (717) 524-1590 Bucknell University [EMAIL PROTECTED] -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: moving directories to new partition
Hi Richard, You wrote: Richard Richard I am in need of some advice about how to go about moving Richard some of the directories off of my main partition and onto Richard one I just made. Richard Richard /dev/hda4 is currently mounted / 8 is currently mounted Richard /dev/hda/tmpmount Richard Richard I'd like to be able to move /home, /root, /lib, /bin, and a Richard couple others over to /dev/hda8 Richard Richard How would I approach this? I am not sure why would you want to move lib and bin to other partition (the system will not work!!! /bin and /lib HAVE to be at / ) As to /home and /root you can use 'cp -a' and remove them by hand. Or you can just use 'mv' but there may be some problems with links. borik -- Boris D. Beletsky [EMAIL PROTECTED] For pgp public key, e-mail me with subject get pgp-key -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]