how to get /dev to be a tmpfs and get populated at boot by udev?
Hi, I am trying to boot a suse client with nfsroot. The Suse client is diskless which is why I need it to boot from a server with nfsroot("/") readonly. Everything seems to be working fine except for udev. When the client boots it complains about /dev being read only. I need /dev to be entirely a tmpfs and to get populated at boot time by udev. I changed this line in /etc/init.d/boot.localfs: echo "Mounting local file systems..." mount -fv -t proc proc /proc mount -fv -t sysfs sysfs /sys mount -fv -t tmpfs tmpfs /dev ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mount -fv -t tmpfs tmpfs /dev/shm rc_status but that did not work. I still get the message that /dev is read only here is the boot message: Mounting local file systems... proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) tmpfs on /dev type tmpfs (rw) devpts on /dev/pts type devpts (rw,mode=0620,gid=5) done Starting udevd touch: cannot touch `/dev/devperms': Read-only file system Can anyone point me in the right direction or have any idea how to get /dev to be a tmpfs and get populated by udev at boot? Thanks Rene -- - -- Rene Salmon Tulane University Center for Computational Science Richardson Building 310 New Orleans, LA 70118 http://www.ccs.tulane.edu Tel 504-862-8393 Fax 504-862-8392
hi, [[[ $ grep TMPFS /etc/sysconfig/* ; head -n 1 /etc/SuSE-release /etc/sysconfig/kernel:DEV_ON_TMPFS="yes" SUSE LINUX 10.0 (i586) OSS ]]] [[[ $ grep tmpfs * ; head -n 1 /etc/SuSE-release boot:# mount tmpfs on /dev if not already done by initramfs boot: if test "$dir" = "/dev" -a "$type" = "tmpfs"; then boot: echo -n "Mounting tmpfs at /dev" boot: mount -n -t tmpfs -o mode=0755 udev /dev boot.localfs:openSUSEmount -fv -t tmpfs udev /dev boot.localfs:openSUSE tmpfs) umount -t tmpfs $fs ;; boot.localfs:openSUSEumount -avt noproc,nonfs,nonfs4,nosmbfs,nocifs,notmpfs || { SUSE LINUX 10.0.42 (X86-64) OSS Beta5 ]]] hope this helps darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
Hi, Thank you I will give it a try on my SUSE 10.0 box. Any clues on getting this working on SUSE 9.3? Thanks Rene Marcus Rueckert wrote:
hi,
[[[ $ grep TMPFS /etc/sysconfig/* ; head -n 1 /etc/SuSE-release /etc/sysconfig/kernel:DEV_ON_TMPFS="yes" SUSE LINUX 10.0 (i586) OSS ]]]
[[[ $ grep tmpfs * ; head -n 1 /etc/SuSE-release boot:# mount tmpfs on /dev if not already done by initramfs boot: if test "$dir" = "/dev" -a "$type" = "tmpfs"; then boot: echo -n "Mounting tmpfs at /dev" boot: mount -n -t tmpfs -o mode=0755 udev /dev boot.localfs:openSUSEmount -fv -t tmpfs udev /dev boot.localfs:openSUSE tmpfs) umount -t tmpfs $fs ;; boot.localfs:openSUSEumount -avt noproc,nonfs,nonfs4,nosmbfs,nocifs,notmpfs || { SUSE LINUX 10.0.42 (X86-64) OSS Beta5 ]]]
hope this helps
darix
-- - -- Rene Salmon Tulane University Center for Computational Science Richardson Building 310 New Orleans, LA 70118 http://www.ccs.tulane.edu Tel 504-862-8393 Fax 504-862-8392
Hi, I have installed suse 10.0 and have this set: /etc/sysconfig/kernel:DEV_ON_TMPFS="yes" But as far as I can tell "/dev" is still not a tmpfs file system. If I do a df on the server I get this: /root# df -a Filesystem 1K-blocks Used Available Use% Mounted on rootfs 117206592 1651936 115554656 2% / 10.0.0.10:/scratch/onesis/suse-10 117206592 1651936 115554656 2% / /dev/ram 10240 112 10128 2% /ram proc 0 0 0 - /proc sysfs 0 0 0 - /sys devpts 0 0 0 - /dev/pts tmpfs 1028024 0 1028024 0% /dev/shm usbfs 0 0 0 - /proc/bus/usb The root filesystem "/" is mounted as a read-only file system which is why I need "/dev" to be a tmpfs. Any ideas as to why "/dev" is not being mounted as tmpfs on opensuse 10? thank you Rene Marcus Rueckert wrote:
hi,
[[[ $ grep TMPFS /etc/sysconfig/* ; head -n 1 /etc/SuSE-release /etc/sysconfig/kernel:DEV_ON_TMPFS="yes" SUSE LINUX 10.0 (i586) OSS ]]]
[[[ $ grep tmpfs * ; head -n 1 /etc/SuSE-release boot:# mount tmpfs on /dev if not already done by initramfs boot: if test "$dir" = "/dev" -a "$type" = "tmpfs"; then boot: echo -n "Mounting tmpfs at /dev" boot: mount -n -t tmpfs -o mode=0755 udev /dev boot.localfs:openSUSEmount -fv -t tmpfs udev /dev boot.localfs:openSUSE tmpfs) umount -t tmpfs $fs ;; boot.localfs:openSUSEumount -avt noproc,nonfs,nonfs4,nosmbfs,nocifs,notmpfs || { SUSE LINUX 10.0.42 (X86-64) OSS Beta5 ]]]
hope this helps
darix
-- - -- Rene Salmon Tulane University Center for Computational Science Richardson Building 310 New Orleans, LA 70118 http://www.ccs.tulane.edu Tel 504-862-8393 Fax 504-862-8392
participants (2)
-
Marcus Rueckert
-
Rene Salmon