Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I have 75 gigs that I would like to split and use for Linux. I've done some research on this, but I just want to confirm a few things before I continue.
Should I make ext2 or ext3 partitions?
I can vaguely remember seeing something about a '/' directory and a 'home' directory during the last installation. I chose to install everything to one partition. Now I would like to put the OS on one partition and the programs and everything else on another. How much space should I reserve for the OS, or "home" partition? Or is it called "/"? Grr... Dang confusing programmer terms...
And... I think that's it. If you know of an EASY to read tutorial about this, please post it.
However, your personal help would be greatly appreciated.
Last edited by Cinematography; 05-13-2005 at 07:15 PM.
Here is my Gentoo /etc/fstab which I took the time to figure out exactly what I wanted partition wise:
Code:
# Duron 950 Gentoo uilleann /etc/fstab file: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hdb1 /boot ext3 noauto,noatime 1 2
/dev/hdb3 / ext3 defaults,noatime 0 1
/dev/hdb2 none swap sw 0 0
/dev/hdb5 /usr ext3 defaults,noatime 0 1
/dev/hdb6 /opt ext3 defaults,noatime 0 1
/dev/hdb7 /var ext3 defaults,noatime 0 1
#/dev/hdb8 /mnt/fc1 ext3 defaults,noatime 0 1
#/dev/hdb9 /mnt/debian ext3 defaults,noatime 0 1
#/dev/hdb10 /mnt/fc3 ext3 defaults,noatime 0 1
/dev/hdb11 /home ext3 defaults,noatime 0 1
/dev/hdb12 /pub ext3 defaults,noatime 0 1
#/dev/hdc1 /mnt/wav ext3 defaults,noatime 0 1
#/dev/hdc1 /mnt/backup ext3 defaults,noatime 0 1
#/dev/hdc1 /mnt/fat32 vfat defaults 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
I like to use as much room as I can afford for /home as that is where all your own stuff goes. When you change distros, just choose the expert install and choose not to format the /home partition. I use the /pub partition for sharing between my boxen on my network.
hdc1 is in a removable ide box that fits in one of the 5-1/2" places in the box, just above my DVD-RW drive and 3 drives that I have some important stuff on, like my backups and .wav recordings of my fave music (almost fills another 160 GB drive), plus an 80 gig drive for stuff I need when working on those Microsoft operating systems.
Last edited by fancypiper; 05-13-2005 at 01:40 AM.
On ext3 partitions I'm going to do the following:
* Make one partition that's 5 gigs for my /
* Make one partition that's 70 gigs for my /home
IMHO, don't. Unless you're really, really sure you'll need the 70 gigs for /home and only 5 for /
Don't fall into the trap of thinking you should partition & format the whole drive right at the start. When I first formatted my 80GB drive, it was like this:
/boot = 50mb
/ = 5gb
/home = 5gb
The rest of the drive was untouched. Since / used about 2gig and /home less than one, it would have been pointless adding any other partitions.
And when I wanted to try new distros, I just created a new 5gig partition for the new / and installed it. In fact, I had 4 distros all at once, at one point, and it was never difficult to install them.
Eventually, I switched to gentoo, which tends to need a lot of space because of the source code & the files it generates when compiling, which I don't often bother to delete. So I resized / to 20gig - really easy because I had so much space spare. I also ripped my entire CD collection onto my HD, for which I added a new /mp3 partition.
If I'd paritioned the whole drive at once, this would all have been a big headache. By only making small partitions as & when I needed them, it was blissfully easy to chop & change them as and when I needed to. I still have 20-odd gig unpartitioned, because I have no use for it.
If you don't NEED the space, leave it alone. That way, when you DO need it, it's really easy to put it where you want it. Resizing partitions is a PITA compared to just creating a new one.
/ is where the operating system is installed
/home is where the program files and your data go
the swap partition is for swap stuffs
the boot partition is for the boot stuffs
How about this setup?
/ (5 gig)
/home (69 gig)
/boot (50mb)
swap (512mb)
Thanks a lot for the help with this. I'm almost ready to give Mandrake another try. ^_^ And nice tutorial page, theYinYeti.
almost every program you are going to install if it is not firefox like(unzip and ready to go) will be in /
some you might want less for your home partition and more in /usr unless all you do using few programs and downloading few gigs of music,movies,etc...
Originally posted by mrcheeks almost every program you are going to install if it is not firefox like(unzip and ready to go) will be in /
some you might want less for your home partition and more in /usr unless all you do using few programs and downloading few gigs of music,movies,etc...
How about if I just made a 'programs' directory in my home folder?
I'm almost ready to begin backing up, repartitioning, and reinstalling. I just need to make sure I understand everything first, and learn how to backup my program/os settings.
/home is only for software that you only want that user to have. Everything else goes in the root filesystem so everyone ca use it. /usr/bin is a popular choice. . .
Seriously: Create some small partitions now, leave the rest of the space unused, and then re-partiton a few months down the line when you know where the space will be needed.
So long as you're only making educated guesses about what your space requirements will be, you can gaurantee you won't guess right & will have to re-partition somewhere down the line.
Quote:
How about this setup?
/ (5 gig)
/home (69 gig)
/boot (50mb)
swap (512mb)
Unless you actually have 69 gigs of mp3s or something that you want to keep in your user area, change /home to 5gig and leave the rest as-is. If you really want executables to be on their own partiton (not sure why you would want this tho?, split your / partition into
/ (2gig)
/usr/bin (3 gig)
Last edited by oneandoneis2; 05-13-2005 at 05:51 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.