floppy image issue on old Sun
Hey folks,
I downloaded the SPARC floppy images for a Sun Sparcstation 2, and successfully loaded the first image to a floppy, but the second floppy image seems to be too big. No matter what I do, I can't get it to go to a floppy. Has anyone else encountered this? Does anyone have any suggestions or solutions? I am trying to install the lastest version of NetBSD (FTP install). Any help would be greatly appreciated! Thanks, Brian |
Hmm, I can see that it's about 37k bigger than the standard floppy size. Are you doing this from another *nix machine? If so, you can fix the problem by making your own image.
disk2 is actually a tgz archive. Here is what you can do to strip it down a little (note this has not been tried here as I don't have the system to test it on but it should work unless I am massively confused about the manner of installation). Code:
mkdir disk2.fs But you can trim down the image a little to make it fit, then recreate it. I hope this works... it's a little ugly and crufty but it should shrink the image. I don't know what happened that this wasn't caught (or if there is another way to get this on a floppy without editing -- I haven't seen it) but this should work. Let me know if you have any questions or if something goes wrong. Edit: The standard floppy size is 1440K (often called, incorrectly, 1.44M). The file disk1 is exactly 1440K when gunzipped. The disk2 image is roughly 1477.4K (1512893/1024). Ironically, this still wouldn't fit on a floppy if they really did hold 1.44M as it's slightly over. Anyway... I'm rambling. The above steps were able to get me an image safely under the 1440K limitation. |
Note: If you're not on a *nix machine... it is possible for me to create this image for you and I could find a way to send it to you. This is absolutely the last resort as people you meet on forums are (unquestionably) untrusted sources. But if there is no other way... I'm willing to provide as much help as I can. [frob23 is a huge proponent of NetBSD and loves to show others how great it is.]
Also, it would have been better to bump your thread from 6/15 (http://www.linuxquestions.org/questi...d.php?t=455128) than to start another. |
frob23,
Thanks for the help. I actually do not have an operational *nix machine right now. I do however have quite an assortment of x86 compatible linux distros and a partition set aside for Linux. I'll install it and give what you suggested a try. If I can't, I'll repost and I'll take you up on your offer. Let me give it a try from Linux first. As for this post... I didn't know you could "bump" a thread [to the top?]. I'm not terribly used to this forum, and as you can see from my profile, I haven't posted here much at all. Sorry about that. |
Quote:
Quote:
|
Also, having just read your previous post... I notice you currently have NetBSD on the machine. If you have internet access, you can install from within the current system without booting from the floppies.
It's a little more technical... but not overly complicated. If, for some unexpected reason, the floppy thing doesn't work. I suggest you try that. I can help you with it... I've had to do it on a machine before (dead now) which had a bad floppy drive and no cd-rom drive. Hopefully the disk thing works as you really should be comfortable on the NetBSD command line before doing an upgrade by hand. |
Frob32,
I tried what you listed for updating the image and it seemed to work fine, except that there was an error uncompressing the /dev folder. In the end, it went back together just fine though. Unfortunately, my Sparcstation 2 disagreed with it: Code:
Floppy device to load the installation utilities from [/dev/rfd0a]: /dev/rfd0a If you don't think you can fix it, I'm up for trying a pre-redone image. As for trying to do the upgrade from the OS, I'm not too familiar with this old NetBSD syntax (plenty familiar with modern linux, however). If you give me "play by play" directions, I could do it fine, but I am lacking in my knowledge of commands that would allow me to do it by concept directions. Let me know what you think. Thanks for all your help! |
Did you run the commands as root or as a user? I had to run them as root to make them work because regular users can't usually make device nodes.
Anyway, moving on. The first thing you need to do is download all the sets for 3.0. Make sure you download them somewhere you can reach them in single user mode. Usually / if you have the room. /usr possibly, but you may be unable to mount other partitions... so be careful. As root: Don't execute things in {}'s and if you have questions... ask before you bork the system. Code:
cd / Also, in some cases, postinstall wanted you to point it to /new and not etc.tgz (but that's not the case with the new version... I'm pretty sure). In any case... it is verbose and you should be able to figure out what it wants. Also, in some cases binaries have moved... for example /usr/bin/tar has moved to /bin/tar. Make sure you remove /usr/bin/tar -- if postinstall doesn't catch this. This will be rare. If you keep running a program and it fails because of a bad system call, this is what you check (to see if you have an old version laying around somewhere). Questions? I know it's a lot. Also, sometimes the etcupdate will fix the problems postinstall didn't get. So run that and then try postinstall again. |
Okay... some failsafe information. If the new kernel won't boot. Stop the loader and tell it to use netbsd.16 (this is why we saved it). This is only if the kernel won't load far enough for you to get into single user mode. Once there we know the kernel is fine, and we just need to use the new programs or we run into problems.
Note: It's always best to use the full path e.g. /new/sbin/postinstall so we're sure we're not running the old tools. Also, once you're sure everything is up and running fine... you can "rm -rf /new". I have used this method to successfully downgrade systems (I had a crappy G3 which is dead now but several times I found the new kernels would panic in short order -- turns out it was the motherboard -- but the old ones would be okay). Downgrading is much harder, as the scripts aren't prepared for that so you end up doing a lot by hand and you're more prone to bad system calls... and it works for me. So I'm pretty confident that you'll be fine. |
Note: If you want to get fancy (and look cool) try
Code:
/new/usr/bin/progress -f /path/to/set.tgz /new/bin/tar xzpf - Code:
for file in `ls [b-c]*.tgz g*.tgz [m-x]*.tgz` Now, you shouldn't need to reinstall the boot blocks but if you do I can walk you through that as well. |
Well, I redid the image cutdown again, and this time with absolutely no problems (working as root this time), but unfortunately it ends up with the exact same error as before. I'll try to find room to download the sets, and I'll give the upgrade a try from the OS. The kernel compiled right now doesn't have floppy support; I hope that won't be a problem. I started to download the sets for 1.4 (or 1.6, whichever is installed) so I could recompile the kernel with floppy support, but ran out of room. The HD is only 1 Gb. I'll give it a shot though!
I'll let you know how things go. Thanks! Oh, one last thing... this is kind of embarassing, but what is the program/command for showing partition sizes/partition info and available space? |
You won't need floppy drive support. So don't worry about that.
The command to show free space and all that other stuff: Code:
df -k If you're cramped for size, then you do it in parts. First only download the kernel you're going to need. Then, as a bare minimum, grab base.tgz and etc.tgz (total 24,124k). If you can, grab: base.tgz etc.tgz comp.tgz games.tgz man.tgz misc.tgz text.tgz (total 62,700k). This will give you everything but X. The X sets are 57,360k or everything (not counting the kernel) is 120,060k. Note: this isn't a major thing... it's about 117M Note: If you do it in parts... keep track of what you've installed and just download the bits you haven't. You can delete the tgz files as soon as it's done. base.tgz and etc.tgz unpacked are 71736k. So, not counting the kernel... you want at least 95860k free for those two sets. With the generic kernel unpacked... it's 99604k (note... delete the kernel tgz, as soon as you unpack it). 97M... Do you have it? And if you have 191M (195,540k) you can download everything. Now, the system has grown a little... so give a couple megs growing room as it unpacks (not too much as most of the stuff will be removed as it's replaced so don't think you need twice as much free space as you're already using). Unless you're really, really tight on space... the install shouldn't be a problem. |
Note: as of two hours from now, I will be leaving for my vacation. I will not have any access to the computer for at least 24 hours (drive time) and will have random access after that. You should have enough information to complete the upgrade without issue. If you have any questions, post them here and I will answer them as soon as possible but there may be a longer delay than usual.
|
All times are GMT -5. The time now is 01:08 AM. |