How to Defensively Partition Your Hard Drive in Linux
Hardly a day goes by that I don't see a post in Yahoo Answers about how someone installed Linux, messed up the installation beyond repair, and now is facing the possibility of losing all their personal files. This doesn't need to be an issue in Linux, however. In this article I'm going to tell you how you can defensively partition your hard drive in Linux. |
|
|
Comments (14)
Jonquil
Suggestion: include a /tmp partition also.
I concur with the /tmp partition (using tmpfs if possible), but 15 gigs is a bit much for files that aren't intended to survive a reboot.
Apparently gara3987 works with some pretty hefty audio/video files. And with 500GB being about the smallest disk drive you can buy at most computer stores, 15GB is only 3% of the disk space; a small price to pay when running out of temp space could ruin your work.
Q: Are there distributions that automatically clear /tmp when rebooting? I haven't seen any systems do that by default that since I administered an early version of AIX (back in the early/mid '90s).
If I'd written the article, I think I would have recommended using three disks: one smallish disk for the OS (with current disk sizes that'd still give you an ocean of temp space) and disks two and three configured as a RAID 1 and mounted on /home. (I do this for some of other mount points, too, to keep them safely out of the way of an upgrade or reinstallation.) But for the typical computer user new to Linux it's good to let them know that they don't need to put their personal files at risk by using a single partition. IMHO, distributions that automatically do that as part of their "quick" installation option should be shunned.
rnturn wrote:Are there distributions that automatically clear /tmp when rebooting?Any system with /tmp mounted as tmpfs. I'm not sure which distributions use that by default, but it's a trivial edit to /etc/fstab.
Having /tmp on disk is good when some scripts build packages there by default and you don't have a lot of RAM. Apparently you can't build a kernel in 1GB.
By the way,
article wrote:Additionally make sure that you use the same username in the new install as you used in the old install.I don't think this is necessary, but you should create your users in the same order so they will get the right numeric IDs. And if you mess that up or your new distribution starts counting at a different number it's easy enough to fix with a few variations on
chown -R user:group /home/user
partitioning
(edit: /home is linked to /local/users)
greetings, eMBee.
Plus, the Raspberry Pi's CPU is spec'd to load "start.elf" from the SD card's first partition, which must be a FAT partition. That isn't particular to the RPi; it's how Broadcom made it.
Post a comment
A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.
Your message:Sign up and post (it is free) or Log in and post
