archive-org.com » ORG » N » NETBSD.ORG

Total: 1243

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • how to install netbsd on a power macintosh g4 (grey)
    everything with pdisk Mounting root Mount the root partition to mnt2 and create following directories mount dev wd0a mnt2 cd mnt2 mkdir etc tmp usr var home Create fstab Create the file fstab that should match your wd0 disklabel configuration echo dev wd0a ffs rw 1 1 mnt2 etc fstab echo dev wd0b none swap sw 0 0 mnt2 etc fstab echo dev wd0e tmp ffs rw 1 2 mnt2 etc fstab echo dev wd0g var ffs rw 1 2 mnt2 etc fstab echo dev wd0f usr ffs rw 1 2 mnt2 etc fstab echo dev wd0h home ffs rw 1 2 mnt2 etc fstab Umount Unmount mnt2 again and enter sysinst cd umount mnt2 sysinst Using Sysinst In sysinst just use Re install sets and proceed with the installation After finishing these steps equivalent to standard installation and which will create all device nodes in dev you can configure your Timezone and set a root password through going to the Utilities menu again First boot Now we re ready for the first boot Exit sysinstall and enter reboot reboot Leave the installation CD in your drive and enter boot cd ofwboot xcf hd 3 netbsd Wait until netbsd boots into single user mode and use bin sh Set your terminal to VT100 export TERM vt100 Remount root read write using mount uw Cd to etc and edit your rc conf cd etc vi rc conf Please set rc configured YES wscons YES hostname my powermac g4 dhclient yes Please use etc ifconfig gem0 if you don t have a DHCP Server in your network and remove dhclient yes from rc conf Right now set up your network Either use dhclient to configure your network via DHCP dhclient gem0 or manually specify your network using ifconfig ifconfig gem0 192 168 0 124 netmask 255 255 255 0 Fetch pkgsrc tar gz ftp a ftp ftp netbsd org pub NetBSD NetBSD current tar files pkgsrc tar gz and extract it to usr tar xvfz pkgsrc tar gz C usr Install hfsutils from sysutils cd usr pkgsrc sysutils hfsutils make install clean Format your boot partition through hformat dev wd0d Place your ofwboot xcf file of your installation cdrom mount dev cd0a mnt to that partition hcopy mnt ofwboot xcf Reboot and enter OpenFirmware and enter following commands eject cd You don t need the installation disk anymore reset nvram setenv auto boot false setenv boot device hd 2 ofwboot xcf setenv boot file hd 3 netbsd reset all Next time you reboot your mac you get kicked into OpenFirmware directly Just type boot and you will boot into NetBSD XF86Config As for X11 here is my XF86Config file Section Files FontPath usr X11R6 lib X11 fonts local FontPath usr X11R6 lib X11 fonts misc FontPath usr X11R6 lib X11 fonts 75dpi unscaled FontPath usr X11R6 lib X11 fonts 100dpi unscaled FontPath usr X11R6 lib X11 fonts Type1 FontPath usr X11R6 lib X11 fonts CID FontPath usr X11R6 lib X11 fonts Speedo

    Original URL path: http://wiki.netbsd.org/tutorials/how_to_install_netbsd_on_a_power_macintosh_g4___40__grey__41__/ (2016-02-01)
    Open archived version from archive


  • How to install NetBSD on an Apple Macbook with Core 2 Duo
    the rEFIt menu if it s in the drive as the system is powered on You can boot any PC operating system but very very few are going to get very far on this newfangled hardware Fortunately NetBSD current amd64 can boot just fine Using rEFInd TBD Creating a new partition for NetBSD There are two ways to do this The GUI way and the CLI way The GUI way is probably easier for beginners but I m guessing that if you want to install NetBSD current on your MacBook you aren t a beginner If you want to use the GUI then you ll need to install bootcamp For Mac OS X 10 4 you can download a beta version of bootcamp for free from Apple s site It s usually found here http www apple com macosx bootcamp but it s in beta so it could go away any time If you haven t already ran the boot camp assistant you can use this tool to resize your OSX partition and split it up ala PartitionMagic If you already have a Windows partition you ve created with boot camp you won t be able to use Boot Camp Assistant again You ll have to do it from a terminal Here is how First do this to get a list of your current partitions diskutil list Now decide which partition you want to be your NetBSD parition and do not pick the EFI partition you need that I choose to use partition 4 on my macbook since 1 EFI 2 OSX and 3 WinXP assuming you have an 80Gb disk and you want sudo diskutil resizeVolume disk0s2 32G Linux name of NetBSD volume 21G MS DOS FAT32 name of windows volume 21G This operation only changes your partition layout to include a 32GB OS X partition 21GB Linux one and 21GB Windows partition We ll change the Linux tag to NetBSD once we get into the NetBSD installer The diskutil command above was shameless lifted from the Gentoo Linux wiki on installing their distro on the MacBook but it works Installing NetBSD current As mentioned above you ll need a current release of NetBSD for the AMD64 architecture Intel licensed the AMD64 instructions and re named them to hide their shame at having the Itanic rejected by Microsoft If you use the i386 port you can expect to have major problems so don t say you weren t warned I guess if you have a CoreDuo Macbook not the Core2Duo you might want to give i386 a shot but that s not what this document intends to cover Once you have the boot iso from amd64 installation cdrom properly burned onto a CDR then put it into your system s drive and restart rEFIt will detect the bootable disk and there will be an icon with a little CD picture on it showing you the disk as a boot option Go ahead and select it then let it boot up Do the installation as usual but remember do not install the mbr bootselect code NetBSD will automatically install it s stage2 loader on the partition you select and rEFIt will transfer control to that paritition when you select it from the menu it ll show up automatically as rEFIt probes your partitions prior to showing the initial menu Once you reboot there is more fun on the way If you use the boot iso file to create your CDROM and didn t put any of the tarball sets on the CDROM you ll have to get them over the network via http or ftp One option is to go to another working machine and write down the full path on the FTP site to the directory right before the amd64 directory For example ftp ftp netbsd org pub NetBSD daily HEAD 200705170002Z Your milage my vary Refer to the regular NetBSD handbook if you need help with the installation There is nothing too special about it other than a little extra hassle if you use the network Installing on dk 4 wedges If the install kernel or the installed kernel with different symptoms was compiled with dk 4 support and gpt autodetection that is if the kernel configuration included options DKWEDGE AUTODISCOVER options DKWEDGE METHOD GPT as the recent install kernels do and you plan to have both OS X and NetBSD on the same disk you have to do the installation by hand Since you need GPT partitions for rEFIt and OS X dk 4 wedges will be added for them Since the disk can only be accessed via wedges once at least one wedge has been added and sysinst 8 does not know about wedges the installation will fail with a device busy when sysinst tries to newfs 8 the NetBSD partition s Fortunately it is not hard to do the installation by hand The following example assumes that you are installing from a cd that you want to have just OS X and NetBSD on the disk a NetBSD only installation is easy other installation media or a third operating system work analogously that you are installing amd64 and that OS X is already installed on an HFS partition The example uses a 200GB disk with roughly half for the EFI and HFS partitions for rEFIt and OS X and roughly half for the NetBSD partitions Please make sure that you understand the starting sectors and sizes in the examples below before you try to mimic them Install rEFIt as described above Decrease the size of the HFS partition using the graphical Disk Utility or the command line diskutil 8 from OS X the graphical interface is found from Applications Utilities Disk Utility in recent versions of OS X It is easiest to leave empty space for NetBSD and not create a partition at this stage Boot the installation cd Exit sysinst or choose run bin sh Create the drvctl 4 device and enough r dk

    Original URL path: http://wiki.netbsd.org/tutorials/how_to_install_netbsd_on_an_apple_macbook_with_core2duo/ (2016-02-01)
    Open archived version from archive

  • how to install netbsd on hpcarm
    size for all remaining a 1859473 143423 4 2BSD 1024 8192 45488 Cyl 70 977 partition The last partition to set up is c This partition represents the whole NetBSD portion of the disk in our case that s partitions a and b partition c Filesystem type unused Start offset x to start after partition x e Partition size for all remaining c 1990545 12351 unused 0 0 Cyl 6 977 partition You should now have partition P 5 partitions size offset fstype fsize bsize cpg sgs a 1859473 143423 4 2BSD 0 0 Cyl 70 977 b 131072 12351 swap Cyl 6 70 c 1990545 12351 unused 0 0 Cyl 6 977 d 2002896 0 unused 0 0 Cyl 0 977 e 12288 63 MSDOS Cyl 0 6 partition If you re happy with the partition table then write it partition W Label disk n y Label written partition Now you have labeled the disk on to the next step Format the partitions First format the DOS partition newfs msdos sd1e dev rsd1e 12240 sectors in 1530 FAT12 clusters 4096 bytes cluster MBR type 1 bps 512 spc 8 res 1 nft 2 rde 512 sec 12288 mid 0xf8 spf 5 spt 32 hds 64 hid 63 Secondly the NetBSD partition newfs sd1a dev rsd1a 907 9MB 1859472 sectors block size 8192 fragment size 1024 using 20 cylinder groups of 45 40MB 5811 blks 11264 inodes super block backups for fsck b at 32 93008 185984 278960 371936 464912 557888 650864 743840 836816 929792 1022768 1115744 1208720 1301696 1394672 1487648 1580624 1673600 1766576 Cross building hpcarm Because of NetBSD s superb build framework crosscompiling a hpcarm release is very easy First we need some where to store the hpcarm distribution and release I use usr hpcarm distribution and usr hpcarm release but anywhere will do Now tell build sh where to store its build export DESTDIR usr hpcarm distribution export RELEASEDIR usr hpcarm release Start the build with cd usr src build sh x m hpcarm release If you don t want X built drop the x option Wait until it s finished and there should be a nice shiny new release in your release dir Now to install it on your flash card Install the release Mount your flash card mount o softdep dev sd1a mnt jornada Create a mount point for the DOS partition mkdir mnt jornada dos Mount the DOS partition IMPORTANT use the l option see BUGS in mount msdos 8 mount o l dev sd1e mnt jornada dos Now we are ready to start installing Install the boot program cp usr hpcarm release hpcarm installation hpcboot exe mnt jornada dos Install the kernel tar x p z f usr hpcarm release hpcarm binary sets kern JORNADA720 tgz C mnt jornada dos Now extract the sets This will extract all sets except the kernels for f in usr hpcarm release hpcarm binary sets k tgz do tar x p z f f C mnt jornada

    Original URL path: http://wiki.netbsd.org/tutorials/how_to_install_netbsd_on_hpcarm/ (2016-02-01)
    Open archived version from archive

  • how to install netbsd on hpcsh
    x86 machine capable of running NetBSD Your Jornada 620LX A 1GB CF Disk A CF Disk reader for x86 machine The process over simplified Install NetBSD on x86 and bring it up to current Build tools kernel release for HPCSH on the x86 machine Partition fdisk DiskLabel CF Disk Unpack release onto CF Disk Boot Jornada into CE and run HPCBoot exe from CF Disk Enjoy NetBSD The REAL breakdown Install onto a spare x86 machine I m not going to hand hold through this install as a basic install is perfectly fine In usr src build the HPCSH 3 tools cd usr src build sh u m hpcsh tools Build the HPCSH 3 kernel build sh u m hpcsh kernel GENERIC Build the HPCSH 3 release build sh u m hpcsh U release NOTE on building release I had it fail multiple times because I had not cleared out my usr src obj and my usr src tools and then rebuilt my tools for x86 after moving to current Attach the CFDisk to the NetBSD machine Partition it into two partitions I used a 2GB card and partitioned into 24MB and a 1 9GB You can get away with using as little as a few MB but I figured better safe than sorry with the extra space the 2GB card allots me Note Delete all partitions using fdisk before creating editing these ones fdisk dev sd1 Do you want to change our idea of what BIOS thinks n enter Which partition do you want to change none 0 sysid 1 start 0 size 24M bootmenu enter The bootselect code is not installed do you want to install it now n enter Which partition do you want to change none 1 sysid 169 start offset of partition 0 s sectors

    Original URL path: http://wiki.netbsd.org/tutorials/how_to_install_netbsd_on_hpcsh/ (2016-02-01)
    Open archived version from archive

  • how to install netbsd on raid1 using raidframe
    partition table invalid no magic in sector 0 Disk dev rwd0d NetBSD disklabel disk geometry cylinders 16645 heads 16 sectors track 63 1008 sectors cylinder total sectors 16778160 BIOS disk geometry cylinders 1024 heads 255 sectors track 63 16065 sectors cylinder total sectors 16778160 Do you want to change our idea of what the BIOS thinks n Partition 0 The data for partition 0 is sysid 0 255 default 169 start 0 1044cyl default 63 0cyl 0MB size 0 144cyl default 16778097 1044cyl 8192MB bootmenu Do you want to change the active partition n y Choosing 4 will make no partition active active partition 0 4 default 0 Are you happy with this choice n y We haven t written the MBR back to disk yet This is your last chance Partition table 0 NetBSD sysid 169 start 63 size 33555249 16384 MB Cyls 0 2088 183 63 Active 1 2 3 Bootselector disabled First active partition 0 Should we write new partition table n y Do the same for wd1 fdisk 0ua wd1 see above disklabel Now we need to edit the disklabel it s easy we just need to change one thing disklabel i I wd0 partition P e 33555312 63 4 2BSD partition e Filesystem type 4 2BSD RAID Start offset x to start after partition x 0 0625c 63s 0 0307617M Partition size for all remaining 16644 9c 16778097s 8192 43M partition W Label disk n y Label written partition Q Note that the letter e is only an example you need to identify your root partition Do the same with wd1 disklabel i I wd1 You may save typing by copying the configuration disklabel wd0 tmp wd0 inf disklabel R wd1 tmp wd0 inf raid0 conf and raidctl Next we ll configure RAIDframe again check

    Original URL path: http://wiki.netbsd.org/tutorials/how_to_install_netbsd_on_raid1_using_raidframe/ (2016-02-01)
    Open archived version from archive

  • how to install netbsd on the linksys nslu2 (slug) without a serial port, using nfs and telnet
    tgz The kern ADI BRH tgz and kern IXM1200 tgz are kernels for other ARM boards that are built automatically when you specify m evbarm We won t use them Set up the NFS file system To setup the NFS server see http www netbsd org docs network netboot nfs html and http www netbsd org docs network netboot files html NOTEThe instructions that follow are written for system configurations where the NFS tftp DHCP server is a different machine than your build machine If they are the same system then ignore the ssh and scp commands Log into the nfs server using ssh and setup the NetBSD file structure sudo mkdir p export client root dev sudo mkdir export client home sudo touch export client swap sudo dd if dev zero of export client swap bs 4k count 4k sudo chmod 600 export client swap sudo mkdir export client root swap Copy the necessary files from the build machine to the NFS system On your build machine cd net src obj scp r releasedir evbarm binary sets nfsserver export client Build the NetBSD root file system on the NFS server cd export client root sudo tar numeric owner xvpzf export client releasedir evbarm binary sets base tgz sudo tar numeric owner xvpzf export client releasedir evbarm binary sets comp tgz sudo tar numeric owner xvpzf export client releasedir evbarm binary sets etc tgz sudo tar numeric owner xvpzf export client releasedir evbarm binary sets games tgz sudo tar numeric owner xvpzf export client releasedir evbarm binary sets man tgz sudo tar numeric owner xvpzf export client releasedir evbarm binary sets misc tgz sudo tar numeric owner xvpzf export client releasedir evbarm binary sets tests tgz sudo tar numeric owner xvpzf export client releasedir evbarm binary sets text tgz The next part is slightly more complicated for the two system configuration To make the dev directory for the NFS file system mount the NFS file system on your build machine sudo mount t nfs nfsserver export client root mnt root cd mnt root dev Then execute the MAKEDEV shell script from your build machine Skip the mounting part if you use only one system sudo sh MAKEDEV m net src obj tooldir YOUR SYSTEM HERE bin nbmknod all Save the original NetBSD etc directory just in case you would like to refer to it later sudo cp r export client root etc export client root orig etc cd export client root etc Setup the various files in the exported etc so that the system will boot up and allow logins via telnet The edit command is shown along with the final file configuration except for inetd conf which is very long export client root etc hosts sudo nano hosts NetBSD how to install netbsd on the linksys nslu2 40 slug 41 without a serial port 44 using nfs and telnet mdwn v 1 2 2015 05 28 21 08 14 riastradh Exp Host Database This file should contain the addresses and aliases for local hosts that share this file It is used only for ifconfig and other operations before the nameserver is started 1 localhost localhost 127 0 0 1 localhost localhost RFC 1918 specifies that these networks are internal 10 0 0 0 10 255 255 255 172 16 0 0 172 31 255 255 192 168 0 0 192 168 255 255 192 168 1 102 nfsserver my NFS server 192 168 1 240 slug1 my NSLU2 export client root etc fstab sudo nano fstab etc fstab nfsserver client swap none swap sw nfsmntpt swap nfsserver client root nfs rw 0 0 export client root etc ifconfig npe0 sudo nano ifconfig npe0 inet client netmask 255 255 255 0 broadcast 192 168 1 255 export client root etc inetd conf sudo nano inetd conf Change the two lines telnet stream tcp nowait root usr libexec telnetd telnetd a valid telnet stream tcp6 nowait root usr libexec telnetd telnetd a valid to telnet stream tcp nowait root usr libexec telnetd telnetd telnet stream tcp6 nowait root usr libexec telnetd telnetd export client root etc rc conf sudo nano rc conf NetBSD how to install netbsd on the linksys nslu2 40 slug 41 without a serial port 44 using nfs and telnet mdwn v 1 2 2015 05 28 21 08 14 riastradh Exp see rc conf 5 for more information Use program YES to enable program NO to disable it program flags are passed to the program on the command line Load the defaults in from etc defaults rc conf if it s readable These can be overridden below if r etc defaults rc conf then etc defaults rc conf fi If this is not set to YES the system will drop into single user mode rc configured YES Add local overrides below sshd YES hostname slug1 defaultroute 192 168 1 1 nfs client YES auto ifconfig NO net interfaces export client root etc ttys sudo nano ttys NetBSD how to install netbsd on the linksys nslu2 40 slug 41 without a serial port 44 using nfs and telnet mdwn v 1 2 2015 05 28 21 08 14 riastradh Exp from ttys 5 1 Berkeley 4 17 89 name getty type status comments console usr libexec getty default vt100 on secure ttyp0 usr libexec getty Pc vt100 off secure ttyE0 usr libexec getty Pc vt220 off secure ttyE1 usr libexec getty Pc vt220 off secure ttyE2 usr libexec getty Pc vt220 off secure ttyE3 usr libexec getty Pc vt220 off secure tty00 usr libexec getty default unknown off secure tty01 usr libexec getty default unknown off secure tty02 usr libexec getty default unknown off secure tty03 usr libexec getty default unknown off secure tty04 usr libexec getty default unknown off secure tty05 usr libexec getty default unknown off secure tty06 usr libexec getty default unknown off secure tty07 usr libexec getty default unknown off secure Setup the tftp NFS and DHCP servers Now setup tftp NFS and DHCP On my Fedora 7 system I use the following setup Please note that the files shown below are believed to be correct but if tftp NFS or DHCP isn t working for you try Googling howto Also check your SELinux settings mine were preventing the slug from attaching to the NFS files Remember the kern NSLU2 ALL tgz was copied to the NFS server export client directory in the previous section NB It wouldn t be a bad idea for somebody to add the settings required for a NetBSD system here As in the previous section edit or create the files as necessary using nano or your favorite text editor cd export client root sudo tar numeric owner xvpzf export client releasedir evbarm binary sets kern NSLU2 ALL tgz cp bin tftpboot sudo chmod 666 tftpboot bin etc hosts 192 168 1 240 slug1 192 168 0 1 redboot 192 168 1 102 your host name use your host address etc hosts allow in tftpd 192 168 0 1 rpcbind 192 168 1 240 lockd 192 168 1 240 rquotad 192 168 1 240 mountd 192 168 1 240 statd 192 168 1 240 etc xinetd d tftp service tftp disable no socket type dgram protocol udp wait yes user root server usr sbin in tftpd server args s tftpboot per source 11 cps 100 2 flags IPv4 etc dhcpd conf ddns update style ad hoc option subnet mask 255 255 255 0 option broadcast address 192 168 1 255 option domain name servers xxx xxx xxx xxx Use your nameserver address default lease time 2592000 allow bootp allow booting option ip forwarding false No IP forwarding option mask supplier false Don t respond to ICMP Mask req subnet 192 168 1 0 netmask 255 255 255 0 option routers 192 168 1 1 range 192 168 1 110 192 168 1 189 group next server 192 168 1 102 IP address of your TFTP server option routers 192 168 1 1 default lease time 2592000 host slug1 hardware ethernet 00 18 39 a2 26 7c fixed address 192 168 1 240 option root path client root etc exports export client root 192 168 1 0 255 255 255 0 rw sync no root squash export client swap 192 168 1 0 255 255 255 0 rw sync no root squash Interrupting Slug bootup using telnet Unless we modify the flash memory of the Slug the normal boot process is to load RedBoot wait a few seconds then load a kernel and memory disk image from flash and execute it This process can be interrupted if you install a serial port by typing a C within two seconds after seeing the following message appear on the serial port screen RedBoot tm bootstrap and debug environment ROMRAM Red Hat certified release version 1 92 built 15 16 07 Feb 3 2004 Platform IXDP425 Development Platform XScale Copyright C 2000 2001 2002 Red Hat Inc RAM 0x00000000 0x02000000 0x000723a0 0x01ff3000 available FLASH 0x50000000 0x50800000 64 blocks of 0x00020000 bytes each Executing boot script in 2 000 seconds enter C to abort The good people at www nslu2 linux org have also documented a way to do the same thing with telnet This means you can use telnet to interrupt the boot process and instruct the Slug to load an executable using tftp Of course the Slug will still revert back to the serial port as the login console but the changes we made above will also allow you to login in as root using telnet Note that this process requires two different telnet sessions even though they are to the same device in general they will use two different IP addresses since one is to RedBoot and the second will be to NetBSD There are several methods described for using telnet to interrupt RedBoot which you can find at http www nslu2 linux org wiki HowTo TelnetIntoRedBoot My personal preference is the one near the bottom of the web page entitled C program using Berkeley Sockets Just copy the source code from the web page paste it into a file telnet slug c using any editor and compile I had to add two header files string h and stdlib h to get the program to compile using Fedora 8 and gcc 4 1 2 The first three lines in my file look like include stdio h include string h include stdlib h Then gcc telnet slug c o telnet slug to compile the program You also need to set your network configuration so that your computer can respond to the Slug when it starts up with IP address 192 168 0 1 For my Fedora 8 system I use the following sudo sbin ifconfig eth0 1 inet 192 168 0 2 broadcast 192 168 0 255 netmask 255 255 255 0 You ll find other suggestions for other operating systems at the top of the aforementioned web page Now run the program before you power on the Slug and you should see telnet slug Executing boot script in 1 950 seconds enter C to abort Telnet escape character is Trying 192 168 0 1 Connected to 192 168 0 1 Escape character is RedBoot What could be easier Occasionally the system trying to telnet into RedBoot will be a little too slow so if you don t see anything happening after a minute or so try again For reference my Slug with the clock speed up modification takes 12 seconds from power on to the RedBoot prompt Presumably it will take 24 seconds if you have an older Slug without the modification Booting the Slug with NFS Now start up the NSLU2 and interrupt the boot process as described above telnet slug Executing boot script in 1 960 seconds enter C to abort Telnet escape character is Trying 192 168 0 1 Connected to 192 168 0 1 Escape character is RedBoot ip address h 192 168 0 2 IP 192 168 0 1 255 255 255 0 Gateway 192 168 0 1 Default server 192 168 0 2 DNS server IP 0 0 0 0 RedBoot load r b 0x200000 netbsd nfs bin Using default protocol TFTP Raw file loaded 0x00200000 0x004a2ba7 assumed entry at 0x00200000 RedBoot g telnet q Connection closed telnet slug1 Trying 192 168 1 240 Connected to slug1 Escape character is NetBSD evbarm slug1 ttyp0 login root Copyright c 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 The NetBSD Foundation Inc All rights reserved Copyright c 1982 1986 1989 1991 1993 The Regents of the University of California All rights reserved NetBSD 4 99 54 NSLU2 NFS 0 Fri Feb 15 23 04 29 EST 2008 Welcome to NetBSD This system is running a development snapshot of the NetBSD operating system also known as NetBSD current It is highly possible for it to contain serious bugs regressions broken features or other problems Please bear this in mind and use the system with care You are encouraged to test this version as thoroughly as possible Should you encounter any problem please report it back to the development team using the send pr 1 utility requires a working MTA If yours is not properly set up use the web interface at http www NetBSD org support send pr html Thank you for helping us test and improve NetBSD We recommend creating a non root account and using su 1 for root access slug1 The first time I booted the Slug using NFS it took several minutes to setup up files and such so be patient Using sysinst to install NetBSD onto a USB drive If you re new to NetBSD you might feel more comfortable using the NetBSD installer to set up NetBSD on your USB thumb or hard disk Everything you need was built during the kernel build steps above The installer consists of five files one is the executable and the other four are the installation messages in German French Spanish and Polish To use the installer move it to the NFS server used above to boot up the NSLU2 and add the installation directory to the exported NFS directories in etc exports on the NFS server Don t forget to update the exports list cd net src distrib evbarm instkernel ramdisk obj work scp sysinst nfsserver export client sudo nano etc exports sudo usr sbin exportfs ra NFS server s etc exports export client 192 168 1 0 255 255 255 0 rw sync no root squash export client root 192 168 1 0 255 255 255 0 rw sync no root squash export client swap 192 168 1 0 255 255 255 0 rw sync no root squash Boot up the slug as before and mount the newly exported directory slug1 mkdir mnt inst slug1 mount t nfs nfsserver export client mnt inst slug1 ls la mnt inst total 18064 drwxrwxrwx 6 root wheel 4096 Mar 7 19 41 drwxr xr x 5 root wheel 4096 Mar 7 19 52 drwxr xr x 2 root wheel 4096 Feb 26 21 53 home drwxr xr x 3 500 501 4096 Mar 7 16 03 releasedir drwxr xr x 20 root wheel 4096 Mar 7 16 05 root rw 1 root wheel 16777216 Feb 28 03 15 swap r xr xr x 1 500 501 1571140 Mar 7 19 41 sysinst r r r 1 500 501 23994 Mar 7 19 41 sysinstmsgs de r r r 1 500 501 23727 Mar 7 19 41 sysinstmsgs es r r r 1 500 501 23785 Mar 7 19 41 sysinstmsgs fr r r r 1 500 501 21140 Mar 7 19 41 sysinstmsgs pl drwxr xr x 2 root wheel 4096 Feb 26 21 53 usr Make sure that NetBSD recognizes your USB drive slug1 dmesg grep sd sd0 at scsibus0 target 0 lun 0 SanDisk U3 Cruzer Micro 3 21 disk removable sd0 3919 MB 7964 cyl 16 head 63 sec 512 bytes sect x 8027793 sectors Change to the directory with the installer and run it You ll see the following messages on your telnet terminal slug1 cd mnt inst slug1 sysinst Welcome to sysinst the NetBSD 4 99 55 system installation tool This menu driven tool is designed to help you install NetBSD to a hard disk or upgrade an existing NetBSD system with a minimum of work snip Select your language preference NetBSD 4 99 55 Install System a Install NetBSD to hard disk b Upgrade NetBSD on a hard disk c Re install sets or install additional sets d Reboot the computer e Utility menu x Exit Install System First select the utility menu option From here set up your network so that the installation program can generate the necessary files in etc When done return to the install system menu and select the Install NetBSD to hard disk option and follow the instructions When you get to the third menu select Custom installation Then mark the following items Yes The following is the list of distribution sets that will be used Distribution set Selected a Kernel ADI BRH No b Kernel INTERGRATOR No c Kernel IQ80310 No d Kernel IQ80321 No e Kernel TEAMASA NPWR No f Kernel TS7200 No g Base Yes h System etc Yes i Compiler Tools Yes j Games No k Online Manual Pages Yes l Miscellaneous Yes m Test programs Yes n Text Processing Tools Yes o X11 sets None x Install selected sets Continue with the normal installation When asked for the location of the distribution files select Local Directory Your disk is now ready for installing the kernel and the distribution sets As noted in your INSTALL notes you have several options For ftp or nfs you must be connected to a network with access to the proper machines Sets selected 7 processed 0 Next set base Install from a CD ROM DVD b FTP c HTTP d NFS e

    Original URL path: http://wiki.netbsd.org/tutorials/how_to_install_netbsd_on_the_linksys_nslu2___40__slug__41___without_a_serial_port__44___using_nfs_and_telnet/ (2016-02-01)
    Open archived version from archive

  • how to mount ffs partition under linux
    f W95 Ext d LBA start c h s expected 1023 15 63 found 1023 255 63 end c h s expected 1023 15 63 found 1023 254 63 dev hda3 134767 144935 10169 5124735 a5 FreeBSD start c h s expected 1023 15 63 found 1023 255 63 end c h s expected 1023 15 63 found 1023 254 63 dev hda4 144935 155060 10126 5103189 a9 NetBSD start c h s expected 1023 15 63 found 1023 255 63 end c h s expected 1023 15 63 found 1023 80 63 dev hda5 34536 102366 67830 34186288 83 Linux start c h s expected 1023 15 63 found 0 1 1 end c h s expected 1023 15 63 found 1023 254 63 dev hda6 102366 104294 1929 971901 82 Linux swap Solaris start c h s expected 1023 15 63 found 0 1 1 end c h s expected 1023 15 63 found 120 254 63 dev hda7 104295 134767 30473 15358108 83 Linux start c h s expected 1023 15 63 found 0 1 1 end c h s expected 1023 15 63 found 1023 254 63 dev hda8 134767 143910 9143 4608000 dev hda9 143910 144935 1026 516735 dev hda10 144935 154078 9143 4608072 dev hda11 154078 155060 983 495117 dev hda12 0 34536 34537 17406396 dev hda13 34536 102366 67830 34186288 dev hda14 102366 104294 1929 971901 dev hda15 104295 144935 40641 20482843 So for FreeBSD FFSv2 we have dev hda3 which is equivalent to dev ad0s3 And for NetBSD FFSv1 we have dev hda4 which is equivalent to dev wd0c But these devices are whole BSD slices BIOS partitions not BSD partitions By examinating carefully sfdisk l output we find that dev hda3 134767 144935 includes dev hda8 134767 143910 and dev hda9 143910 144935 dev hda4 144935 155060 includes dev hda10 144935 154078 and dev hda11 154078 155060 And we may deduce that for FreeBSD dev hda8 is equivalent to dev ad0s3a FreeBSD root partition dev hda9 is equivalent to dev ad0s3b FreeBSD swap And for NetBSD dev hda10 is equivalent to dev wd0a NetBSD root partition dev hda11 is equivalent to dev wd0b NetBSD swap Thus FreeBSD root partition lies at dev hda8 First create a directory to mount FFS partition and then mount it mkdir mnt freebsd mount t ufs o ro ufstype ufs2 dev hda8 mnt freebsd And NetBSD root partition lies at dev hda10 First create a directory to mount FFS partition and then mount it mkdir mnt netbsd mount t ufs o ro ufstype 44bsd dev hda10 mnt netbsd Let s browse it ls mnt bsd mnt freebsd bin cdrom COPYRIGHT dist etc lib media proc root sys usr boot compat dev entropy home libexec mnt rescue sbin tmp var mnt netbsd altroot etc gnome screensave core mnt root var bin GENERIC kern netbsd sbin boot GENERIC DIAGNOSTIC lib onetbsd stand CUSTOM GENERIC LAPTOP libdata proc tmp dev GENERIC NOACPI libexec rescue usr Edit etc fstab Add

    Original URL path: http://wiki.netbsd.org/tutorials/how_to_mount_ffs_partition_under_linux/ (2016-02-01)
    Open archived version from archive

  • how to mount iso images
    Home Edit Comment Source History New RecentChanges NetBSD Wiki tutorials how to mount iso images Contents Introduction Mounting the Image Unmounting the Image Additional Information Introduction NetBSD lets you mount ISO images using the vnd 4 disk driver The vnd driver provides a disk like interface to a file Mounting the Image vnconfig vnd0 v7x86 0 8a iso mount t cd9660 dev vnd0a mnt cd mnt ls COPYRIGHT README boot

    Original URL path: http://wiki.netbsd.org/tutorials/how_to_mount_iso_images/ (2016-02-01)
    Open archived version from archive