LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-13-2004, 04:18 PM   #1
mullog
Member
 
Registered: May 2004
Posts: 61

Rep: Reputation: 15
Filesystems don't mount after instalation


I installed OpenBSD(3.5 current) in a 20Gb slave disk through ftp(i have a windows system in the master disk) and the instalation gave me no problems, but as soon as i rebooted i noticied the system didn't mount any subpartitions(only the / was mounted).
I sucessfully mounted by hand the rest of the supartitions and the files were all there, but i don't understand why this happens.

I would appreciate any help. Thanks.


Last edited by mullog; 07-13-2004 at 04:24 PM.
 
Old 07-14-2004, 12:15 AM   #2
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
What does your /etc/fstab look like? It almost sounds like you're trying to mount the partitions in the wrong order, but that would be impossible to do if you just followed the installer...
 
Old 07-15-2004, 06:06 PM   #3
mullog
Member
 
Registered: May 2004
Posts: 61

Original Poster
Rep: Reputation: 15
Here's my fstab(sorry for the delay):
/dev/wd1a / ffs rw 1 1
/dev/wd1f /etc ffs rw,nodev,nosuid 1 2
/dev/wd1g /usr ffs rw,nodev 1 2
/dev/wd1h /home ffs rw,nodev,nosuid 1 2
/dev/wd1d /tmp ffs rw,nodev,nosuid 1 2
/dev/wd1e /var ffs rw,nodev,nosuid 1 2

I didn't make any changes. I just rebooted as requested by the installer.

PS:I tried to install a second time just to check.
 
Old 07-17-2004, 02:13 AM   #4
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
Well it looks correct to me. I don't have the slightest idea why that would happen. Perhaps try upgrading to a recent snapshot and see if the problem disappears? Also, you could always put something in /etc/rc.local to check each partition and see if it's mounted. If it isn't, then mount it. That would be a terrible hack, but it would get you around have to manually mount everything.
 
Old 07-17-2004, 02:39 AM   #5
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
/dev/wd1f /etc ffs rw,nodev,nosuid 1 2

Is this your fstab before you mounted /etc or after?

Why do you have a mounted /etc (this is usually not a good idea as the whole system will fail is wonderful ways if that partition is dirty and you don't have a good /etc on the root partition)?

I have a feeling this has something to do with your problem.

Are both /etc 's the same and even if they are... the system might be confused because the file it was using suddenly no longer exists after it mounts wd1f (it exists and doesn't at the same time in a funky unix limbo).
 
Old 07-18-2004, 01:18 AM   #6
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
Doh! That is an excellent point. /etc really should be left on / since that is the only partition initially mounted during boot. The init process is probably interrupted when it's open file handles go poof.
 
Old 07-18-2004, 09:43 AM   #7
mullog
Member
 
Registered: May 2004
Posts: 61

Original Poster
Rep: Reputation: 15
Yeah, that is the most likely problem...shame on me.
I'll try again with that on mind and i'll say if it worked. Thanks a lot.

 
Old 07-18-2004, 04:15 PM   #8
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
By the way, if you've made all your changes on the non-root partition version of /etc, you'll want to copy those over somewhere so you can put them in the /etc on the root partition (which you can't do with /etc mounted on wd1f). Either mount /etc on wd1f and copy everything to some place like /scratch or /home/user/etctmp, or unmount wd1f and remount it some place like /mnt/etctmp, then copy the appropriate configs to /etc on the root partition (wd1a).

I'd recommend doing a diff of each file before copying into the real /etc to make sure you don't nuke anything important.
 
Old 07-18-2004, 04:57 PM   #9
mullog
Member
 
Registered: May 2004
Posts: 61

Original Poster
Rep: Reputation: 15
Ok, it worked fine. Thanks for the help.

Now i can continue the search for more problem...
 
  


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
Can't mount ufs filesystems ratman96 Linux - General 2 05-04-2005 12:34 PM
One mount point, multiple filesystems - how? hellwyn Linux - Hardware 4 02-15-2005 04:15 PM
windows filesystems vs. linux filesystems irfanhab General 8 05-25-2004 07:21 AM
Easier Way to create and mount filesystems? cuco76 Linux - Software 3 04-27-2004 03:16 AM
mount filesystems from hda1 and hda2 jhirshon Linux - Newbie 3 01-29-2004 12:05 PM

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

All times are GMT -5. The time now is 08:45 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