Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rootfs & /dev/root?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Simba7
l33t
l33t


Joined: 22 Jan 2007
Posts: 708
Location: Billings, MT, USA

PostPosted: Sat Mar 13, 2010 3:37 pm    Post subject: rootfs & /dev/root? Reply with quote

I know this topic probably has been covered here.. somewhere.. But here it goes..

I recently rebuilt all my boxes with the latest ~x86 build. They all work perfectly, but I noticed something I've never seen before.

I went to do a "df" and seen this:
Code:
rootfs                56355776    716448  55639328   2% /
/dev/root             56355776    716448  55639328   2% /

Is this normal? I checked with my ol' Portage Server (P233MMX w/kernel 2.6.29) and it's on there, too.
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sat Mar 13, 2010 4:04 pm    Post subject: Reply with quote

Mine looks like this:

Quote:
ronald@Charlie ~ $ df
Bestandssysteem 1K-blokken Gebruikt Beschikbr Geb% Aangekoppeld op
/dev/sda1 15615196 6204312 8617680 42% /
udev 10240 148 10092 2% /dev
/dev/mapper/securehome
59296700 12895224 43389340 23% /home/secure
tmpfs 480284 12 480272 1% /tmp
svcdir 2048 208 1840 11% /var/lib/init.d


How do you boot your kernel? With or without an init? If yes, please show me your init :) .
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Mar 13, 2010 4:33 pm    Post subject: Reply with quote

Rexilion wrote:
Mine looks like this:
tmpfs 480284 12 480272 1% /tmp


lmao, yours looks bork :D

fstab wrote:
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)

/usr/src/linux/Documentation/filesystems/ramfs-rootfs-initramfs.txt wrote:
Rootfs is a special instance of ramfs (or tmpfs, if that's enabled), which is always present in 2.6 systems.


so except if your glibc < 2.2 and kernel < 2.6 you have something wrong

(on a more serious note i suppose just mounting your tmpfs to /dev/shm will correct that)
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sat Mar 13, 2010 5:22 pm    Post subject: Reply with quote

krinn wrote:
lmao, yours looks bork :D


:o you are right, but I thought it was always silently mounted if not specified by /etc/fstab. I added it now, but I can tell you I never had any problems that seem to be fixed by this :) :) :)
Back to top
View user's profile Send private message
Xevious
n00b
n00b


Joined: 25 Dec 2004
Posts: 10

PostPosted: Tue Jul 13, 2010 10:27 am    Post subject: Reply with quote

I have the same problem.

I recently updated some packages (udev,baselayout,sysvinit,openrc, etc...) and it changed the behavior. Here is some example DF output:

Code:

root@gentoo: 12:37 AM :~# df -H
Filesystem             Size   Used  Avail Use% Mounted on
rootfs                 129G    57G    73G  44% /
/dev/root              129G    57G    73G  44% /
rc-svcdir              1.1M   197k   852k  19% /lib/rc/init.d
udev                    11M   181k    11M   2% /dev
tmpfs                   13G      0    13G   0% /dev/shm
/dev/sdd1               36T    17T    20T  46% /data
osol:/data              18T    15T   2.8T  84% /osol
myth:/tv               3.5T   3.4T   142G  96% /myth
myth:/tv/video         750G   730G    20G  98% /myth/video
myth:/tv/video/750     750G   729G    21G  98% /myth/video/750
box:/data              8.9T   7.9T   1.1T  89% /colo
root@gentoo: 12:37 AM :~# ls -lsah /dev/root
0 lrwxrwxrwx 1 root root 4 2010-07-12 17:09 /dev/root -> sdc1
root@gentoo: 12:37 AM :~#


Anyone know how to get the old behavior back?

I am not using an initramfs.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Tue Jul 13, 2010 12:42 pm    Post subject: Reply with quote

it's normal and nothing is wrong there in case you didn't catch it yet.

and if you really don't want that "name change" you already know the solve.
Quote:
updated some packages (udev,baselayout,sysvinit,openrc, etc...) and it changed the behavior
Back to top
View user's profile Send private message
Xevious
n00b
n00b


Joined: 25 Dec 2004
Posts: 10

PostPosted: Tue Jul 13, 2010 9:14 pm    Post subject: Reply with quote

krinn wrote:
it's normal and nothing is wrong there in case you didn't catch it yet.

and if you really don't want that "name change" you already know the solve.
Quote:
updated some packages (udev,baselayout,sysvinit,openrc, etc...) and it changed the behavior


Well more than anything is the problem that root is listed twice and the scripts I have for calculating disk usage over all mounted file-systems are now not accurate and I will have to modify the scripts which is quite annoying.

Unfortunately downgrading the packages isn't really an option. They were no longer in portage and even rsyncing some of the portage dirs from an old comp that did not have an emerge --sync ran on it in a long time and re-installing the old packages caused my machine to no longer boot.

There has to be some way to get rid of this behavior? Does anyone know what specific package caused this change?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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