Sponsored Content
Full Discussion: Partitions.
Top Forums UNIX for Dummies Questions & Answers Partitions. Post 302503460 by Corona688 on Thursday 10th of March 2011 03:49:04 PM
Old 03-10-2011
In Windows, each drive letter is its own seperate little world. c:\ gets you files under partition 1, d:\ gets you files under partition 2, etc.

In UNIX, all files and partitions are accessed through the same directory tree. The root partition is attached first, at /, and other partitions can be optionally attached to any directories inside /, even ones inside other partitions.

On one of my systems:
Code:
$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdc3            1008M  298M  660M  32% /
udev                   10M  340K  9.7M   4% /dev
/dev/sdc5              20G   12G  7.2G  62% /home
/dev/sdc6             9.9G  4.6G  4.9G  49% /usr
/dev/sdc7             5.6G  735M  4.6G  14% /var
/dev/sdc8             116G  5.0G  111G   5% /var/lib/mysql
shm                   948M     0  948M   0% /dev/shm
/dev/md1p8            394G  301G   74G  81% /opt
/dev/md1p9            1.4T  848G  552G  61% /opt/disk-images
/dev/sdc1              63M   28M   32M  47% /boot

So the root directory exists on the partition /dev/sdc3. If you created a file /randomname, it'd go into sdc3.

"udev" and "shm" are special filesystems handled by the kernel, you can ignore them for the moment.

Anything under /home/ goes into sdc5, so all user directories reside on that partition.

Our mysql database used to reside inside under the /var/ partition, in /var/lib/mysql, but it outgrew it. I had to give /var/lib/mysql its own partition so mysql would have more room.

And so on, and so forth.
This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

raw partitions

i want to know, how do i to create a rwa partttions in unixware 7 wit raid 5 best regards felix arteaga (1 Reply)
Discussion started by: farteaga
1 Replies

2. UNIX for Advanced & Expert Users

partitions

HI. i installed solaris on a x86 machine and i only partition for 4 gig when it suppose to be 8. i only using 4 gig right now how can i start using the other four. please help, thanks in advance Meeh (2 Replies)
Discussion started by: souldier
2 Replies

3. Shell Programming and Scripting

Monitoring partitions

I have a partition that sometimes grows to 100% before the weekly backup and perge can happen. Can someone leade me to a script that will monitor the size of a partition and send me an email when it is over a certain percent? Unix Solarus 8. Thanks (1 Reply)
Discussion started by: PrimeRibAndADew
1 Replies

4. UNIX for Dummies Questions & Answers

Monitoring partitions

Sun Solarus 8. I have a partition that due to some automated processes can fill a partition to 100% before the weekly backup and cleanup process happens. Is there a way I can monitor a partition and send a page or email if the partition gets above 85% full? (2 Replies)
Discussion started by: PrimeRibAndADew
2 Replies

5. UNIX for Dummies Questions & Answers

unix partitions

how to access/sliceing different partions using divvy (1 Reply)
Discussion started by: sobin
1 Replies

6. AIX

Logical Partitions?

I'm trying to find out how many logical partitions our AIX box has. I'm running the command: topas -C and nothing is showing up. Is it safe to say that there is only one LPAR, which is what AIX is installed on? Move to AIX - jim mc (2 Replies)
Discussion started by: NycUnxer
2 Replies

7. Solaris

Problems with partitions

Hi. I newbie in solaris. I have server T2000 with 2 disk on raid. I have partitions: Part Tag Flag Cylinders Size Blocks 0 root wm 825 - 3916 15.00GB (3092/0/0) 31464192 1 swap wu 0 - 824 4.00GB ... (6 Replies)
Discussion started by: burdock
6 Replies

8. UNIX for Advanced & Expert Users

Partitions

Hello masters, Actually, i am user of Ubuntu, but I want to use Debian too. I have a computer with a product key for w7 so i will use too, only for games... The structure I have thought is the next with 1TiB of capacity. Primary: 50 GB NTFS for W7 Extended: Logical: 20 GB FAT32... (3 Replies)
Discussion started by: albertogarcia
3 Replies

9. Solaris

Create new partitions

Hello, Can someone tell me why should i do to resolve this problem? I cant creat the news partitions!! # /etc/init.d/volmgt start volume management starting. # format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c0d0 <DEFAULT cyl 1955 alt 2 hd 255 sec 63> ... (5 Replies)
Discussion started by: herbich1985
5 Replies

10. Red Hat

Partitions necessary in RHEL 6

I had a query as to what are the partitions that should be necessary in RHEL 6. My knowledge says that 1) / 2) /home 3) Swap 4) /boot should be sufficient. But, I am seeing in my production environment which is RHEL 5 that there are partitions also for 1) /var 2) /tmp... (8 Replies)
Discussion started by: RHCE
8 Replies
HD(4)							     Linux Programmer's Manual							     HD(4)

NAME
hd - MFM/IDE hard disk devices DESCRIPTION
The hd* devices are block devices to access MFM/IDE hard disk drives in raw mode. The master drive on the primary IDE controller (major device number 3) is hda; the slave drive is hdb. The master drive of the second controller (major device number 22) is hdc and the slave hdd. General IDE block device names have the form hdX, or hdXP, where X is a letter denoting the physical drive, and P is a number denoting the partition on that physical drive. The first form, hdX, is used to address the whole drive. Partition numbers are assigned in the order the partitions are discovered, and only nonempty, nonextended partitions get a number. However, partition numbers 1-4 are given to the four partitions described in the MBR (the "primary" partitions), regardless of whether they are unused or extended. Thus, the first logi- cal partition will be hdX5. Both DOS-type partitioning and BSD-disklabel partitioning are supported. You can have at most 63 partitions on an IDE disk. For example, /dev/hda refers to all of the first IDE drive in the system; and /dev/hdb3 refers to the third DOS "primary" partition on the second one. They are typically created by: mknod -m 660 /dev/hda b 3 0 mknod -m 660 /dev/hda1 b 3 1 mknod -m 660 /dev/hda2 b 3 2 ... mknod -m 660 /dev/hda8 b 3 8 mknod -m 660 /dev/hdb b 3 64 mknod -m 660 /dev/hdb1 b 3 65 mknod -m 660 /dev/hdb2 b 3 66 ... mknod -m 660 /dev/hdb8 b 3 72 chown root:disk /dev/hd* FILES
/dev/hd* SEE ALSO
chown(1), mknod(1), sd(4), mount(8) COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 1992-12-17 HD(4)
All times are GMT -4. The time now is 05:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy