Trouble setting up swap partition using fdisk, Please help!
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Trouble setting up swap partition using fdisk, Please help!
Hello all,
I am fairly new to Linux in general and this is my first attempt at installing Slackware. I am really interested in this distro especially and would rather install slackware over any other right now. I am having trouble setting up the partitions. All I want is 2 partitions (I'm a newbie and want to keep it as simple as possible), one 8Gb swap partition and make the remainder of my 500Gb hard drive into an ext4 filesystem partition.
I started by using fdisk to erase all previous partitions so I can start with a clean drive. Then I used fdisk to make an 8Gb partition and another partition that takes up the remainder of the hard drive(457.8Gb). By default they are both created as "Linux Filesystem". Obviously I want to make the 8Gb portion into a "Linux swap partition". I have used the "t" command in fdisk which allows you to enter a Hex code to change the filesystem type. The Hex code for a swap partition is 82, and linux filesystem is 83.
However, when I use fdisk and enter 82 when prompted for the Hex code, I get the message:
"Type of partition 1 is unchanged: Linux filesystem"
So, I am finding it impossible to make the 8Gb partition into a swap partition using fdisk. Is there another way to change the partition type using fdisk or another partitioning program?
Any suggestions are greatly appreciated,
Best Regards,
-Lou
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.