Gentoo Archives: gentoo-user

From: Jake Moe <jakesaddress@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] About interpreting output of df -h
Date: Thu, 02 Dec 2010 23:27:00
Message-Id: 4CF82A0E.6070209@gmail.com
In Reply to: Re: [gentoo-user] About interpreting output of df -h by Indexer
1 On 12/03/10 08:24, Indexer wrote:
2 >
3 > On 03/12/2010, at 08:23, Harry Putnam wrote:
4 >
5 > > Can anyone tell me how determine what these kind of useless names
6 > > really mean?
7 >
8 > > From df -h
9 > > Filesystem Size Used Avail Use% Mounted on
10 > > rootfs 1.9G 283M 1.6G 15% /
11 > > /dev/root 1.9G 283M 1.6G 15% /
12 >
13 > > How are you supposed to tell what actual device these things are on.
14 >
15 > rootfs is a symlink to the device
16 >
17 > william@Xerxes / $ ls -al /dev/root
18 > lrwxrwxrwx 1 root root 4 Oct 31 18:26 /dev/root -> sda3
19 > william@Xerxes / $ df -h
20 > Filesystem Size Used Avail Use% Mounted on
21 > rootfs 829G 803G 27G 97% /
22 > /dev/root 829G 803G 27G 97% /
23 > rc-svcdir 1.0M 132K 892K 13% /lib64/rc/init.d
24 > udev 10M 304K 9.8M 3% /dev
25 > shm 3.0G 24K 3.0G 1% /dev/shm
26 > /dev/sdb2 250G 234G 17G 94% /mnt/larry.1
27 > /dev/sdb3 682G 614G 68G 91% /mnt/larry.2
28 > /dev/sda1 31M 26M 3.3M 89% /boot
29 > william@Xerxes / $
30 >
31 > for example, when using UUID devices, the same is true
32 >
33 > william@Xerxes / $ ls -al /dev/disk/by-uuid/
34 > total 0
35 > drwxr-xr-x 2 root root 160 Nov 27 10:35 .
36 > drwxr-xr-x 6 root root 120 Nov 5 00:10 ..
37 > lrwxrwxrwx 1 root root 10 Oct 31 18:26
38 > 42f0c22c-dde5-4fbb-9d79-158b14d1faf8 -> ../../sdb2
39 > lrwxrwxrwx 1 root root 10 Oct 31 18:26
40 > 7ca26cca-04aa-4fe7-8b1b-5d9b059648a0 -> ../../sda1
41 > lrwxrwxrwx 1 root root 10 Oct 31 18:26
42 > 8a444308-a234-4c97-bd91-6e4ead0c5273 -> ../../sda3
43 > lrwxrwxrwx 1 root root 10 Oct 31 18:26
44 > b5af92b2-0e55-4b08-9c7f-ff2124c53921 -> ../../sdb1
45 > lrwxrwxrwx 1 root root 10 Oct 31 18:26
46 > cc02ce4e-3761-4084-ba82-d78b0c2cb636 -> ../../sda2
47 > lrwxrwxrwx 1 root root 10 Oct 31 18:26
48 > edf30a91-be1a-47ce-9c4a-d6ad89f94ee9 -> ../../sdb3
49 > william@Xerxes / $
50 >
51 > They are all just symlinks that are generated by udev.
52 >
53 >
54 >
55 > > I know I can look in fstab... but that is something of a crap shoot
56 > > since it is user configured.
57 >
58 > So? It should not be touchable by human hands unless they have root.
59 > The only way this would change is if someone changed it, and you can
60 > easily track who with sudo and modification times etc.
61 >
62 >
63 > > So what commands will show real devices not makebelieve baloney, and
64 > > allow me to see the usage devices are put to?
65 >
66 > Next time ask nicely. What is so hard about saying "Im a bit lost, how
67 > do i find the device that this points to".
68 >
69 >
70 > > Why do we use these kind of names anyway?
71 >
72 > It allows for dynamic configurations of things, and some other voodoo
73 > that can be done. For example, you can if using UUID's move all your
74 > disks in their sata ports, and not affect your system's mounts because
75 > root will point at the device as listed in the UUID section.
76 >
77 >
78 > > fdisk yes, but you can't tell what usage the devices are put to
79 > with that.
80 >
81 >
82 >
83 >
84 > William Brown
85 >
86 > pgp.mit.edu
87 >
88 >
89 >
90 Out of curiousity, why don't I have a "rootfs" entry? I just have the
91 actual device name. You guys seem to be assuming that having "rootfs"
92 in the list is a normal thing, but it's not in my list?
93
94 jmoe@aus8617 ~ $ df -h
95 Filesystem Size Used Avail Use% Mounted on
96 /dev/sda6 76G 59G 14G 82% /
97 udev 10M 216K 9.8M 3% /dev
98 /dev/sda3 33M 2.9M 28M 10% /boot
99 /dev/sda1 78G 30G 49G 39% /mnt/winxp
100 shm 1.5G 0 1.5G 0% /dev/shm
101 /dev/sda2 78G 60G 18G 78% /mnt/win7
102
103 Jake Moe

Replies

Subject Author
Re: [gentoo-user] About interpreting output of df -h Neil Bothwick <neil@××××××××××.uk>
[gentoo-user] Re: About interpreting output of df -h Harry Putnam <reader@×××××××.com>