From owner-freebsd-questions Thu Sep 7 16:48:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from lcmail2.lc.ca.gov (lcmail2.lc.ca.gov [165.107.12.11]) by hub.freebsd.org (Postfix) with ESMTP id 71F0737B424 for ; Thu, 7 Sep 2000 16:48:10 -0700 (PDT) Received: from CONVERSION-DAEMON by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) id <0G0J00501JF74L@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.org; Thu, 7 Sep 2000 16:47:31 -0700 (PDT) Received: from ldcmsx01.lc.ca.gov ([165.107.11.191]) by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) with ESMTP id <0G0J002FIJF662@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.org; Thu, 07 Sep 2000 16:47:30 -0700 (PDT) Received: by ldcmsx01.lc.ca.gov with Internet Mail Service (5.5.2650.21) id ; Thu, 07 Sep 2000 16:48:02 -0700 Content-return: allowed Date: Thu, 07 Sep 2000 16:47:57 -0700 From: "Tomlinson, Drew" Subject: How to Edit FSTAB When / is Read-Only To: "'FreeBSD Questions (E-mail)'" Message-id: <8C224DC088D8D111B67D0000F67AC17E029C4AA4@ldcmsx01.lc.ca.gov> MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-type: MULTIPART/ALTERNATIVE; BOUNDARY="Boundary_(ID_FLaFtjMTHw8VchmK0SMpeg)" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --Boundary_(ID_FLaFtjMTHw8VchmK0SMpeg) Content-type: text/plain; charset="iso-8859-1" I am new to both Unix and FreeBSD so I apologize if this question is very elementary. I am running release 4.0 on a 486-DX with a 850 MB IDE drive. I have since added a 6 GB IDE drive. I used /stand/sysinstall to both FDISK and Label the drive. Both drives in this system were FDISKed with the option to use all space for FBSD and not be compatible with other file systems. Next, I added the drives to /etc/fstab and then issued a mount -a. At this point my system quit responding, even from the console port. Every command I entered was invalid. Even simple commands like ls, pwd, cd, etc. no longer were valid. I had no choice other than to power off/on the machine. Upon reboot, there were many errors that scrolled by before I could capture them but they were all related to the new drive that I attempted to install. After the errors, I'm left with a # prompt at the console. I assume this is the sh shell. I believe if I can edit or change my /etc/fstab file, my problems will be gone and the system won't have mounting problems and will boot normally. Because the file system isn't mounted, the vi editor is not available. I do have a backup of the fstab but when I attempt to copy it, I get an error because the / filesystem is mounted read-only. What can I do to fix this problem? Here is the content of my /etc/fstab: # Device Mountpoint FStype Options Dump Pass# /dev/ad0s1b none swap sw 0 0 /dev/ad0s1a / ufs rw 1 1 /dev/ad0s1f /usr ufs rw 2 2 /dev/ad0s1e /var ufs rw 2 2 /dev/acd0c /cdrom cd9660 ro,noauto 0 0 /dev/ad2s1b none swap sw 0 0 /dev/ad2s1a / ufs rw 1 1 /dev/ad2s1f /usr ufs rw 2 2 /dev/ad2s1e /var ufs rw 2 2 proc /proc procfs rw 0 0 192.168.0.254:/My_Webs /usr/local/www/data nfs ro,union 0 0 Thanks in advance for your assistance! Drew --Boundary_(ID_FLaFtjMTHw8VchmK0SMpeg) Content-type: text/html; charset="iso-8859-1" Content-transfer-encoding: quoted-printable How to Edit FSTAB When / is Read-Only

I am new to both Unix and FreeBSD so I = apologize if this question is very elementary.

I am running release 4.0 on a 486-DX = with a 850 MB IDE drive.  I have since added a 6 GB IDE = drive.  I used /stand/sysinstall to both FDISK and Label the = drive.  Both drives in this system were FDISKed with the option to = use all space for FBSD and not be compatible with other file = systems.

Next, I added the drives to /etc/fstab = and then issued a mount -a.  At this point my system quit = responding, even from the console port.  Every command I entered = was invalid.  Even simple commands like ls, pwd, cd, etc. no = longer were valid.  I had no choice other than to power off/on the = machine.

Upon reboot, there were many errors = that scrolled by before I could capture them but they were all related = to the new drive that I attempted to install.  After the errors, = I'm left with a # prompt at the console.  I assume this is the sh = shell.  I believe if I can edit or change my /etc/fstab file, my = problems will be gone and the system won't have mounting problems and = will boot normally.  Because the file system isn't mounted, the vi = editor is not available.  I do have a backup of the fstab but when = I attempt to copy it, I get an error because the / filesystem is = mounted read-only.  What can I do to fix this problem?

Here is the content of my = /etc/fstab:
# = Device           =      Mountpoint      = FStype  Options         = Dump    Pass#
/dev/ad0s1b         &n= bsp;   = none            = swap    = sw           &nbs= p;  0       0
/dev/ad0s1a         &n= bsp;   = /            = ;   ufs     = rw           &nbs= p;  1       1
/dev/ad0s1f         &n= bsp;   = /usr            = ufs     = rw           &nbs= p;  2       2
/dev/ad0s1e         &n= bsp;   = /var            = ufs     = rw           &nbs= p;  2       2
/dev/acd0c         &nb= sp;    /cdrom  cd9660  = ro,noauto       = 0       0
/dev/ad2s1b         &n= bsp;   = none            = swap    = sw           &nbs= p;  0       0
/dev/ad2s1a         &n= bsp;   = /            = ;   ufs     = rw           &nbs= p;  1       1
/dev/ad2s1f         &n= bsp;   = /usr            = ufs     = rw           &nbs= p;  2       2
/dev/ad2s1e         &n= bsp;   = /var            = ufs     = rw           &nbs= p;  2       2
proc          &nb= sp;         = /proc           = procfs  = rw           &nbs= p;  0       0
192.168.0.254:/My_Webs = /usr/local/www/data   nfs     = ro,union   0       0

Thanks in advance for your = assistance!

Drew

--Boundary_(ID_FLaFtjMTHw8VchmK0SMpeg)-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message