All, Thanks to eveyone who responded to my question on how to extend my swap space. My only problem now is using fdisk to create a new swap space. I did a 'man' on fdisk to understand it's usage and this is what I came up with, but I am still unable to create the partition. (This partition stuff is definitely not for newbies). fdisk -s 133056 /dev/hda4 error msg: unable to open 133056 What am I doing wrong? Here is my current partition settings: Device Name Frm To Blocks Partition Type ----------- --- -- ------ -------------- /dev/hda1 1 5 20128 83 Linux Native /dev/hda2 6 38 133056 82 Linux Swap /dev/hda3 39 1023 3971520 83 Linux Native TIA, Daniel N. __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Try: fdisk /dev/hda then in fdisk: n (new) p (primary) 4 (partition 4) enter (start at first available cylinder) +128M (create a 128 megabyte partition) t (change type of partition) 4 (change type of partition 4) 82 (set type to swap) w (write partition table to disk) q (quit) Of course, I can't emphasize enough, if in doubt, PRESS CTRL-C. This will kill fdisk without making any modifications to your filesystem ! ( given that you have NOT issued the "w" command !!!!!! ) If you get errors, then you may not have the space available on your hard drive to create a new partition. If you are unable to create a new partition, please post the output of "fdisk -l /dev/hda" with your reply to the list. And remember - IF IN DOUBT, PRESS CTRL-C ! :-) Regards, Tor Sigurdsson
All,
Thanks to eveyone who responded to my question on how to extend my swap space. My only problem now is using fdisk to create a new swap space.
I did a 'man' on fdisk to understand it's usage and this is what I came up with, but I am still unable to create the partition. (This partition stuff is definitely not for newbies).
fdisk -s 133056 /dev/hda4
error msg: unable to open 133056
What am I doing wrong?
Here is my current partition settings:
Device Name Frm To Blocks Partition Type ----------- --- -- ------ -------------- /dev/hda1 1 5 20128 83 Linux Native /dev/hda2 6 38 133056 82 Linux Swap /dev/hda3 39 1023 3971520 83 Linux Native
TIA, Daniel N.
__________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
- -- ______ /---------------------------------------\ \ | Þór Sigurðsson | Tor Sigurdsson | t | | Netmaður | Network Specialist | o | |-----------------------------------------| s | | tosi@rhi.hi.is | i | \---------------------------------------/_____/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1e-SuSE (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6ZMnc6mRH+PEpr2YRAiwlAJsE0hv86xScz8I/l1toS2jsWALkngCgmJCK ADNSCAqnaeE48AEWQFKxXU8= =rA9m -----END PGP SIGNATURE-----
hi do u really want a new partition. Isn't it infinitely more conveniewnt to use a swap file on an existing partition and then activate it ? regards cheedu
Dan Navarro wrote:
Thanks to eveyone who responded to my question on how to extend my swap space. My only problem now is using fdisk to create a new swap space.
I did a 'man' on fdisk to understand it's usage and this is what I came up with, but I am still unable to create the partition. (This partition stuff is definitely not for newbies).
fdisk -s 133056 /dev/hda4
error msg: unable to open 133056
What am I doing wrong?
Here is my current partition settings:
Device Name Frm To Blocks Partition Type ----------- --- -- ------ -------------- /dev/hda1 1 5 20128 83 Linux Native /dev/hda2 6 38 133056 82 Linux Swap /dev/hda3 39 1023 3971520 83 Linux Native
The command you need to type is 'fdisk /dev/hda'. Assuming you have free space after /dev/hda3, use the 'n' command, and answer the questions. If you didn't specify it while creating the partition, you can change the partition type to 'Linux Swap' (type 82) using the 't' command on partition number 4. Use the 'p' command to check that the table looks alright and then you can write it to the disk and quit with 'w'. When you're back at the prompt, you can type 'mkswap /dev/hda4' (assuming your new swap partition is at /dev/hda4) and then add this partition to /etc/fstab in a similar manner to your current swap partition. Finally, do a 'swapon /dev/hda4'. Hope that clears things up, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\
participants (4)
-
Chris Reeves
-
Dan Navarro
-
Sridhar
-
Tor Sigurdsson