DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Installation and Upgrading

NetBSD Installation and Upgrading Have trouble getting NetBSD on your toaster?

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th February 2011
nihonto nihonto is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 65
Thanked 1 Time in 1 Post
Default NetBSD on external HDD won't boot

Hi there,

today, I've tried to install NetBSD 5.1 on an external USB drive. The third attempt to install the OS finally went through the installation process till its end.

Then I configured Grub2 on the internal HDD to start NetBSD from the external drive. The boot process starts but then suddenly stops (not necessarily at the same position!). After some minutes this message appears:

Quote:
uvm_fault (0xc0b82a00, 0, 1) -> 0xe
fatal page fault in supervisor mode
trap type 6 code 0 eip c0767a89 cs8 eflags 10282 cr2 0 ilevel 4
kernel: supervisor trap page fault, code=0
Stopped in pid 0.39 (system) at netbsd:usb_allocmem+0x49: cmpl 0(%edx), %ebx
db{0}>
Think, it was a bad idea to install NetBSD to an external drive, wasn't it?
Reply With Quote
  #2   (View Single Post)  
Old 27th February 2011
J65nko J65nko is online now
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,245
Thanked 182 Times in 149 Posts
Default

Not necessarily. Now you can report the error on a NetBSD mailing list
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 28th February 2011
nihonto nihonto is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 65
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by J65nko View Post
Not necessarily. Now you can report the error on a NetBSD mailing list
Wasn't necessary. I deleted everything on the external drive and installed NetBSD again. Then the installation went through as well as afterwards the boot process.

Now, I'm struggling with pkg_add that won't install firefox because of some inconsistencies with perl.
Reply With Quote
  #4   (View Single Post)  
Old 28th February 2011
classicmanpro's Avatar
classicmanpro classicmanpro is offline
Real Name: Turea Alexandru Teodor
Fdisk Soldier
 
Join Date: Oct 2010
Location: Romania (SE Europe)
Posts: 49
Thanked 1 Time in 1 Post
Post

I have updated all my packages this weekend without encountering any problems. Maybe you should delete & reinstall Firefox and its dependencies.
__________________
A daemon in need is a daemon indeed.
Reply With Quote
  #5   (View Single Post)  
Old 1st March 2011
nihonto nihonto is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 65
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by classicmanpro View Post
I have updated all my packages this weekend without encountering any problems. Maybe you should delete & reinstall Firefox and its dependencies.
Hmmm, that sounds promising! As far as I can see, the binary packages on the mirror I used were not up to date.

I tried it with pkgin and I get this message when I try to install the firefox:

Quote:
# pkgin install firefox
calculating dependencies for firefox...
/usr/X11R7/lib/libpixman-1.so.0, needed by pango-1.26.2nb2 is not
present in this system.
Maybe it's related to this problem: http://mail-index.netbsd.org/netbsd-...msg006576.html
Reply With Quote
  #6   (View Single Post)  
Old 1st March 2011
classicmanpro's Avatar
classicmanpro classicmanpro is offline
Real Name: Turea Alexandru Teodor
Fdisk Soldier
 
Join Date: Oct 2010
Location: Romania (SE Europe)
Posts: 49
Thanked 1 Time in 1 Post
Post

Here's a nifty trick:

Code:
pkg_add -uuv firefox >& /tmp/update.log
NOTE #1: The >& notation (CSH shell) redirects all the output (stdout and stderr) to a log file so you can analyze the update later.

NOTE #2: There are times (it's very rare) when pkg_add updates all the dependencies but gives an error when updating the leafs (the last packages, like level 1 or 2 leafs). In case it happens, run the command again, it's harmless.

PS: I've made a PHP script this weekend which uses the output from 'pkgdepgraph -o' to create a shell script with one-line calls to pkg_add for each installed package but ordered form the core dependencies (like perl and pcre) to the leafs (like firefox and xfce) so that I don't have any update issues. When it's fully tested I'll release it ... I don't know who invented regular expressions but he (or she) should get a monument.
__________________
A daemon in need is a daemon indeed.
Reply With Quote
  #7   (View Single Post)  
Old 2nd March 2011
nihonto nihonto is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 65
Thanked 1 Time in 1 Post
Default

Hmmm, funny thing - yesterday evening I tried it again with "pkgin install firefox" and now it went through without any problem

Maybe an explanantion: Before I have installed some packages by using pkgsrc (opera and opera-plugins). Maybe the correct dependencies came this way.
Reply With Quote
  #8   (View Single Post)  
Old 28th March 2011
fbsduser fbsduser is offline
Shell Scout
 
Join Date: Aug 2008
Posts: 107
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by nihonto View Post
Hi there,

today, I've tried to install NetBSD 5.1 on an external USB drive. The third attempt to install the OS finally went through the installation process till its end.

Then I configured Grub2 on the internal HDD to start NetBSD from the external drive. The boot process starts but then suddenly stops (not necessarily at the same position!). After some minutes this message appears:



Think, it was a bad idea to install NetBSD to an external drive, wasn't it?
A small question. How did you get grub2 configured to load NetBSD? Any particular search terms or handbook page in particular that I could use to get grub2 set for loading netbsd?
Thanks.
Reply With Quote
  #9   (View Single Post)  
Old 29th March 2011
nihonto nihonto is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 65
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by fbsduser View Post
A small question. How did you get grub2 configured to load NetBSD?
Just look at my quote in this thread
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
first install, first boot on netbsd, change password length wesley NetBSD General 0 26th August 2010 08:18 AM
What external HDD to buy? guitarscn General Hardware 9 16th August 2010 07:56 AM
Named not starting on NetBSD boot Antimidget NetBSD General 2 27th August 2009 10:57 PM
NetBSD pre-release 5 doesn`t boot welkin NetBSD Installation and Upgrading 4 6th January 2009 10:13 PM
Dual-boot laptop won't boot OpenBSD after upgrade to 4.3 kbeaucha OpenBSD Installation and Upgrading 17 30th May 2008 02:40 PM


All times are GMT. The time now is 03:57 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick