PDA

Bekijk de volledige versie : Mount on /opt



MHz
05-05-2007, 11:46
Hi all,

I already stored data om my EXT HDD that is mounted on /tmp/harddisk. But now I want to mount it to /opt. Can I do that without losing my data? If yes, How?

Can I do it this way

Run partition magic
Make the partition some smaller
Make a SWAP drive from the remaining free space
Close partition magic
Mount the drive as opt
Turning swap on

Then do the steps "installing basic software" on the macsat website

Is that possible?

al37919
05-05-2007, 13:33
yes, your way is possible.

However, there is easier way:

ln -s /dev/discs/disc0/part1 /opt
dd if=/dev/zero of=/opt/swap.file bs=1M count=256
mkswap /opt/swap.file
swapon /opt/swap.file

will link /opt to your hdd and create swap file in /opt with size 256Mb
swapon should be repeated at every reboot

MHz
06-05-2007, 16:28
Thanks For your help. Works now!