i need a 400MB swap partition to run oracle.
the problem is that i only have a 64MB swap partition, and it's sandwiched
between two other partitions. i would rather not have two swap partitions,
and i don't think that's an option anyway because all my primary partitions
(4) are used up. there is plenty of free space in the drive (see fdisk
output); partitions hdb6 and hdb7 are unused.
--BEGIN
[593][93]# fdisk /dev/hdb
The number of cylinders for this disk is set to 1581.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/hdb: 255 heads, 63 sectors, 1581 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 1 8001 83 Linux
/dev/hdb2 2 9 64260 82 Linux swap
/dev/hdb3 10 374 2931862+ 83 Linux
/dev/hdb4 375 1581 9695227+ 5 Extended
/dev/hdb5 375 739 2931831 83 Linux
/dev/hdb6 740 1104 2931831 83 Linux
/dev/hdb7 1105 1581 3831471 83 Linux
Command (m for help):
--END
what i want to do is chop 400-64 = 336MB off /dev/hdb7, move partitions
hdb3-hdb7 forward to the end of the disk, and enlarge the swap partition
(hdb2) to fill up the new 336MB free space between it and hdb3.
does anybody know how i can achieve this?
kind regards,
-vinny
.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!