View previous topic :: View next topic |
Author |
Message |
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54214 Location: 56N 3W
|
Posted: Fri Sep 20, 2013 12:41 pm Post subject: Static /dev Sysem |
|
|
Team,
I've set up a system with a static /dev because I want a way out from under systemd, possibly (e)udev and just to see if it all still works.
It mostly does. However, there is one niggle I have with the output of df
Code: |
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/ssd-olde--root 999320 270428 660080 30% /
/dev/mapper/ssd-olde--usr 10190136 8726824 922640 91% /usr
/dev/mapper/ssd-olde--var 3030800 582208 2274924 21% /var
tmpfs 1641424 108 1641316 1% /run
shm 8207112 0 8207112 0% /dev/shm
cgroup_root 10240 0 10240 0% /sys/fs/cgroup
/dev/mapper/vg-vmware 1056763060 827837416 175222172 83% /home
/dev/shm 8207112 8 8207104 1% /tmp
/dev/mapper/ssd-olde--local 999320 2200 928308 1% /usr/local
/dev/mapper/vg-var 2046355 405065 1532337 21% /usr/portage
/dev/mapper/vg-local 61796348 58272700 361920 100% /usr/portage/distfiles
/dev/shm 8207112 0 8207112 0% /var/tmp/portage |
Where does df get the filesystem names from?
Code: | dev/mapper/vg-vmware 1056763060 827837416 175222172 83% /home | is clearly wrong.
Its /dev/mapper/vg-home that is actually mounted at /home.
Likewise Code: | /dev/mapper/vg-var 2046355 405065 1532337 21% /usr/portage | /dev/mapper/vg-portage is mounted at /usr/portage
The content is all correct, its the output of df thats not.
Keep in mind /dev is static. There is no (e)udev, no DEVTMPFS in the kernel, no auto anything at all. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Fri Sep 20, 2013 1:10 pm Post subject: |
|
|
from the src.
/* Prefer to open with O_NOCTTY and use fstat, but fall back
on using "stat", in case the file is unreadable. */ _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Fri Sep 20, 2013 1:11 pm Post subject: |
|
|
wait, thats for the files. For the actual device it seems to read from /dev _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54214 Location: 56N 3W
|
Posted: Fri Sep 20, 2013 1:17 pm Post subject: |
|
|
Naib,
I thought it used /dev too but how can it get the right content and wrong names if its using the /dev entry for both things?
AAAHHHHH - if it were using symlinks for names and they were pointing to the wrong /dev/dm-X entry ....
All the mounting is done by UUID ... I'll need to poke at that. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6097 Location: Dallas area
|
Posted: Sat Sep 21, 2013 9:08 am Post subject: |
|
|
Glad to see you forging a path that others can follow.
I'm still using udev 171-r6 and when it quits working then I'll go back to the static environment.
Something I'm familiar with from using that type environment up through 2.6 kernels.
Ahh, the good ole days, lol. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54214 Location: 56N 3W
|
Posted: Sun Sep 22, 2013 10:50 am Post subject: |
|
|
Naib,
Thanks for making me think.
I have /dev/dm-X defined are real /dev nodes and /dev/mapper/vg-* also defined as real /dev nodes.
They don't (didn't) point to the same logical volumes ... Oops.
Fixed now. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|