1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
|
5 |
On 03/12/2010, at 08:23, Harry Putnam wrote: |
6 |
|
7 |
> Can anyone tell me how determine what these kind of useless names |
8 |
> really mean? |
9 |
> |
10 |
> From df -h |
11 |
> Filesystem Size Used Avail Use% Mounted on |
12 |
> rootfs 1.9G 283M 1.6G 15% / |
13 |
> /dev/root 1.9G 283M 1.6G 15% / |
14 |
> |
15 |
> How are you supposed to tell what actual device these things are on. |
16 |
|
17 |
rootfs is a symlink to the device |
18 |
|
19 |
william@Xerxes / $ ls -al /dev/root |
20 |
lrwxrwxrwx 1 root root 4 Oct 31 18:26 /dev/root -> sda3 |
21 |
william@Xerxes / $ df -h |
22 |
Filesystem Size Used Avail Use% Mounted on |
23 |
rootfs 829G 803G 27G 97% / |
24 |
/dev/root 829G 803G 27G 97% / |
25 |
rc-svcdir 1.0M 132K 892K 13% /lib64/rc/init.d |
26 |
udev 10M 304K 9.8M 3% /dev |
27 |
shm 3.0G 24K 3.0G 1% /dev/shm |
28 |
/dev/sdb2 250G 234G 17G 94% /mnt/larry.1 |
29 |
/dev/sdb3 682G 614G 68G 91% /mnt/larry.2 |
30 |
/dev/sda1 31M 26M 3.3M 89% /boot |
31 |
william@Xerxes / $ |
32 |
|
33 |
for example, when using UUID devices, the same is true |
34 |
|
35 |
william@Xerxes / $ ls -al /dev/disk/by-uuid/ |
36 |
total 0 |
37 |
drwxr-xr-x 2 root root 160 Nov 27 10:35 . |
38 |
drwxr-xr-x 6 root root 120 Nov 5 00:10 .. |
39 |
lrwxrwxrwx 1 root root 10 Oct 31 18:26 42f0c22c-dde5-4fbb-9d79-158b14d1faf8 -> ../../sdb2 |
40 |
lrwxrwxrwx 1 root root 10 Oct 31 18:26 7ca26cca-04aa-4fe7-8b1b-5d9b059648a0 -> ../../sda1 |
41 |
lrwxrwxrwx 1 root root 10 Oct 31 18:26 8a444308-a234-4c97-bd91-6e4ead0c5273 -> ../../sda3 |
42 |
lrwxrwxrwx 1 root root 10 Oct 31 18:26 b5af92b2-0e55-4b08-9c7f-ff2124c53921 -> ../../sdb1 |
43 |
lrwxrwxrwx 1 root root 10 Oct 31 18:26 cc02ce4e-3761-4084-ba82-d78b0c2cb636 -> ../../sda2 |
44 |
lrwxrwxrwx 1 root root 10 Oct 31 18:26 edf30a91-be1a-47ce-9c4a-d6ad89f94ee9 -> ../../sdb3 |
45 |
william@Xerxes / $ |
46 |
|
47 |
They are all just symlinks that are generated by udev. |
48 |
|
49 |
|
50 |
> |
51 |
> I know I can look in fstab... but that is something of a crap shoot |
52 |
> since it is user configured. |
53 |
|
54 |
So? It should not be touchable by human hands unless they have root. The only way this would change is if someone changed it, and you can easily track who with sudo and modification times etc. |
55 |
|
56 |
> |
57 |
> So what commands will show real devices not makebelieve baloney, and |
58 |
> allow me to see the usage devices are put to? |
59 |
|
60 |
Next time ask nicely. What is so hard about saying "Im a bit lost, how do i find the device that this points to". |
61 |
|
62 |
> |
63 |
> Why do we use these kind of names anyway? |
64 |
|
65 |
It allows for dynamic configurations of things, and some other voodoo that can be done. For example, you can if using UUID's move all your disks in their sata ports, and not affect your system's mounts because root will point at the device as listed in the UUID section. |
66 |
|
67 |
> |
68 |
> fdisk yes, but you can't tell what usage the devices are put to with that. |
69 |
> |
70 |
> |
71 |
> |
72 |
|
73 |
William Brown |
74 |
|
75 |
pgp.mit.edu |
76 |
|
77 |
|
78 |
|
79 |
-----BEGIN PGP SIGNATURE----- |
80 |
Version: GnuPG/MacGPG2 v2.0.16 (Darwin) |
81 |
|
82 |
iQIcBAEBAgAGBQJM+BymAAoJEHF16AnLoz6J/CYP/A06DsfleMXwQubQRpnqpAPH |
83 |
kVD4s8a2rI1RSLodf1hoZt1jo3JH3AivKX0LwRX2u2VWN2qu3blOApT5Tn5m4wBp |
84 |
fU4YZTmZlJfVsZg4TsJttOa2tCssy5m4o0WXFJs1cwqNRn5CpnXrGNysG+a4/a6J |
85 |
nbhG3da0dG5nAyUJ0ySnGwgAzq99vd9Fw/RWAResRgf8xeptHFzNJ7VSjRhi+BaK |
86 |
mqEg8+neD3qCJX/n3qg/PFcZ4DV3/SY1cH8BCiNdnOqHQD9aNw5A0B2DhPfwZVFB |
87 |
vPLkjWrQi4oOi6wVZcze5pwHZyXteHPwIAfJ9y/LS7CEUz0hDwX1FUUcH3kHdjiS |
88 |
DqDrMepmTCZFJWitQcgEdKOowpDJvNs0upMS31de0l1O0iKyk1fFIheiStWw7O9y |
89 |
KJcEacOPjFE6qtLAmPlDjK2xpgNRG6ciF5Ct8Nktp67S8OJa7UhKMMW6YTlVRQEG |
90 |
MEKJvw3DrUtxDuSIHyrAtdKd2jhX352pDxRAVyD6W/4Zt7gMk0zOEXkXnaIqBG/h |
91 |
hlWSk+mTxlws6svE9ElhBFLk00aHYp//LPdQStQgijVAjX2hR/tvaVWr8NTsUEdb |
92 |
8Mzm6Jj7AgdOl4KUxwbk/Yj1j5KubbI/P1M8T1dOroiZ8K1L5VFFufh8n3Siz/U3 |
93 |
qvdZ8nIhHqqaiy3yb8es |
94 |
=Aiw8 |
95 |
-----END PGP SIGNATURE----- |