[mythtv-users] Diskless frontend & debian

Cristo Bolaņos cbolanos at gmail.com
Thu Feb 8 01:55:32 UTC 2007


More infomation... and very interesting, I believe:

dmesg
[...]
VFS: Mounted root (nfs filesystem) readonly.

Right.. why readonly ? :?

2007/2/8, Cristo Bolaņos <cbolanos at gmail.com>:
> Here is my config:
>
> ls -l /tftpboot:
>
> -rw-r--r-- 1 root root   13324 2007-02-04 20:36 pxelinux.0
> drwxr-xr-x 2 root root    4096 2007-02-08 01:33 pxelinux.cfg
> -rw-r--r-- 1 root root 1353944 2007-02-08 01:29 vmlinuz-2.6.20-k7
>
> ls -l /tftpboot/pxelinux.cfg:
> -rw-r--r-- 1 root root 343 2007-02-08 01:33 default
>
> cat /tftpboot/pxelinux.cfg/default:
>
> DISPLAY boot.txt
> DEFAULT mythtv
> LABEL mythtv
>         kernel vmlinuz-2.6.20-k7
>         append root=/dev/nfs nfsroot=192.168.1.2:/diskless/root
> ip=dhcp init=/bin/bash ramdisk_size=64000 rw
> PROMPT 0
> /tftpboot/pxelinux.cfg/default
>
> cat /etc/exports:
>
> # /etc/exports: the access control list for filesystems which may be exported
> #  to NFS clients.  See exports(5).
>
> /diskless/root  192.168.1.0/255.255.255.0(rw,sync,no_root_squash)
>
> kernel config:
>
> #
> # Networking options
> #
> # CONFIG_NETDEBUG is not set
> CONFIG_PACKET=y
> # CONFIG_PACKET_MMAP is not set
> CONFIG_UNIX=y
> # CONFIG_NET_KEY is not set
> CONFIG_INET=y
> CONFIG_IP_MULTICAST=y
> # CONFIG_IP_ADVANCED_ROUTER is not set
> CONFIG_IP_FIB_HASH=y
> CONFIG_IP_PNP=y
> CONFIG_IP_PNP_DHCP=y
> CONFIG_IP_PNP_BOOTP=y
> CONFIG_IP_PNP_RARP=y
> # CONFIG_NET_IPIP is not set
> # CONFIG_NET_IPGRE is not set
> # CONFIG_IP_MROUTE is not set
> # CONFIG_SYN_COOKIES is not set
> # CONFIG_INET_AH is not set
> # CONFIG_INET_ESP is not set
> # CONFIG_INET_IPCOMP is not set
> # CONFIG_INET_XFRM_TUNNEL is not set
> # CONFIG_INET_TUNNEL is not set
> # CONFIG_INET_XFRM_MODE_TRANSPORT is not set
> # CONFIG_INET_XFRM_MODE_TUNNEL is not set
> # CONFIG_INET_XFRM_MODE_BEET is not set
> # CONFIG_INET_DIAG is not set
> # CONFIG_TCP_CONG_ADVANCED is not set
> CONFIG_TCP_CONG_CUBIC=y
> CONFIG_DEFAULT_TCP_CONG="cubic"
> # CONFIG_IPV6 is not set
> # CONFIG_INET6_XFRM_TUNNEL is not set
> # CONFIG_INET6_TUNNEL is not set
> # CONFIG_NETWORK_SECMARK is not set
> # CONFIG_NETFILTER is not set
> # CONFIG_BRIDGE is not set
> # CONFIG_VLAN_8021Q is not set
> # CONFIG_DECNET is not set
> # CONFIG_LLC2 is not set
>
> #
> # Network File Systems
> #
> CONFIG_NFS_FS=y
> CONFIG_NFS_V3=y
> # CONFIG_NFS_V3_ACL is not set
> CONFIG_NFS_DIRECTIO=y
> CONFIG_NFSD=y
> # CONFIG_NFSD_V3 is not set
> CONFIG_NFSD_TCP=y
> CONFIG_ROOT_NFS=y
> CONFIG_LOCKD=y
> CONFIG_LOCKD_V4=y
> CONFIG_EXPORTFS=y
> CONFIG_NFS_COMMON=y
> CONFIG_SUNRPC=y
>
>
>
>
> 2007/2/8, Cristo Bolaņos <cbolanos at gmail.com>:
> > Simply, I don't urderstand too :/
> >
> > I try to mount proc like minimyth but get same error...
> >
> > May be any wrong param in config or kernel...
> >
> >
> > 2007/2/8, Paul Bender <pebender at san.rr.com>:
> > > Cristo Bolaņos wrote:
> > > > I reply my self.
> > > >
> > > > The system is trying to mount /proc over nfs, it needs an initrd.
> > >
> > > I do not know the cause of the problem. However, there should be no need
> > > for an initrd. MiniMyth <http://linpvr.org/minimyth> can diskless boot
> > > with an NFS root partition and no initrd. The /proc related part of the
> > > init script for MiniMyth is:
> > >
> > > # Create /proc.
> > > /bin/mkdir -p /proc
> > > /bin/mount -n -t proc  /proc /proc
> > >
> > >
> > > > 2007/2/7, Cristo Bolaņos <cbolanos at gmail.com>:
> > > >> Right,
> > > >>
> > > >> thanks a lot!! :))
> > > >>
> > > >> Now, the last problem is /proc ... system can't mount it, and I tried
> > > >> with starting /bin/bash and mount /proc but I get the same message:
> > > >>
> > > >> mount: permission denied
> > > >>
> > > >> Which may be the reason ?
> > > >>
> > > >> Thanks.
> > > >>
> > > >> 2007/2/7, Robert Kulagowski <bob at smalltime.com>:
> > > >>> Here's how I'm configured.  Works just fine for my purposes.
> > > >>>
> > > >>> [mythtv at mbe pxelinux.cfg]$ ls -l /tftpboot/
> > > >>> total 3772
> > > >>> -rw-r--r-- 2 root root 1914320 Apr  8  2006 fe1
> > > >>> -rw-r--r-- 1 root root   13100 Apr  9  2006 pxelinux.0
> > > >>> drwxr-xr-x 2 root root    4096 Aug 13 08:49 pxelinux.cfg
> > > >>> -rw-r--r-- 2 root root 1914320 Apr  8  2006 vmlinuz-2.6.15.1
> > > >>>
> > > >>> [mythtv at mbe ~]$ cd /tftpboot/
> > > >>> [mythtv at mbe tftpboot]$ cd pxelinux.cfg/
> > > >>> [mythtv at mbe pxelinux.cfg]$ ls -l
> > > >>> total 20
> > > >>> -rw-r--r-- 1 root root 131 Aug 13 08:49 C0A80A33
> > > >>> -rw-r--r-- 1 root root 146 Apr  8  2006 C0A80A37
> > > >>> -rw-r--r-- 1 root root 136 Apr  8  2006 default~
> > > >>>
> > > >>> [mythtv at mbe pxelinux.cfg]$ cat C0A80A33
> > > >>> LABEL fe1
> > > >>>    KERNEL fe1
> > > >>>    APPEND ip=dhcp nfsroot=192.168.10.52:/nfsroot/fe1,tcp,nfsvers=3
> > > >>> root=/dev/nfs init=/sbin/init
> > > >>>
> > > >>> DEFAULT fe1
> > > >>>
> > > >>> [mythtv at mbe pxelinux.cfg]$ ls -l /nfsroot
> > > >>> total 2783460
> > > >>> -rw-r--r--  1 root root 2847468032 Apr  9  2006 backup.cpio
> > > >>> drwxr-xr-x 23 root root       4096 Apr  9  2006 fe1
> > > >>> drwxr-xr-x  2 root root       4096 Jul  2  2006 fe2
> > > >>> [mythtv at mbe pxelinux.cfg]$ ls -l /nfsroot/fe1
> > > >>> total 88
> > > >>> drwxr-xr-x   2 root root  4096 Nov 25 13:59 bin
> > > >>> drwxr-xr-x   2 root root  4096 Apr  9  2006 boot
> > > >>> drwxr-xr-x   5 root root 12288 Apr  9  2006 dev
> > > >>> drwxr-xr-x   6 root root  4096 Apr  9  2006 dvb
> > > >>> drwxr-xr-x 107 root root  4096 Feb  4 19:19 etc
> > > >>> drwxr-xr-x   3 root root  4096 Apr  9  2006 home
> > > >>> drwxr-xr-x   2 root root  4096 Apr  9  2006 initrd
> > > >>> drwxr-xr-x  13 root root  4096 Apr  9  2006 lib
> > > >>> drwxr-xr-x   2 root root  4096 Apr  9  2006 media
> > > >>> drwxr-xr-x   2 root root  4096 Apr  9  2006 mnt
> > > >>> drwxr-xr-x   3 root root  4096 Apr  9  2006 mythtv
> > > >>> drwxr-xr-x   2 root root  4096 Apr  9  2006 opt
> > > >>> drwxr-xr-x   2 root root  4096 Apr  9  2006 proc
> > > >>> drwxr-xr-x  12 root root  4096 Aug  7  2006 root
> > > >>> drwxr-xr-x   2 root root  4096 Jul 29  2006 sbin
> > > >>> drwxr-xr-x   2 root root  4096 Apr  9  2006 srv
> > > >>> drwxr-xr-x   2 root root  4096 Apr  9  2006 sys
> > > >>> drwxrwxrwt  10 root root  4096 Feb  7 07:38 tmp
> > > >>> drwxr-xr-x  12 root root  4096 Apr  9  2006 usr
> > > >>> drwxr-xr-x  16 root root  4096 Apr  9  2006 var
> > > >>>
> > > >>> [mythtv at mbe pxelinux.cfg]$ cat /etc/exports
> > > >>> /var/myth/ *(rw,sync)
> > > >>> /nfsroot/fe1 fe1(rw,sync,no_root_squash)
> > > >>> [mythtv at mbe pxelinux.cfg]$
> > > >>>
> > > >>>
> > > >>> _______________________________________________
> > > >>> mythtv-users mailing list
> > > >>> mythtv-users at mythtv.org
> > > >>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> > > >>>
> > > > _______________________________________________
> > > > mythtv-users mailing list
> > > > mythtv-users at mythtv.org
> > > > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> > >
> > > _______________________________________________
> > > mythtv-users mailing list
> > > mythtv-users at mythtv.org
> > > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> > >
> >
>


More information about the mythtv-users mailing list