#SWAP INCREASING WITH MAKING PARTITION #
POINT:
-------NOW IF WE INCREASE OUR RAM THEN WE HAVE TO INCREASE THE SWAP ALSO FOR 1_____FOR THIS WE HAVE TO MAKE A LOGICAL
PARTTITON FIRST.
2_____THEN MAKE IT THE SWAP WITH
FORMATING IT IN SWAP.
3____ ALSO HAVE TO CHANGE ITS ID.
WE KNOW SWAP IS ALWAYS THE DOUBLE OF THE RAM.
4____THEN MAKE A PARTITON THE DOUBLE OF YOU ADDED THE SIZE OF THE RAM.
5____THEN
SAVE THE PARTITON OF NEW LOGICAL DRIVE.
6____THEN
CHANMGE THE ID OF THE PARTITON B COZ THE SWAP AND LOGICAL HAVE
DIFFERENT ID`S
PARTITON ID
LOGICAL 83 SWAP
82
7____AFTER
CHANGE THE ID FORMAT IT IN THE SWAP.
8____NOW
ACTIVATE IT BY GIVE THE LINK IN THE [/etc/fstab] FILE.
ALSO
REMEMBER TO REFRESH THE MOUNTING POINT AFTER MAKE THDE PARTITION.
NOW HOW TO
MAKE THE SWAP PRACTICALLY___________________________________________
SUPPOSE RAM SWAP
AFTER INCREASE RAM SWAP TO BE INCREASE
1 GB 2
GB 1 GB 2
GB
YOU HAVE
TO INREASE THE SWAP DOUBLE OF ADDED RAM.,
#
fdisk –l ______ to show the partitions.
#
fdiisk /dev/sda ___to enter in the mode to make a new partition
(Command
(m for help) n ______________enter
To
make a new partition . then make a
partition of size you want.
(Command
(m for help) w_______________enter
To
save the partition.
(Command
(m for help) t _______________enter
To
change the partition id
Partition no ____(1-6) -- give here no of which partition u want to
change the id .
Partition
id ____------____give the partition id you want to give (give here partition id
82)
swap has id (82).
Now
format the partition in swap
________________________________________
#
mkswap /dev/sda6 ______ to format in swap file system.
Then
the following steps_______________________________________________
#
rm –rf /dev/fd0 ____ to disable floppy
drive .
#partprobe
_________to refresh MBR.
Now
to activate swap
_______________________________________________
#
swapon /dev/sda6 _______ now swap is active
now make its mounting permanent.
MOUNTING______________________________________________________
#
vi /etc/fstab ___________to open fstab
.
Enter
the following link
in FSTAB.
/dev/sda6 swap swap defaults 0 0
.
:wq __enter to save n exit from FSTAB.
Now
_____________________________________________________________
# mount –a _____ to refresh mounting point.
# swapon –s ____ to check the active
swap now .
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.