DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th May 2008
DarkEnergy DarkEnergy is offline
New User
 
Join Date: May 2008
Posts: 7
Thanked 0 Times in 0 Posts
Default /etc on a separate partition

Hi,

I had to reinstall FBSD and wanted to setupt /etc on a separate partition. The Setup run fine. But after reboot the root partition coudn't be mounetd.
The boot process stoped with the prompt mountroot>. I gave him root ... and the system booted. I wanted to take a look in /etc/fstab but there was no such file, and the /etc was empty. Can somebody explain to me why is impossible to set /etc on separate partition ?

Thans DarkEnergy
Reply With Quote
  #2   (View Single Post)  
Old 16th May 2008
roddierod's Avatar
roddierod roddierod is offline
Real Name: Rod Person
VPN Cryptographer
 
Join Date: Apr 2008
Location: Pittsburgh, Pa
Posts: 371
Thanked 13 Times in 13 Posts
Default

Did you put the new /etc information in fstab before you rebooted?
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
Reply With Quote
  #3   (View Single Post)  
Old 16th May 2008
DarkEnergy DarkEnergy is offline
New User
 
Join Date: May 2008
Posts: 7
Thanked 0 Times in 0 Posts
Default

nope ...
hmm interesting. I'll try this in a virtual machine. FBSD is running now but /etc is just a directory under /
Reply With Quote
  #4   (View Single Post)  
Old 16th May 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Thanked 49 Times in 43 Posts
Default

when the OS boots it (kernel) knows where the root filesystem is. it reads /etc/fstab to mount the filesystems. obviously, the file /etc/fstab needs to be on the root filesystem or to put it in another way /etc can't be on a seperate filesystem.
Reply With Quote
  #5   (View Single Post)  
Old 16th May 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

Theoretically, couldn't you have an /etc directory on the root slice with just /etc/fstab in it? And that /etc/fstab would contain the slice to mount on /etc ? It's an awful, awful, hack, something I would never recommend, but it would probably work.
Reply With Quote
  #6   (View Single Post)  
Old 16th May 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Thanked 49 Times in 43 Posts
Default

Quote:
Originally Posted by adamk View Post
Theoretically, couldn't you have an /etc directory on the root slice with just /etc/fstab in it? And that /etc/fstab would contain the slice to mount on /etc ? It's an awful, awful, hack, something I would never recommend, but it would probably work.
init runs /etc/rc which will further run other rc scripts that will mount all the non-root FS's. but /etc/rc is on a filesystem that hasn't been mounted yet.
Reply With Quote
  #7   (View Single Post)  
Old 16th May 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

So it could be done if you copied /etc/rc and various other files under /etc to the unmounted /etc. Which makes it completely pointless :-)
Reply With Quote
  #8   (View Single Post)  
Old 16th May 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

/etc should always be on the root partition, a simple fact.. sorry..
Reply With Quote
  #9   (View Single Post)  
Old 16th May 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,051
Thanked 118 Times in 93 Posts
Default

Quote:
Originally Posted by DarkEnergy View Post
I had to reinstall FBSD and wanted to setupt /etc on a separate partition.
Any good reason for that mate?
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
Old 16th May 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,118
Thanked 182 Times in 149 Posts
Default

Just for fun I tried creating a separate partition/label for "/etc" on OpenBSD a few years ago. It didn't work.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 19th May 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

/etc contains all the configuration info for the OS. How do you expect an OS to boot when it can't find any of its configuration info?
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Old 19th May 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Thanked 25 Times in 24 Posts
Default

Also size of /etc is few megabytes and making special partition/slice for it is clueless.
Reply With Quote
Old 20th May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

The only time I could think there would be a point to /etc not being on / is if it was mounted *read only* over NFS and shared on a large group of machines or some thing to that effect.


In which case I would guess people would want to eventually read the diskless operation parts of the handbook.


Or just rsync /etc via ssh ontop of a minimal /etc.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Old 20th May 2008
kazcor kazcor is offline
Real Name: Registreed Usre
Port Guard
 
Join Date: May 2008
Location: bliner, erg
Posts: 20
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by TerryP View Post
Or just rsync /etc via ssh ontop of a minimal /etc.
Or export an image via NFS and use unionfs to fill up the missing parts
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot activate partition in XP. bsdnewbie999 OpenBSD Installation and Upgrading 6 4th May 2009 05:21 PM
Recommended Partition Layout MetalHead OpenBSD Installation and Upgrading 12 30th November 2008 10:08 AM
disklabel don't see OpenBSD partition piotrk OpenBSD General 4 25th September 2008 06:14 PM
swap partition lumiwa FreeBSD General 6 11th September 2008 03:57 PM
Adding a separate /home JMJ_coder NetBSD General 2 29th August 2008 10:45 AM


All times are GMT. The time now is 04:19 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick