LinuxQuestions.org
Visit Jeremy's Blog.
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 12-23-2008, 10:03 PM   #1
curtjr4
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Rep: Reputation: 0
Exclamation OpenBSD - bad Fstab file (Sparcstation 20)


Hi,

I am a new user to OpenBSD. I am running OpenBSD 2.8 on a Sun Sparcstation 20 with a SCSI drive. One day, I was screweing around with the fstab file in "/etc". I guess I changed the main partition (SCSI Address 3) to read-only instead of read-write. I cann't do anything anymore (even in root mode). When I tried to fix fstab with Vi, it gave me a error saying that I cann't make a temporairy file because I was read-only mode. The same with the mount command. I tried this...

Quote:
mount -o remount,rw /
and

Quote:
chmod 0700 /
Those didn't work. The filesystem is still Read-only.
If anyone knows a solution to this, please tell me!

Thanks,
Curt.

Last edited by curtjr4; 12-23-2008 at 10:08 PM. Reason: Left out some information...
 
Old 12-24-2008, 01:27 PM   #2
curtjr4
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry if I am double posting, but I did find out this. On boot, it says this...

Quote:
fstab: /etc/fstab Innappropriate file type or format

Last edited by curtjr4; 12-24-2008 at 01:29 PM. Reason: spelled something wrong
 
Old 12-29-2008, 10:08 PM   #3
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
Boot the bsd.rd kernel, it loads in a ramdisk, then you can mount the normal / partition on say, /mnt/root and vi /mnt/root/etc/fstab to fix your error.
 
Old 12-29-2008, 11:35 PM   #4
curtjr4
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Original Poster
Rep: Reputation: 0
I cann't figure out how to boot it. On bootup, I did Control+A, and it brought me into the diagnostic mode. I typed "boot bsd.(whatever the extension was), then I typed "/" and that didn't work. I tried "/mnt/root" and that still didn't work. I was in the boot kernal that was mentioned. I dont even know what partition to boot. I dont even know the partitions.
 
Old 12-30-2008, 12:13 AM   #5
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
Did it actually boot the kernel, or did it give you an error message? If it booted the kernel you would have seen a prompt for install/upgrade/shell. Choose shell.

To mount a partition you use the mount command, you can find the man pages at OpenBSD.org. The root partition is probably on /dev/sd0a .

Are you seriously running OpenBSD 2.8? Why on earth are you running such an ancient version? The latest is 4.4. Given the troubles you're having, you are probably much better off just installing 4.4 and starting over fresh.
 
Old 01-02-2009, 03:06 PM   #6
girarde
Member
 
Registered: Oct 2007
Distribution: OpenBSD
Posts: 72

Rep: Reputation: 23
Chort beat me to it, but there really are no reasons to be screwing around with 2.8. Either you can screw around with the system, and the reasonable choices are 4.4 release, -stable and -current, or you've got some wacky 2.8 dependent application in production, and you'd better not be screwing with it. ;-)
 
Old 01-02-2009, 04:30 PM   #7
ocicat
Member
 
Registered: May 2007
Posts: 208

Rep: Reputation: 48
Okay, this may be a me too post, but OpenBSD 2.8 was released back in December of 2000 -- nearly eight years ago. Unless there is some extenuating circumstance, installing the latest version is a prudent choice.
 
Old 01-10-2009, 11:49 AM   #8
dguitar
Member
 
Registered: Jun 2005
Location: Portland, ME
Distribution: Slackware 13, CentOS 5.3, FBSD 7.2, OBSD 4.6, Fedora 11
Posts: 122

Rep: Reputation: 17
Just an FYI, I have a SparcStation 20 currently running 4.3 (lazyness is why its not running 4.4. I wouldn't expect much out of it...
 
  


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
bad /etc/fstab How can I save changes during fix file system FEDORA John Sorkin Linux - Distributions 11 06-25-2012 03:43 PM
fstab is bad? echnat0n Linux From Scratch 3 04-10-2007 08:20 AM
Line 7 in /etc/fstab is bad!!! Please Help da_xlnc Linux - General 9 07-20-2006 06:03 AM
Line 7 in fstab bad.... cooljed Linux - General 1 01-11-2006 06:42 AM
openbsd Bad superblock mullog *BSD 2 09-22-2004 02:22 PM

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

All times are GMT -5. The time now is 08:40 AM.

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