Stupid mkdir question

Stupid mkdir question

Post by David Dorw » Fri, 27 Jun 2003 23:52:49



Oh darn, missed that bit.

This is where symbolic links come in to play.

man ln

--
David Dorward http://www.yqcomputer.com/
Redesign in progress: http://www.yqcomputer.com/
Microsoft announces IE is dead (so upgrade):
http://www.yqcomputer.com/
 
 
 

Stupid mkdir question

Post by Gerhard W. » Sat, 28 Jun 2003 01:59:09

On Wed, 25 Jun 2003 17:35:28 -0500 wrote Jak Ecks *** < XXXX@XXXXX.COM >
in comp.os.linux.misc with < XXXX@XXXXX.COM >


You can always mount it there.

Just create /new and then mount /dev/hda5 (or whatever partition you want) on
/new. No problem there.

--
Gerhard Gruber

F jedes menschliche Problem gibt es immer eine einfache Lung:
Klar, einleuchtend und falsch. (Henry Louis Mencken)

 
 
 

Stupid mkdir question

Post by Neal P. Mu » Sat, 28 Jun 2003 07:18:41

Gerhard W. Gruber passionately intoned:


Hmmm. This *is* a good point. On your large partition, you can:
- create a file that is plenty large enough to hold all the data in the
tree you want to move (dd if=/dev/zero of=/new_tree/new_fs bs=1024K \
count=500)
- make a filesystem in it
- mount it on /mnt using the loopback device
- cd to the original dir (cd /orig_dir)
- 'find . -depth -print|cpio -pdv /mnt'
- umount /mnt
- 'cd ..; mv /orig_dir /orig-dir-'
- 'mkdir /orig_dir; chmod 555 /orig_dir'
- 'mount /new_tree/new_fs /orig_dir -o loop,rw'

Your directory has now been moved to a larger home. Once you have verified
that everything works, 'rm -rf /orig_dir-' to free up the original space.

Again, heed the standard warnings and disclaimers about moving a directory
that is needed during the boot process. Also, performance is not guaranteed
to be as speedy as if the new FS was on a block device.

Fest3er
 
 
 

Stupid mkdir question

Post by Jak Eckste » Sat, 28 Jun 2003 09:12:13


Many thanks to all responders.

Mr Uhring was quite correct, when he wrote



The application with which I am working demands to contain data on
/server1 directory, but on the system I use for test, is not room to
contain these 200MB+ (on hda5). So I already have move to /var/server1
but the app cannot be pointed there by itself.

The symbolic link redirects the app and all is well.

When it is found to work, we place the datas on a file server and then
mount /server1 to that machine and the app should continue to function
if file sharing of it is correctly done.

Again, thanks to you all.