FreeBSD 9-R pxeboot fails with 'Mounting root filesystem rw failed'...

2012-03-01 Thread Karl Pielorz

Hi,

I've got a 9.0-R amd64 system I'm trying to netboot / pxeboot from the 
network, to install other machines (and do fixups etc.)


I set this up as we setup previous versions here - but setting up a tftp 
server, and nfs server - and 'dumping' the contents of the install CD to a 
directory on the dhcp server, which is exported via nfs (it's exported as 
read/write).


The system kind of boots, but falls over with:


Interface em0 IP-Address 192.168.0.47 Broadcast 192.168.0.255
Entropy harvesting: interrupts ethernet point_to_pick kickstart.
Starting file system checks:
mount_nfs: no host:dirpath nfs-name
Mounting root filesystem rw failed, startup aborted
ERROR: ABORTING BOOT (sending SIGTERM to parent)!
Mar  1 118:10 init: /bin/sh on /etc/rc terminated abnormally, going to 
single user mode

Enter full pathname of shell or RETURN for /bin/sh:


It looks like it's failing to 'remount' / promote the root file system as 
read/write (It's definitely exported as read/write - I've tested it by 
mounting it on another machine). If you start a shell at this point and run 
mount, you get:



192.168.0.37:/usr2/netboot/os/9.0-amd64 on / (nfs, read-only)
devfs on /dev (devfs, local, multilabel)


Is there something I have to set (e.g. in '/etc/rc.conf') in order to fix 
this?


Previous systems setup this way would always boot through to the sysinstall 
menu.



Thanks,

-Karl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD 9-R pxeboot fails with 'Mounting root filesystem rw failed'...

2012-03-01 Thread egoitz
Take a look at freebsd-hackers mailing list... I have suggested some
change in some Makefile and sh script in order to unless at this moment to
be able to have an unattended system built with sysinstall (the idea I
think it was to maintain sysinstall in 9.0 unless) and using you're
install.cfg At freebsd-hackers seems that people is pretty busy and
can't look at this in order for committing or unless saying something
about it... perhaps they're working on another thing or so, or don't know
I assume they can't check this now... but like changes are not
significant... I am going to do with the changes suggested and have tested
and release builts fine and you can use Jumpstart without issues.. this
way...

So I recomend you reading last mails of mine in freebsd-hackers...

Hope it helps,
Bye!

El Jue, 1 de Marzo de 2012, 11:24 am, Karl Pielorz escribió:
 Hi,


 I've got a 9.0-R amd64 system I'm trying to netboot / pxeboot from the
 network, to install other machines (and do fixups etc.)

 I set this up as we setup previous versions here - but setting up a tftp
 server, and nfs server - and 'dumping' the contents of the install CD to a
  directory on the dhcp server, which is exported via nfs (it's exported
 as read/write).

 The system kind of boots, but falls over with:


 
 Interface em0 IP-Address 192.168.0.47 Broadcast 192.168.0.255
 Entropy harvesting: interrupts ethernet point_to_pick kickstart.
 Starting file system checks:
 mount_nfs: no host:dirpath nfs-name
 Mounting root filesystem rw failed, startup aborted
 ERROR: ABORTING BOOT (sending SIGTERM to parent)!
 Mar  1 118:10 init: /bin/sh on /etc/rc terminated abnormally, going to
 single user mode Enter full pathname of shell or RETURN for /bin/sh:
 


 It looks like it's failing to 'remount' / promote the root file system as
  read/write (It's definitely exported as read/write - I've tested it by
 mounting it on another machine). If you start a shell at this point and
 run mount, you get:

 
 192.168.0.37:/usr2/netboot/os/9.0-amd64 on / (nfs, read-only)
 devfs on /dev (devfs, local, multilabel) 


 Is there something I have to set (e.g. in '/etc/rc.conf') in order to fix
  this?

 Previous systems setup this way would always boot through to the
 sysinstall menu.


 Thanks,


 -Karl
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD 9-R pxeboot fails with 'Mounting root filesystem rw failed'...

2012-03-01 Thread Karl Pielorz


--On 01 March 2012 11:53 +0100 ego...@ramattack.net wrote:


So I recomend you reading last mails of mine in freebsd-hackers...

Hope it helps,
Bye!


For what it's worth - I've resolved the issue I had (which was basically 
the system booted, but failed trying to re-mount root as RW, and hence 
wouldn't go into the installer).


The fix I did was to change the '/etc/fstab' on the Netboot server (i.e. 
the copy of FreeBSD that you're booting).


It contains:


/dev/iso9660/FREEBSD_INSTALL / cd9660 ro 0 0


Just commenting out that line, i.e.


#/dev/iso9660/FREEBSD_INSTALL / cd9660 ro 0 0


Means the boot now completes, and I get offered the Install / Shell / Live 
CD prompt, instead of an error about not being able to remount root.


I've yet to complete an install this way (so far we're just using a script 
to extract the new 9.x style '.txz' files).


But that little change does let us netboot correctly now, enough for what 
we need.


-Karl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD 9-R pxeboot fails with 'Mounting root filesystem rw failed'...

2012-03-01 Thread egoitz
In the new way of booting... you need to have the cd because the own 
cd is the root filesystem... and in fact is live filesystem too so 
unless you're booting from mfsroot... I assume you should have that line 
in /etc/fstab inside the iso image but if you're using mfsroot... I 
really even am not creating etc dir inside the iso image... because it's 
not needed and in previous releases and iso images when always booted 
from mfsroot (and where not livefs cds and so) it wasn't necessary...




On Thu, 01 Mar 2012 12:43:58 +, Karl Pielorz wrote:

--On 01 March 2012 11:53 +0100 ego...@ramattack.net wrote:


So I recomend you reading last mails of mine in freebsd-hackers...

Hope it helps,
Bye!


For what it's worth - I've resolved the issue I had (which was
basically the system booted, but failed trying to re-mount root as 
RW,

and hence wouldn't go into the installer).

The fix I did was to change the '/etc/fstab' on the Netboot server
(i.e. the copy of FreeBSD that you're booting).

It contains:


/dev/iso9660/FREEBSD_INSTALL / cd9660 ro 0 0


Just commenting out that line, i.e.


#/dev/iso9660/FREEBSD_INSTALL / cd9660 ro 0 0


Means the boot now completes, and I get offered the Install / Shell
/ Live CD prompt, instead of an error about not being able to 
remount

root.

I've yet to complete an install this way (so far we're just using a
script to extract the new 9.x style '.txz' files).

But that little change does let us netboot correctly now, enough for
what we need.

-Karl


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org