Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506086 - sys-fs/eudev can't mount udev on /dev
Summary: sys-fs/eudev can't mount udev on /dev
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-28 15:19 UTC by ayaka
Modified: 2014-03-30 12:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ayaka 2014-03-28 15:19:18 UTC
It is 1.3 in buildroot

Reproducible: Always

Steps to Reproduce:
1.mount
2. mount -t udev udev /dev
3. /etc/init.d/S10udev start
4. mount
5. mount -t udev udev /dev

Actual Results:  
[root@kyou ~]# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext4 (rw,relatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=489840k,nr_inodes=122460,mode=755)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
tmpfs on /tmp type tmpfs (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
[root@kyou ~]# mount -t udev udev /dev
mount: mounting udev on /dev failed: No such device 
[root@kyou ~]# /etc/init.d/S10udev start
Populating /dev using udev: done
[root@kyou ~]# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext4 (rw,relatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=489840k,nr_inodes=122460,mode=755)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
tmpfs on /tmp type tmpfs (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
[root@kyou ~]# mount -t udev udev /dev
mount: mounting udev on /dev failed: No such device



Does eudev need devtmpfs and auto mount it?
I have enabled them as without it I can't mount /dev at all.
But the udev from systemd seems doesn't need it.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-28 16:20:00 UTC
(In reply to ayaka from comment #0)
> Does eudev need devtmpfs and auto mount it?

Yes.

> I have enabled them as without it I can't mount /dev at all.
> But the udev from systemd seems doesn't need it.

Both sys-fs/udev (bug #463475) and sys-fs/eudev have a pkg_setup() check that warns you when CONFIG_DEVTMPFS is not enabled in your current kernel.

sys-kernel/gentoo-sources defaults to having it enabled (bug #455880)

*** This bug has been marked as a duplicate of bug 408947 ***
Comment 2 ayaka 2014-03-29 07:16:08 UTC
(In reply to Jeroen Roovers from comment #1)
> (In reply to ayaka from comment #0)
> > Does eudev need devtmpfs and auto mount it?
> 
> Yes.
> 
> > I have enabled them as without it I can't mount /dev at all.
> > But the udev from systemd seems doesn't need it.
> 
> Both sys-fs/udev (bug #463475) and sys-fs/eudev have a pkg_setup() check
> that warns you when CONFIG_DEVTMPFS is not enabled in your current kernel.
> 
> sys-kernel/gentoo-sources defaults to having it enabled (bug #455880)
> 
> *** This bug has been marked as a duplicate of bug 408947 ***

No, I have enabled devtmpfs. The problem is not about devtmpfs, but udev,
eudev can't replacee devtmpfs in /dev.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2014-03-29 11:48:25 UTC
(In reply to ayaka from comment #0)
> It is 1.3 in buildroot
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1.mount
> 2. mount -t udev udev /dev

Don't do that.

> 5. mount -t udev udev /dev

Again, wrong command line.

> devtmpfs on /dev type devtmpfs
> (rw,relatime,size=489840k,nr_inodes=122460,mode=755)

Looks good.

> [root@kyou ~]# mount -t udev udev /dev
> mount: mounting udev on /dev failed: No such device

Don't do that.

I don't see any problems mentioned in the bug, reclose as INVALID
Comment 4 ayaka 2014-03-30 12:57:13 UTC
S(In reply to ayaka from comment #2)
> (In reply to Jeroen Roovers from comment #1)
> > (In reply to ayaka from comment #0)
> > > Does eudev need devtmpfs and auto mount it?
> > 
> > Yes.
> > 
> > > I have enabled them as without it I can't mount /dev at all.
> > > But the udev from systemd seems doesn't need it.
> > 
> > Both sys-fs/udev (bug #463475) and sys-fs/eudev have a pkg_setup() check
> > that warns you when CONFIG_DEVTMPFS is not enabled in your current kernel.
> > 
> > sys-kernel/gentoo-sources defaults to having it enabled (bug #455880)
> > 
> > *** This bug has been marked as a duplicate of bug 408947 ***
> 
> No, I have enabled devtmpfs. The problem is not about devtmpfs, but udev,
> eudev can't replacee devtmpfs in /dev.

(In reply to Samuli Suominen from comment #3)
> (In reply to ayaka from comment #0)
> > It is 1.3 in buildroot
> > 

> Again, wrong command line.
[root@kyou ~]# udevadm trigger --type=subsystems --action=add
[root@kyou ~]# udevadm trigger --type=devices --action=add
[root@kyou ~]# udevadm settle --timeout=60
[root@kyou ~]# mount -n -t devtmpfs -o "exec,nosuid,mode=0755,size=10M" udev /dev
mount: mounting udev on /dev failed: Device or resource busy
I think this time it is the correct command line
And I have tried 
[root@kyou ~]# echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
[root@kyou ~]# udevadm trigger
it doesn't work either.
> 
> Looks good.
> 
no, I think the correct result shall like this 
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=122460,mode=755)
but it is 
devtmpfs on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=122460,mode=755)
now
> 
> I don't see any problems mentioned in the bug, reclose as INVALID
The problem is that udev doesn't take manage of /dev