LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 08-21-2004, 04:48 PM   #1
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Rep: Reputation: 15
partitioning advice for the trigger happy


If you haven't been stuck in Antarctica for the last six years, you'll know that there's been a huge profusion of linux distros, as your regular visits to this site and distrowatch.com will confirm.

The trouble comes when you're not satisfied with just reading about them, but you actually want to try them out. In consequence you will inevitably become a serial hard disk partitioner.

Now, let it be said, there are several things you need to look out for, before carving up your hard disk like a Japanese Steakhouse Chef. However, I'm only going to mention one, because chances are, you know most of the others already.

The issue regards primary and logical partitions, and how it's important that you control that aspect from the very start. If your filesystem happens to slip from a primary to a logical partition because of some of your endless partitioning, well ... you will not be able to read it. And the venerable fsck and tune2fs won't help you too much either.

I say all this because it happened to me. I was/am a trigger happy distro fanatic. I wanted/want all of them bootable on my sturdy laptop harddisk. You might ask why. Well, for fun, F-U-N, fun. After all, that's the distrowatch slogan, "use linux: put the fun back into computing" (actually, this isn't entirely true, some of the stuff I install is seriously useful... can't divulge right here though).

Anyhow, what happened was, is .. that I had a hard disk with about 12 partitions, the first three being primaries, the fourth being extended, so I Ącould add a bunch of logical partitions, and not get stuck with Intel's four partition limit.

Now some of my primary partitions were quite big, so later on I decided to slim them down a bit (usually using cfdisk, but I think fdisk is similar). In doing so, I was increasing the number of primary partitions, which, can not be more than 3.

This process would cause certain primary partitions to be "relegated" to logical status, The problem is then, these - erstwhile primary - partitions - now logical - can't seem to be read anymore.

That can be particularly worrying. In my case I had a load of un-backed-up files, which I could no longer read.

I spent some time on these forums, and reading, and experimenting before I came up with a cunning plan. Rather than study the structure of ext2 filesystems in depth, or learn more about the tune2fs or e2fsck commands, I would ... wait for it, retrace my steps, and reverse the process.

In other words, if converting a partition from primary to logical made the filesystem unreadable, why not convert the logical partition back into a primary partition?

Actually, it was quite a troublesome plan, as it demanded my sacrificing some earlier installs, but at least it was all stuff I had backed-up. I don't mind deleting stuff I have backed up, although re-installing can be a pain sometimes.

However, this "reverse" process actually worked. Once the filesystem was on a primary partition (again), it could be read and written with no problems.

I also found out was that IDE drives can take a full logical 64 partitions. So I've decided to only have one or two primary partitions, and keep the majority of them logical. That way the filesystems on them can always be readable, no matter how often I take a knife to my hard-disk.

Now that's only one piece of advice, written, as you can see, to entertain as well as enlighten. So my motto now is:

"when adding new linux partitions, go for logical, not primary" Keep it in mind thou worthy distro-addicts.

Last edited by class_struggle; 08-21-2004 at 04:52 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Advice on partitioning simcox1 Mandriva 4 04-25-2005 09:44 AM
:'( Trigger happy trying to remove lilo init Linux - General 2 07-23-2004 09:42 PM
Need partitioning advice lancelott Linux - Newbie 1 06-11-2004 05:12 PM
NEED HELP! Partitioning Advice Hesperuax Linux - Newbie 1 04-06-2003 05:23 PM
Partitioning advice booyabazooka Linux - Newbie 6 04-05-2003 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 03:25 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