Things to remember ... And I talk of MBR-based things, not LVM (but see 'monumental' guide here) or whatever else.
We, desktop-using amateurs, do not do partitioning very often. So it seems to be every time a forgotten mysterious thing and errors are easy to come.
When I repartitioned my sdb, I found myself a bit lost couple of times. Following are some facts and philosophies of a Big rePartitioning. (And it's not a guide 'how big I should make my root and home and should I make separate var'. Do google for that.)
- There can be only four primary partitions per physical disk. After the last one is used, you can not create any new partitions! So, use them wisely... at least the last one should house your extended partition (which then contains logicals). Logicals have limit too, but it's a lot bigger - no practical worries here.
- It's not wise to partition your disk - in a extencive way - from installed distro. There are limitations - things you simply can't do. Use Live USB. Any distro with Gparted (probably the best partition manager) will do. Or, if you want to have all the best dedicated tools - Parted Magic Live USB is your choice.
- You don't need primaries for Linux - it can live nicely on extended/logical. But BSD, for example, requires primary for installation. So does Windows...
Logicals start with number 5... means, when you have only one big extended, then your first distro sits on sdx5. Then there is a swap and you add couple of distros, and/or put your homes onto separate parts... and very soon you end up with numbers in tens... and those beginning with 1 are listed before 5 too. Which looks silly.
- ext4 is complitely ok for everyday desktop Linux use. No need for btrfs, reiser, xfs et cetera - one day it can create a problem (having a bunch of mixed filesystems).
- When repartitioning - if you have spare OTHER disk, archive/copy everything onto it. And delete old partitions. It's dramatically more time-consuming to move partitions, than to delete / create new ones. The difference is tens of times.
- Make a plan. What goes first, what comes later, how big you want all those parts. Remaking them afterwards takes again a lot of time.
A week ago I rearranged all my ten-plus partitions:
- I put my two mainstay distros onto first two primaries,
- And made third primary for future BSD testing.
- Fourth contains extended/logicals with all my other Linux partitions:
Swap is first. 'Common' is second - for all distros to keep various user-files on. It kinda replaces separate homes. Configs stay in their proper places, and are only (partially) back-upped to Common.
And then come different distros I play with. Plus unallocated area for new logicals.
- PS! I also have ext4 partition on different HDD, for real backup, like whole distro backups with fsarchiver. I have this partitions' copy also on external HDD (yes, I have experienced hard disks stopping to work, all of sudden).
For how-to backup with fsarchiver, and how-to get distros work again in new homes, look here.
What I want to say with this short and general post, is: when all those wildly happened partitions turn really bothersome and unconvinient; make a plan according to your needs, think it over, and remake your partitions, hopefully in future-proof way.
And do not forget about backups! Well, after first-time manual reinstall (3-4 hours confing versus fsarchiver 10 minutes) - it tends to be easier to remember.
Showing posts with label partition. Show all posts
Showing posts with label partition. Show all posts
2013-08-15
2013-02-22
1. Foreplay before install
2012, spring
Being somewhat suspicious in nature and averse to continuous fixing-and-reinstalling, I did some careful reading on topic. And remember, I am a noob, I couldn't make difference between ext4 and ntfs – not that I knew the first one existed.
Being somewhat suspicious in nature and averse to continuous fixing-and-reinstalling, I did some careful reading on topic. And remember, I am a noob, I couldn't make difference between ext4 and ntfs – not that I knew the first one existed.
Linux partitioning:
No simple letters are used for
drives (c:, d: and so on). Your hard disk is hd or sd, the first one
is sda, then comes sdb. The first partition on first drive is sda1,
then comes sda2 … and so on. By the way - on your desktop you do
not see those anymore. They will be renamed for your convenience or,
as it really is, for a convenience and/or by whim of your distro
maker. You can look them up with some disk tool like Gparted.
TIP.
Partitions:
a) Wise and
old-fashioned operator makes a separate boot partition – and 300 kB
is enough,
b) Then root
partition, known as /, should be at least 10 GB – despite
what you see when googling. I made 7GB partition and was hit by
disk-full warning in second day. And without any special efforts.
When experimenting and installing, it is very easy to
fill up the root.
c) Swap
partition, 2 gigas if the computer has less or equal to 2 GB of real
memory. If there is more, reduce it to 1 GB and let it be – no need
to philosophy if it's really needed in modern times. Some
distros wouldn't even install without it.
d) ~home
partition, with size according to needs. 10 gigas or more, maybe?
e) As a noob,
don't bother to make separate /etc, /bin and whatnot partitions.
Making a bootable USB
stick:
For making bootable USB-stick -
Unetbootin
is your friend. NB! Not every distro likes Unetbootin – some
even have warning about it (Mageia comes to mind).
Hybrid iso image is needed, pure
CD-one fits for CD only. (Times have moved on (as of 2013), and most
of 'easy distro' images are hybrid (and live)).
It's handy to know which type
processor you have – not that it's not handy knowledge when
using Windows as well. Means, 64bit system can use 32bit operational
system and soft, but not the vice versa.
Then there are many more intriquing
questions to ask, like: Where to install my bootloader. How to avoid
overwriting my dear Windows's MBR. What
to do if I did. Whole multiboot epic – with very practical
question: should I read tips more than 3 hours, or should I commit before
it gets totally confusing.
TIP: What did I
do to avoid such a tearful situation (fuck-up of MBR):
Requires two hard disks!
Requires two hard disks!
Make room at
the beginning of the second (EASUSE
Partition Master is OK, and free). 25 Gigas is a good number, and
more doesn't hurt. By 'making room' I mean creating unallocated
space; resizing your windows partition by amount you need for Linux.
When booting to
start Linux installation (boot-ready USB inserted), in BIOS switch
your hdd's boot order to this second hdd – it should be next after
the 'removable device'=USB, which will be the first, of course. When
already installing/partitioning, put your grub (bootloader) into MBR
of the second device (which should be labeled as hdb or
sdb. Do NOT put it into volume – which is hdb2 or some other
number.
If your install
is successful, and you reboot your machine – without USB-stick and
probably no need to visit BIOS (no stick detected and boot default
goes to next device), you will be greeted with bootloader menu –
which also contains your windows startup option. Now, in future - if
you happen to fuck up your grub conf (not so difficult to do) and
your booloader refuses to boot, you can go to BIOS, swap your Windows
drive back as a first boot drive – and you can start you old pal
Windows and contemplate over the sad fate that have befallen on
you... and you still have a working operating system and can google
for help.
(General info:
Google: 'Linux partitions'. Or
look here, the page has also strong, suggestive colors, as a
bonus.)
Then I tried to understand what
'distro' means and what desktop environment (DE) means.
I read some reviews and comparisons
of distros. And came to somewhat fuzzy and unsure conclusion that
good point to start is Ubuntu family... No, not really – it was
probably a fluke that I started with Linux
Mint. Or that Mint's home page is pleasantly info-rich. I mean it
actually contains info, tutorials and has lively forum. As
opposed to many pages that seem to be a poetry-like lines of laconic
statements of releases. Shit, some of them doesn't have even md5 sum
to check... Which is the number that tells you if your downloaded ISO
is exactly the same that you started with (no errors).
In Windows
command line: md5sum.exe yourISOname.iso. Wait. Number appears. If
it's the same as the one you copied from download page for checking,
you are golden.
Windows version
you have to download. In Linux, md5sum is – it is told – already
included in most distros. Usage is the same. But do 'man md5sum' if
sillily curious.
Oh, and there are 'live' images' and
there are 'normals' for stright installation. The first one boots to
live environment so the victim can take a look how the environment
will look and work. Live loads all stuff into memory, and does not
touch your precious hard drives.
DE – Desktop Environment
(overview,
and another
one): Well, bunch of things that make colorful and usable (in
idea at least) desktop for us to play on. There are 4 bigger (more
users) ones – Gnome, KDE, XFCE and LXDE. And several lesser ones:
newcomers Razor-qt, Cinnamon and Mate, then nerdy boxen (Fluxbox,
Openbox), freaky Enlightenment, and almost dead old ones. Google for
whole zoo... there was somewhere big sad table of the past and
present.
Ah, yes, almost forgot – distros –
distributions, really – are all those different names and flavors
that inhabit Linux ecosystem. Like Linux Mint, Mageia Linux, Red HatEnterprise Linux, SolusOs, Ubuntu and so on.
There are hundreds of them. Choice
and freedom? Yes – but for developers only in many cases. Most of
distros are marginal for different reasons – they lack support,
documentation, real development... they install and work only
occasionally and through huge effort... and bagful of bugs are
quaranteed. Not so much choice for a dumbuser who wants just to use
operational system. When googling about things-Linux I found several
times opinions that Linux is not meant for feebleminded normal users.
Fortunately for us morons, there also are distros that have fallen to
that shameful 'user' level.
So, installing it will be in next chapter.
So, installing it will be in next chapter.
Subscribe to:
Posts (Atom)