LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-10-2003, 08:12 AM   #1
Eric Garib
LQ Newbie
 
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
Partition Info /, /usr, ext2


I'm learning Linux and am trying to install Mandrake but I don't understand how to make partitions and what /usr, var, /boot and how to make partitions as far as choosing type, mount, and all others if there is a link for a website showing help of this nature please reply.
 
Old 07-10-2003, 10:58 AM   #2
cav
Member
 
Registered: Feb 2003
Location: Chicago
Distribution: Slackware 10.2
Posts: 154

Rep: Reputation: 30
If youre just starting out, probably the easiest way to partition is:

-twice your RAM size for swap partition
-give the rest to /

This isnt the most secure, but for someone just starting out it is fine, especially since youll end up trying different distros in the future. You can get more advanced with partitioning over time.

Just do a google search for something like 'linux partitioning' and youll come up with gobs of sites.
 
Old 07-10-2003, 11:19 AM   #3
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

Rep: Reputation: 157Reputation: 157
NOOOOOOOOO

You are right in terms of making the swap 2x the size of the RAM,... up to about 512MB as a cap.

As for giving the rest all to "/"...

NOOOOOOOOO

At the very least the /home partition should be its own partition. This is where you will be putting your user data so err on the side of being generous here. Things like WineX like to install Windoze programs in the users subdirectory

If you ever have to re-install the OS, you will thank me for having you make /home a seperate partition, because you can (in expert mode) re-install without re-formatting this partition and keep ALL of your user data (documents, mp3s, pictures, desktop settings, game save files, etc.)

Also,...

/usr should be its own partition - you should also be generous here as well, as this is where you will be installing most of your apps...

/var, /dev and the rest can be left to go with the root partition ( / ) on a home computer or desktop machine.

You don't have to bee too generous to the root partition. The kernal, system settings and variables go there. They don't generally take up as much room as you would think.

I have an 80 GB HD.
It is partitioned as follows:
6 GB to root (ReiserFS)
1.1 GB Swap (I know I said 512 MB, but otherwise I couldn't see the "s" in swap)
25 GB for /usr (ReiserFS)
27 GB for /home (ReiserFS)
14 GB for a FAT32 partition I call /mnt/windoze

I use ReiserFS because it's a journalized file system and a little more robust than EXT3
Don't use EXT2 unless you really need access to the partitioning through a program like Partition Magic.
With Mandrake 9.1 and the diskdrake utility, you shouldn't need Partition Magic for anything
 
Old 07-10-2003, 11:56 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Sorry JaseP but I've gotta disagree. Yes, you are correct, but we are talking about newbies. They don't know what they want to do with their system yet. In a month or 2, they might decide that they want to run a mail server. All of a sudden, / is at 100% yet /usr is still sitting in a nice cool 2%

Nah, I gotta agree with cav here. Choose your swap size, then give all the rest to /
Yes, if the need arises to reinstall, they'll lose anything they didn't backup on external media (such as CDRW) but they won't have to go through the task of resizing (which seems to lead a lot of newbies to the ultimate task of reinstalling).

It's really a good argument to say that having /home and /usr on seperate partitions will help em, but I must say if there is going to be ANY other partitions than swap and / it should only be a seperate one for "data" in general, and not a standard linux directory, something like /mnt/data

Just my 2 cents

Cool
 
Old 07-10-2003, 11:58 AM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
# Linux filesystem structure
Directory Navigation Help File
Filesystems, Directories, and Devices Help File
Proper Filesystem Layout

# Mandrake links
Mandrake home page
Mandrake Users website
Easy urpmi config for Mandrake
urpmi mini-HOWTO
Easy software management: Red Carpet
Maximum RPM
rpmfind
You didn't install the developmental packages? As root, command:
urpmi gcc
An Introduction to the Midnight Commander. You can install it by commanding:
urpmi mc
Midnight Commander home page

My partitioning scheme:
Code:
root@uilleann # fdisk -l

Disk /dev/hdc: 255 heads, 63 sectors, 9729 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1             1      9729  78148161   83  Linux

Disk /dev/hda: 255 heads, 63 sectors, 4865 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1      1217   9772056    c  Win95 FAT32 (LBA)
/dev/hda2          1217      1229     99855   83  Linux
/dev/hda3          1230      1676   3590527+  83  Linux
/dev/hda4          1677      4865  25615642+   5  Extended
/dev/hda5          1677      1742    530113+  82  Linux swap
/dev/hda6          1743      2189   3590496   83  Linux
/dev/hda7          2190      2636   3590496   83  Linux
/dev/hda8          2637      3751   8956206   83  Linux
/dev/hda9          3752      4865   8948173+  83  Linux
My /etc/fstab
Code:
/dev/hda6	/               reiserfs	defaults	1 1
dev/hda2        /boot           ext3		defaults	1 2
none            /dev/pts        devpts		gid=5,mode=620  0 0
/dev/hda8	/home           reiserfs	defaults	1 2
#/dev/hda3	/mnt/gentoo     reiserfs	defaults	1 2
#/dev/hda7	/mnt/mandrake   ext3		defaults	1 2
/dev/hda1	/mnt/winc	vfat		defaults	0 0
#/dev/hdb1	/mnt/wind	vfat		defaults	0 0
none            /proc           proc		defaults	0 0
none            /dev/shm        tmpfs		defaults	0 0
/dev/hdc1	/pub            ext3		defaults	1 2
/dev/hda9	/snd            reiserfs	defaults	1 2
/dev/hda5	swap            swap		defaults	0 0
/dev/fd0        /mnt/floppy     auto		noauto,owner    0 0
/dev/cdrom	/mnt/cdrom	iso9660		noauto,owner,ro 0 0

Last edited by fancypiper; 07-10-2003 at 12:06 PM.
 
Old 07-10-2003, 12:03 PM   #6
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

Rep: Reputation: 157Reputation: 157
Quote:
Originally posted by MasterC
Sorry JaseP but I've gotta disagree. Yes, you are correct, but we are talking about newbies. They don't know what they want to do with their system yet. In a month or 2, they might decide that they want to run a mail server. All of a sudden, / is at 100% yet /usr is still sitting in a nice cool 2%

....

It's really a good argument to say that having /home and /usr on seperate partitions will help em, but I must say if there is going to be ANY other partitions than swap and / it should only be a seperate one for "data" in general, and not a standard linux directory, something like /mnt/data

Just my 2 cents

Cool
I can see your point, and It's what I did when I first started using Linux. I was afraid of partitions. But Most new users aren't thinking of setting up mail servers. They are getting to know the system as a desktop system. If you want a mail-server, I would say re-install and re-tool specifically for that.

I'm just suggesting making /home seperate because the first bad thing that happened to me is that I screwed up my root partition some-how and ended up losing all my user data for both me and my wife. After than I became and advocate of partitioning.

So I can see where you are coming from, I just don't agree. I think a newbie is better served with at least a seperate /home partition.
 
Old 07-10-2003, 12:14 PM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Fair enough, the problem lies in that you'll (as the newbie, not you as JaseP) will be faced with then creating the 2 new users again. At which time, if you don't create the same users, or have the same UID, then file ownership will become problematic (uid 501 used to be user1 now it's user2). That's why I usually recommend a /mnt/data if anything. Sharing a /home across 2 distros isn't a good idea for the same reason, linux uses a naming convention for ease of use, but if you look at the guts, all files are owned to a UID not a name It's kind of like the DNS thing for the internet.

Cool
 
Old 07-10-2003, 12:17 PM   #8
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

Rep: Reputation: 157Reputation: 157
Quote:
Originally posted by MasterC
...At which time, if you don't create the same users, or have the same UID, then file ownership will become problematic (uid 501 used to be user1 now it's user2). That's why I usually recommend a /mnt/data if anything. Sharing a /home across 2 distros isn't a good idea for the same reason, linux uses a naming convention for ease of use, but if you look at the guts, all files are owned to a UID not a name It's kind of like the DNS thing for the internet.

Cool
I see your point,... but you can always do a file dump to the new user and cahnge the permissions to fit the new user's ID...

Most people won't go to the trouble of doing back-ups (which I can attest to).
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Format A Partition Into Ext2 ? Help lemon_hou Linux - Hardware 1 04-27-2004 04:30 AM
Fear of resizing ext2 partition Newman_SCO Linux - Newbie 7 12-03-2003 04:25 PM
ext2 partition screwed? LGBR Linux - General 4 08-03-2003 08:27 PM
how to resize a ext2 partition? Thievery Linux - Newbie 3 03-21-2002 05:19 AM
Resizing an Ext2 partition PuterFreaK Linux - General 8 03-15-2002 12:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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