LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trouble setting up swap partition using fdisk, Please help! (https://www.linuxquestions.org/questions/linux-newbie-8/trouble-setting-up-swap-partition-using-fdisk-please-help-4175617482/)

LouCFur 11-12-2017 12:31 PM

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

Keruskerfuerst 11-12-2017 12:56 PM

You can partition the disk with fdisk.
After that, you have to create the filesystem with mke2fs .

Ztcoracat 11-12-2017 01:16 PM

When I install Slackware I create the swap partition first.
Than allocate the rest of the drive to the ext 4 / journaling file system.

I found this video to be very helpful for installing Slack:-

https://www.youtube.com/watch?v=JnggjPFtRCQ

Good luck with your fresh install and enjoy!

BobRock 11-12-2017 01:30 PM

You can use cfdisk(graphics mode). Make your 8 GB partition and then, in type menu, select 82.


P.S.
...My english is too bad, I'm sorry! :)


All times are GMT -5. The time now is 03:00 AM.