Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Static /dev Sysem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43015
Location: 56N 3W

PostPosted: Fri Sep 20, 2013 12:41 pm    Post subject: Static /dev Sysem Reply with quote

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
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5618
Location: Removed by Neddy

PostPosted: Fri Sep 20, 2013 1:10 pm    Post subject: Reply with quote

from the src.

/* Prefer to open with O_NOCTTY and use fstat, but fall back
on using "stat", in case the file is unreadable. */
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5618
Location: Removed by Neddy

PostPosted: Fri Sep 20, 2013 1:11 pm    Post subject: Reply with quote

wait, thats for the files. For the actual device it seems to read from /dev
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43015
Location: 56N 3W

PostPosted: Fri Sep 20, 2013 1:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3848
Location: Dallas area

PostPosted: Sat Sep 21, 2013 9:08 am    Post subject: Reply with quote

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.
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43015
Location: 56N 3W

PostPosted: Sun Sep 22, 2013 10:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum