What do you guys think of this partitioning scheme?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What do you guys think of this partitioning scheme?
Hello! I'm considering jumping ship from FreeBSD and coming back to my beloved Slackware, but I would like to get my partitioning and filesystems just right. I've read many guides, but most of them are outdated or have subjective information about the filesystems available now. My laptop has a 160GB hard drive with Windows Vista and a recovery partition on it, leaving approximately 110GB to devote to my open source OS of choice. Here is what I've put together so far:
I was considering using jfs instead of ext4, but jfs development is pretty much dead, and ext4 is much more widely supported (even Google now depends on it and hired the primary developer, so its future is more secure). I'm not too sure about reiserfs because I've heard some pretty nasty stories about it and I'm not sure it would provide much of an advantage if I set /var (or other partitions with small files) to it. I was considering just keeping it simple and doing:
Code:
/ ext4 107.5GB
swap swap 2.5GB
Again, I'm considering using jfs or something else instead of ext4 for /.
Does partitioning my drive further create any real benefit? I've read that it allows for more flexibility and protects vital parts of your system from rogue files or programs in /tmp or /home, but I'm probably not going to change this before I reinstall or just get a new computer, and I would think I'm pretty safe as far as security and stability go since, after all, I am using Slackware, and I don't do anything crazy on my computer. I've also read that it can speed up your system if you choose the correct filesystems for each partition (like reiserfs for /var), but I read all of this from articles that are multiple years old. I wonder if any of it is actually relevant in today's world.
Have you considered using LVM and setting up your partitions as Logical Volumes?
I'm relatively new to it (trying it for the first time with 13.0), but it seems to work great and as near as I can tell offers the best of both worlds: individual partitions for /, /home, /var, /whatever but with the flexibility to arbitrarily resize them as necessary.
/boot has to be on a non-LVM partition, but that's no big deal as it will be small and should be pretty much fire-and-forget.
Interesting. What do you like about JFS and why do you choose it over something like ext4? I used it for a little bit at one point and it was fine. On Arch Linux my system froze and I had to shut it down with the power switch, rendering my system unbootable until I took the cd and did a fsck. That's an annoying little niggle I'd like to avoid, so I was a bit reluctant to use JFS again.
Do you just separate out /home to keep your personal data secure? Honestly I do very little on my laptop except some homework, and Slackware has been extremely stable in the past, so I don't know if that's really necessary for me. Of course, I could be dead wrong (am I?).
Thanks for telling me about LVM! I never really knew what it was for and never thought it was relevant since I only have one hard disk.
Interesting. What do you like about JFS and why do you choose it over something like ext4? I used it for a little bit at one point and it was fine. On Arch Linux my system froze and I had to shut it down with the power switch, rendering my system unbootable until I took the cd and did a fsck. That's an annoying little niggle I'd like to avoid, so I was a bit reluctant to use JFS again.
I'm no expert on filesystems, but I like to use JFS with LVM because it can be safely resized on a running system. I've been using it for years without problems, but feel free to use something else if you don't trust it.
Like I said before, you can't shrink JFS. Also, there's no easy way to defrag JFS. (I think the only way is to backup your data, format, and copy it back) And like you said, JFS development seems dead. So Ext4 may be a better choice for you.
Quote:
Do you just separate out /home to keep your personal data secure? Honestly I do very little on my laptop except some homework, and Slackware has been extremely stable in the past, so I don't know if that's really necessary for me. Of course, I could be dead wrong (am I?).
If you don't care about anything in your /home folder then there's no need to put it on a separate partition. I just keep it separate so I can reinstall without losing my personal data. But like you said Slack is very stable so I may never need to reinstall.
Last edited by piratesmack; 01-25-2010 at 07:45 PM.
I'd be inclined to go all 'ext4' or all 'jfs'. Having too many different filesystem formats in use just complicates recovery. In the past I've used jfs quite happily. This time I switched to ext4 to give it a try out.
JFS is a nice filesystem, but as you've already pointed out, its development has pretty much ceased (OpenSUSE even dropped support for it in 11.2) so sadly it looks as if its days are numbered.
As for your chosen partitioning scheme, it looks reasonable enough, and I used that very scheme quite happily for the last few years.
One more thing: I've noticed that when I boot up from an ext4 partition (using the huge kernel), I get an error message near the beginning of the boot process complaining about EXT3, even though none of my partitions are ext3. What do I need to do when reconfiguring the kernel to make this stop, or is there a way I can fix this without changing the kernel? I wish I could remember the exact error message to tell you, but I haven't had Slack installed for a while.
I would be concerned about making the /tmp filesystem too small. I've run across various programs that could generate some considerably large data files in /tmp through the years, which caused me problems although I was using some pretty small filesystems then. Still, I'm sure there are some DVD burning programs that put temp files in /tmp, which I would imagine could fill it pretty quickly if the image/files you are burning are large.
Sometimes programs give you the ability to relocate temp files, sometimes not. Sometimes they give you the option, but it doesn't work. I was just looking at Brasero, and it doesn't even give you a preferences editing option. There is probably a way of doing it, but it's a PITA I'd rather avoid.
I would be concerned about making the /tmp filesystem too small. I've run across various programs that could generate some considerably large data files in /tmp through the years, which caused me problems although I was using some pretty small filesystems then. Still, I'm sure there are some DVD burning programs that put temp files in /tmp, which I would imagine could fill it pretty quickly if the image/files you are burning are large.
Sometimes programs give you the ability to relocate temp files, sometimes not. Sometimes they give you the option, but it doesn't work. I was just looking at Brasero, and it doesn't even give you a preferences editing option. There is probably a way of doing it, but it's a PITA I'd rather avoid.
I've noticed that kind of thing happens with large packages like texlive. Thankfully, Robby is nice enough to offer an option to set an alternate tmp point for the package building if necessary, but I don't know if everyone will do that. Then again, if the /tmp partition is too large, it's just eating up space.
This is why I'm probably going to just lump it all together on one big ext4 partition
Oh, ok. I actually preferred your first idea, with separate /, /var, /tmp and /home, but if you want to go with one big rootfs, then that's your choice and a lot of people do choose to go that way.
As for the ext3/4 thing with 'huge', I can't help with that as I only ever use generic and an initrd, and besides as this is my first time with ext3/4 I probably wouldn't know anyway.
Oh, ok. I actually preferred your first idea, with separate /, /var, /tmp and /home, but if you want to go with one big rootfs, then that's your choice and a lot of people do choose to go that way.
As for the ext3/4 thing with 'huge', I can't help with that as I only ever use generic and an initrd, and besides as this is my first time with ext3/4 I probably wouldn't know anyway.
I haven't decided yet, so don't just run off! What advantages does having different partitions for those mountpoints offer nowadays? Anything really noticeable or helpful? I then noticed you like to make all of the partitions the same filesystem for the sake of simplification, and I agree with you after reading what kinds of problems may arise from using all sorts of filesystems.
Just a little note: I probably put very little on my /home partition since all I really do are LaTeX documents, pictures, and maybe some other stuff, so I don't mind making my other partitions pretty big to have a nice cushion for when Slackware (and computers in general) start to require more space for the basics.
I do plan to try out VirtualBox and probably dedicate 8-20GB to a guest OS depending on which one, so I'd like to know where this data must reside. If it's in /home, then good. If it's in /usr, / , or something, then I'll just have to resize accordingly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.