LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-15-2013, 06:51 AM   #1
insectiod
Member
 
Registered: Feb 2013
Posts: 34

Rep: Reputation: Disabled
Decent partition manager


I reinstalled Slackware recently. Using cfdisk (from 14.1 iso) I got a partition layout with alignment errors. I got the advice to redo the partitioning, because alignment errors affect performance. So I partitioned with fdisk (also from 14.1 iso). This fixed alignment errors, but when I should install lilo, lilo complained about inconsistent partition table. I had to install lilo manually with a switch to turn ignore errors. Also when partitioning with fdisk, you don't really get the partition size you put in, it's often off by 10's of gigabytes.

Are there any non-buggy partition manager for linux out there? Preferably command line based.

Last edited by insectiod; 12-15-2013 at 07:11 AM.
 
Old 12-15-2013, 07:10 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,374

Rep: Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754
If you are not happy with the performance of fdsik/cfdisk then try parted as a CLI based tool.

BTW- Looking at the partition table in your other thread, I note that you have the boot flag set on two partitions. It is not necessary to set the boot flag on your Linux boot partition.
 
1 members found this post helpful.
Old 12-15-2013, 01:13 PM   #3
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 15.0 running i3
Posts: 494

Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by insectiod View Post
[...] Also when partitioning with fdisk, you don't really get the partition size you put in, it's often off by 10's of gigabytes.

Are there any non-buggy partition manager for linux out there? Preferably command line based.
Play with the multiples, I've found that 1075 per gig works for me usually.
 
Old 12-15-2013, 01:15 PM   #4
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
I use fdisk and cfdisk with multiples of four. Usually 100 MB for the /boot partition, then 2048, 4096, 8192 etc. for swap... and the rest for the root partition.
 
Old 12-16-2013, 05:50 AM   #5
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
Hi
I'm curious... what do you have against GUI partitioner front-ends?
 
Old 12-16-2013, 07:13 AM   #6
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by enorbet View Post
Hi
I'm curious... what do you have against GUI partitioner front-ends?
Nothing. They work just fine. I prefer cfdisk and fdisk. Each to his/her own.
 
1 members found this post helpful.
Old 12-16-2013, 02:54 PM   #7
insectiod
Member
 
Registered: Feb 2013
Posts: 34

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kikinovak View Post
I use fdisk and cfdisk with multiples of four. Usually 100 MB for the /boot partition, then 2048, 4096, 8192 etc. for swap... and the rest for the root partition.
Could you expand on this a little. Does this prevent alignment problems? Multiples of four bytes or kilobytes etc?

When booting the iso for Slackware or some similar distro, there is no X available, and this is where you need a partition manager. If there was good cli program then this could easily be brought in at installation time, even if it's not actually on the slack iso. I guess the alternative is to use a separate iso for booting up an environment where a graphical partition manager can be used but that's annoying.

With that being said, what is the best partition manager including graphical ones? Is gparted less buggy than fdisk?
 
Old 12-16-2013, 03:07 PM   #8
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by insectiod View Post
Could you expand on this a little. Does this prevent alignment problems? Multiples of four bytes or kilobytes etc?

When booting the iso for Slackware or some similar distro, there is no X available, and this is where you need a partition manager.
After you login as root as part of the installation routine you will be prompted to partition your HD. The partitioning utility cfdisk is included with Slackware; it is more user friendly than fdisk. You invoke cfdisk by using a similar command to this:

# cfdisk /dev/sda
 
Old 12-16-2013, 11:26 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by hitest View Post
After you login as root as part of the installation routine you will be prompted to partition your HD. The partitioning utility cfdisk is included with Slackware; it is more user friendly than fdisk. You invoke cfdisk by using a similar command to this:

# cfdisk /dev/sda
And that is exactly why the OP had the problems with the alignment of his partitions. While any other partition manager switched the default start sector of the first partition to 2048 to prevent alignment issues with Advanced Format disks and SSDs, cfdisk has not and still starts the first partition at sector 63.

So, if you want to install on an Advanced Format disk or an SSD I recommend to not use cfdisk, use plain fdisk instead. It may be not as convenient as cfdisk, but it works reliably and after all that is what counts.
 
Old 12-17-2013, 01:12 AM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,061

Rep: Reputation: Disabled
For the sake of completeness, one can also use gdisk/cgdisk, included in the installer. Their usage is mandatory in case of UEFI firmware but else you still can set a GPT (instead of MBR) partition table. I didn't try on a real machine so please someone correct me if I am wrong.
 
Old 12-17-2013, 07:17 AM   #11
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
Greetings
I haven't looked at these particular docs in awhile but it used to be in the Slackware Installation docs, that Patrick recommended partitioning BEFORE beginning installation. He mentioned Partition Magic back then, which certainly was a breakthrough piece of software (too bad Symmantec got hold of it) but I don't think they even keep it up anymore with so many Free ones out there.

GParted keeps getting better and is a serious tool, not a toy, but lately I have been preferring KDE's Partition Manager which is included in Slackware Extra. It is also on the Porteus LiveCD which forked off of Slax and is an excellent live environment to get some serious work accomplished or just surf around. One advantage of the GUI types, is that in one place you can gather deep info, edit and even run "e2fsck, checkdisk" whatever is appropriate to the filesystem without launching another Tab or program. Then, of course, there is that lovely resizing/repositioning capability.

Don't get me wrong, I love CLI too, but my toolbox has ratcheting socket wrenches, box wrenches, open ends and for the really ornery ones, torches, Stillsons and Easy Outs :P
 
Old 12-17-2013, 09:06 AM   #12
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by enorbet View Post
GParted keeps getting better and is a serious tool, not a toy, but lately I have been preferring KDE's Partition Manager which is included in Slackware Extra.
Great suggestions. You can downlad GParted here:

GParted
 
Old 12-17-2013, 09:30 AM   #13
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
I want to second Didier Spaier mentioning gdisk family. It works well with aligning partitions just right. Also the cli verion cgdisk can be a bit funky when creating paritions and you use non interactive mode. One has to thing around the normal numbering scheme. But nothing hard at all.

Also I wish for an option to create a UEFI or similar boot partition. Problem is the first partition will start at 2048 which is aligned and good. But the boot partition fits in between 64-2048 which I normaly create as the second parititon. Its just that I like my paritions numbers to be the same as the layout on the disk itself.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Decent boot loader (startup manager) for Ubu 10.4? brianpbarnes Linux - Software 4 06-18-2010 01:50 PM
Partition Manager tsunamikitsune Linux - Newbie 7 02-02-2007 11:26 PM
Dual-booters: What's a decent partition size for RH Pcghost Linux - General 5 06-28-2006 08:15 PM
Partition manager bong.mau Linux - Software 1 08-22-2005 08:04 AM
A decent package manager for SuSe nolimitz Linux - Software 6 08-08-2005 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration