Re: Upgrading 3.6 to 3.8, and compiling -current
Hi, I recommend: http://www.xs4all.nl/~hanb/software/OpenBSD-binary-upgrade/ # Han
Re: Upgrading 3.6 to 3.8, and compiling -current
On 11/02/06, Nick Guenther [EMAIL PROTECTED] wrote: I'm hardly an expert so I hope you get some other opinions but here are my thoughts: On 2/10/06, Constantine A. Murenin [EMAIL PROTECTED] wrote: At a remote location, I have two boxes that are connected with each other via a serial cable, and through a router to the internet. One of the boxes is OpenBSD 3.6, and I'd like to upgrade it to 3.8, and then compile -current (I want to play with the kernel alongside sensors.h / lm(4)). What's the best way to do it? I guess, wget'ing the bsd.rd from ftp.openbsd.org mirror would be the best installation media, but then upon reboot should I choose 'upgrade' and do 3.6 - 3.7, then repeat the procedure with 3.7 - 3.8, then cvsup and compile the -current from sources? Or should I 'install' 3.8, then cvsup -current, and compile? The FAQ somewhere suggests of course, starting with a fresh install is always best. If I'll choose to install 3.8, then will I be able to leave my partitioning scheme and contents of my custom partitions intact? Or will I have to repartition the drive? The install script does run fdisk and disklabel but there's no reason you can't simply quit both immediately without making changes. All installing consists of is untarring the various install sets, writing some /etc/*.conf files with info from the user, using MAKEDEV to make various device nodes (not that I really understand what that means) and--oh--running newfs. I guess it would kill your partitions then. Probably upgrading is your best bet then, and I'm pretty sure you can go 3.6-3.8 immediately. Perhaps you could install by hand if all else fails? The FAQ says skipping releases is not supported. :-) tvc:constant {172} df -h ; disklabel wd0 ; fdisk wd0 FilesystemSize Used Avail Capacity Mounted on ... /dev/wd0m 7.9G 2.0K 7.5G 0%/mozilla You have an entire partition for mozilla? I'm curious why (I'm somewhat a newbie, I like enlightenment). I am a mozilla contributor. :-) I used to build it in /home on FreeBSD, which actually was /usr (/usr/home), and it all got too messy (`find /usr -name somename` became too awkward etc). So I decided to play it cool with OpenBSD, in case I'd like to hack mozilla again. Constantine.
Upgrading 3.6 to 3.8, and compiling -current
Hello, At a remote location, I have two boxes that are connected with each other via a serial cable, and through a router to the internet. One of the boxes is OpenBSD 3.6, and I'd like to upgrade it to 3.8, and then compile -current (I want to play with the kernel alongside sensors.h / lm(4)). What's the best way to do it? I guess, wget'ing the bsd.rd from ftp.openbsd.org mirror would be the best installation media, but then upon reboot should I choose 'upgrade' and do 3.6 - 3.7, then repeat the procedure with 3.7 - 3.8, then cvsup and compile the -current from sources? Or should I 'install' 3.8, then cvsup -current, and compile? If I'll choose to install 3.8, then will I be able to leave my partitioning scheme and contents of my custom partitions intact? Or will I have to repartition the drive? tvc:constant {172} df -h ; disklabel wd0 ; fdisk wd0 FilesystemSize Used Avail Capacity Mounted on /dev/wd0a 250M 35.5M 202M15%/ /dev/wd0p 3.0G 2.0K 2.8G 0%/backup2002 /dev/wd0n 2.0G 2.4M 1.9G 0%/home /dev/wd0m 7.9G 2.0K 7.5G 0%/mozilla /dev/wd0o39.4G 5.9G 31.5G16%/share /dev/wd0d 250M 2.0K 238M 0%/tmp /dev/wd0g 2.0G 773M 1.1G40%/usr /dev/wd0h 250M 119M 118M50%/usr/X11R6 /dev/wd0i 3.9G 486M 3.3G13%/usr/local /dev/wd0e 501M 6.0M 470M 1%/var /dev/wd0f 501M 304K 476M 0%/var/log /dev/wd0k1006M 546K 955M 0%/var/mail /dev/wd0l 250M 2.0K 238M 0%/var/qmail /dev/wd0j1006M 5.7M 950M 1%/var/www # using MBR partition 0: type A6 off 63 (0x3f) size 134223012 (0x80014a4) # /dev/rwd0c: type: ESDI disk: ESDI/IDE disk label: HDS722580VLAT20 flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 16 sectors/cylinder: 1008 cylinders: 16383 total sectors: 160836480 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # microseconds track-to-track seek: 0 # microseconds drivedata: 0 16 partitions: #size offsetfstype [fsize bsize cpg] a: 524097 634.2BSD 2048 16384 328 # (Cyl.0*- 519) b: 2097648 524160 swap# (Cyl. 520 - 2600) c: 1608364800unused0 0# (Cyl.0 - 159559) d: 524160 26218084.2BSD 2048 16384 328 # (Cyl. 2601 - 3120) e: 1048320 31459684.2BSD 2048 16384 328 # (Cyl. 3121 - 4160) f: 1048320 41942884.2BSD 2048 16384 328 # (Cyl. 4161 - 5200) g: 4194288 52426084.2BSD 2048 16384 328 # (Cyl. 5201 - 9361) h: 524160 94368964.2BSD 2048 16384 328 # (Cyl. 9362 - 9881) i: 8388576 99610564.2BSD 2048 16384 328 # (Cyl. 9882 - 18203) j: 2097648 183496324.2BSD 2048 16384 328 # (Cyl. 18204 - 20284) k: 2097648 204472804.2BSD 2048 16384 328 # (Cyl. 20285 - 22365) l: 524160 225449284.2BSD 2048 16384 328 # (Cyl. 22366 - 22885) m: 16777152 230690884.2BSD 2048 16384 328 # (Cyl. 22886 - 39529) n: 4194288 398462404.2BSD 2048 16384 328 # (Cyl. 39530 - 43690) o: 83885760 440405284.2BSD 2048 16384 328 # (Cyl. 43691 - 126910) p: 6296787 1279262884.2BSD 2048 16384 328 # (Cyl. 126911 - 133157*) Disk: wd0 geometry: 10011/255/63 [160826715 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: idC H S -C H S [ start: size ] *0: A60 1 1 - 8354 254 63 [ 63: 134223012 ] OpenBSD 1: 000 0 0 -0 0 0 [ 0: 0 ] unused 2: 000 0 0 -0 0 0 [ 0: 0 ] unused 3: 000 0 0 -0 0 0 [ 0: 0 ] unused tvc:constant {173} P.S. Is the upgrade really that simple and straightforward on OpenBSD as it seems to be? :-) P.P.S. BTW, as you can see I have some free disc space left... Is it possible to install two versions of OpenBSD on separate slices of one HDD and multiboot them? Or better and simpler just do the upgrade? :-) Thanks, Constantine.
Re: Upgrading 3.6 to 3.8, and compiling -current
On 2006/02/11 02:43, Constantine A. Murenin wrote: One of the boxes is OpenBSD 3.6, and I'd like to upgrade it to 3.8, and then compile -current (I want to play with the kernel alongside sensors.h / lm(4)). 3.8 - current/3.9-beta requires tedious and unnecessary steps. don't bother, install a snapshot. bsd.rd or tar xzpf should do nicely (see openbsd.org upgrade guide and 'following -current' for details - some parts of 'following -current' refer to compiler changes which you don't need to worry about if you install object code rather than upgrade from source). If I'll choose to install 3.8, then will I be able to leave my partitioning scheme and contents of my custom partitions intact? Or will I have to repartition the drive? should be fine intact - you have plenty of space on /usr for the libs which are now larger since they have debugging information (and very useful it is too). if you were tighter on space (mainly in /usr), you would want to make sure softdep is off while you upgrade. P.S. Is the upgrade really that simple and straightforward on OpenBSD as it seems to be? :-) yes, pretty much. P.P.S. BTW, as you can see I have some free disc space left... Is it possible to install two versions of OpenBSD on separate slices of one HDD and multiboot them? Or better and simpler just do the upgrade? :-) upgrade is probably simpler.
Re: Upgrading 3.6 to 3.8, and compiling -current
I'm hardly an expert so I hope you get some other opinions but here are my thoughts: On 2/10/06, Constantine A. Murenin [EMAIL PROTECTED] wrote: At a remote location, I have two boxes that are connected with each other via a serial cable, and through a router to the internet. One of the boxes is OpenBSD 3.6, and I'd like to upgrade it to 3.8, and then compile -current (I want to play with the kernel alongside sensors.h / lm(4)). What's the best way to do it? I guess, wget'ing the bsd.rd from ftp.openbsd.org mirror would be the best installation media, but then upon reboot should I choose 'upgrade' and do 3.6 - 3.7, then repeat the procedure with 3.7 - 3.8, then cvsup and compile the -current from sources? Or should I 'install' 3.8, then cvsup -current, and compile? The FAQ somewhere suggests of course, starting with a fresh install is always best. If I'll choose to install 3.8, then will I be able to leave my partitioning scheme and contents of my custom partitions intact? Or will I have to repartition the drive? The install script does run fdisk and disklabel but there's no reason you can't simply quit both immediately without making changes. All installing consists of is untarring the various install sets, writing some /etc/*.conf files with info from the user, using MAKEDEV to make various device nodes (not that I really understand what that means) and--oh--running newfs. I guess it would kill your partitions then. Probably upgrading is your best bet then, and I'm pretty sure you can go 3.6-3.8 immediately. Perhaps you could install by hand if all else fails? tvc:constant {172} df -h ; disklabel wd0 ; fdisk wd0 FilesystemSize Used Avail Capacity Mounted on ... /dev/wd0m 7.9G 2.0K 7.5G 0%/mozilla You have an entire partition for mozilla? I'm curious why (I'm somewhat a newbie, I like enlightenment). ... P.S. Is the upgrade really that simple and straightforward on OpenBSD as it seems to be? :-) Yes. P.P.S. BTW, as you can see I have some free disc space left... Is it possible to install two versions of OpenBSD on separate slices of one HDD and multiboot them? Or better and simpler just do the upgrade? :-) Of course it's possible to multiboot them, so long as they live on separate MBR partitions. Then just use $sudo fdisk -e wd0 flag n #n is 0 or 1, the partition you want to boot from to switch between each. But reallly... it's simpler to upgrade. -Kousu