- mv swap to other partition
- Posted by blackdog on March 12th, 2005
I have SunOS4.1.4. Currently, the swap space is at partiton /dev/sd1e.
in my fstab file I configur as
/dev/sd1e /export/swap 4.2 rw 1 9
swap /tmp tmp rw 0 0
I need to the swap to other disk such /dev/sd0f ...
What should I do?
Thanks
- Posted by Doug Freyburger on March 13th, 2005
blackdog wrote:
Step one - Get a recent operating system. Find a
recent version of the application or switch to a
different application.
Man pages for fstab, swap and swapon. The words of
the file are device (/dev/sd0f), mountpoint (swap),
filesystem type (swap), rear-write-status (rw),
shoudlfsck (0), order-of-fsck (0). I think I
remembered the words in parens but it's been years.
Interesting that you have "4.2" and a filesystem
type. I remember "ufs" being used.
- Posted by blackdog on March 14th, 2005
Yes it is a very old operating system, but it is not my decision
though.
I need to add one new disk and put the swap at the new disk.
Would any one please provide some information how to do parition and I
can
configure swap space on the new disk.
Thanks
- Posted by Doug Freyburger on March 14th, 2005
blackdog wrote:
Please provide context when you post. If I hadn't
responded earlier I wouldn't know what you were
discussing.
To partition - use "format". It is a menu oriented
program so read the man page and inspect the menu
options carefully. Basically you slice-n-dice the
drive, keep the "c" partition to be an overlap of the
entire drive, pick one of the partitions to use as
swap, and then enter that partion into /etc/fstab.
On the fly I think "swapon -a" may work, but look
through /etc/rc and follow it's chain of events
looking for how it enables swap spaces. Then use
what it uses or reboot.