LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 11-07-2004, 10:43 AM   #1
lazlow69
Member
 
Registered: Jan 2003
Location: Central New Jersey
Distribution: Knoppix to play, Slack current, OpenBSD stables
Posts: 111

Rep: Reputation: 15
Question OpenBSD boot disk ... really lacking...


I recently installed OpenBSD 3.6 on a box, configured it so the default console was com0 since I've got a nullmodem cable and hyperterminal, rebooted, all was well, except editing in pico or vi had strange responses to backspace and inserting, so I figured I'd edit /etc/ttys to change the console at com0 to vt100 instead of the vt220 that it was at... I rebooted and realized I must have made an error... no biggie, I thought, I'll just reboot from the CD and mount the /dev/wd0a volume that has my etc and edit the file... Well that works but there's no editor except ed!?!?! I can't get ed to do anything for me, so I try mounting my partition that has /usr on the harddrive to get access to vi, but that aborts with errors I guess because the ramdisk is so damned small... So here I am with a system that I can't access because I can't edit a simple file... Does the boot CD really have to be a 3.4mb iso? can't it be a little larger to accomodate a simple text editor like vi???

- any advice on editing a file on my harddrive when I can't boot from the harddrive? Can OpenBSD really be this arcane? Linux doesn't complain about this stuff! BTW, I tried booting from a slack disk thinking I could mount my volumes through slack, but fdisk doesn't recognize the BSD FFS partitions...


HELP!!!
 
Old 11-07-2004, 12:57 PM   #2
slackMeUp
Member
 
Registered: Nov 2003
Distribution: Slack-where?
Posts: 654

Rep: Reputation: 30
What's stopping you from using a BSD based live CD?

http://www.freesbie.org/
 
Old 11-07-2004, 01:12 PM   #3
lazlow69
Member
 
Registered: Jan 2003
Location: Central New Jersey
Distribution: Knoppix to play, Slack current, OpenBSD stables
Posts: 111

Original Poster
Rep: Reputation: 15
I am downloading it as we speak, thank you for the info on that... The question still remains: why is the functionality not built into the OpenBSD ISO to boot into an environment that has at least the basic editing options... Seems strange that I've got to pull down a 550mb iso in order to edit a 1k text file... any more ideas beyond this? Thank you though, this is an interesting lead.
 
Old 11-07-2004, 01:43 PM   #4
slackMeUp
Member
 
Registered: Nov 2003
Distribution: Slack-where?
Posts: 654

Rep: Reputation: 30
I'm guessing because the CD is just what is needed for doing the install.. a rescue CD might be out there, but it's not the install CD.

You could always put vi, on a floppy and load it from the CD.
 
Old 11-07-2004, 02:33 PM   #5
lazlow69
Member
 
Registered: Jan 2003
Location: Central New Jersey
Distribution: Knoppix to play, Slack current, OpenBSD stables
Posts: 111

Original Poster
Rep: Reputation: 15
Again, good suggestion, but I think there is an issue with that. The boot CD generates a real tight ram disk, and it seems there's very little room for any executable in that space. I was seeing the ram disk having 120kb space left after a CD boot, and for some reason it seems like vi can't work in that space. Maybe I'm missing something, but after mounting all my HD volumes which contain the binaries for a number of different editors like vi and pico, they all seem to have failed when trying to execute. I think you're right that the OpenBSD CD iso is meant for one very specific task, seems like that could have been expanded to be more functional, but oh well...

Also, the floppy on the machine I'm doing this on is dead, so there's not much room for a vi floppy. That's what I get for getting a machine for 5 bux at the Princeton University Surplus Center.
 
Old 11-07-2004, 09:48 PM   #6
lazlow69
Member
 
Registered: Jan 2003
Location: Central New Jersey
Distribution: Knoppix to play, Slack current, OpenBSD stables
Posts: 111

Original Poster
Rep: Reputation: 15
I got that FreeSBIE thing going (quite neat BTW, the GUI is real slick, and a ton of applications, like the Knoppix of BSDs!), but I am afraid I don't know how to get my HD partitions mounted so I can edit them. I see the disk offers up a nice VIM app as well as other editors, but when I try to mount or even touch a file it let's me know that everything is read-only... Is there a portion of the filesystem where I can make a directory and mount a partition to it? And what is the drive assignments for hard drives? dmesg shows me /dev/ad0 for what looks like my harddrive, but I'm not sure. What would be the equivalent to OpenBSD's /dev/wd0a ?

Thanks so far for the help, I'm not answering the question I have, but I'm learning a lot of auxiliary info along the way...
 
Old 11-08-2004, 02:50 PM   #7
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
I never had any problem editing stuff with VI after booting from the CD and choosing [s]hell. You need to mount the additional paritions at a specific directory, I think it was /mnt2. I distinctly remember doing exactly what you're trying to do (i.e. boot from CD and mount /usr so I get VI) before on a few occasions, I just can't remember where it has to be mounted at. You might need to supply the full path to it (/mnt2/usr/bin/vi, etc).
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD and numlock on at boot gentisle *BSD 2 05-25-2005 01:47 PM
speed is lacking ingvildr Ubuntu 6 05-21-2005 09:01 AM
I seem to be lacking kernel source rickh Debian 4 05-13-2005 06:36 PM
OpenBSD 3.6 won't boot revenger681 *BSD 7 11-27-2004 01:31 AM
OpenBSD disk geometry help amp2000 *BSD 6 04-27-2002 01:28 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 05:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration