From owner-freebsd-questions Thu Mar 7 0:56:27 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dot.uber.com.br (ctbcnetsuper-146.xdsl-fixo.ctbcnetsuper.com.br [200.225.201.146]) by hub.freebsd.org (Postfix) with SMTP id 03DAD37B404 for ; Thu, 7 Mar 2002 00:56:22 -0800 (PST) Received: (qmail 5793 invoked from network); 7 Mar 2002 05:54:43 -0000 Received: from ctbcnetsuper-028.xdsl-dinamico.ctbcnetsuper.com.br (HELO uber.com.br) (200.225.204.28) by 0 with SMTP; 7 Mar 2002 05:54:43 -0000 Message-ID: <3C872B69.589E062E@uber.com.br> Date: Thu, 07 Mar 2002 05:57:13 -0300 From: =?iso-8859-1?Q?Jos=E9?= Romildo Malaquias Organization: UFOP X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.18 i686) X-Accept-Language: en MIME-Version: 1.0 To: Edwin Groothuis Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FreeBSD installed slice was renamead by Windows XP installer References: <3C853C4C.B0437102@uber.com.br> <3C855FEE.7090509@owt.com> <3C86AD9A.67BD8766@uber.com.br> <20020307110541.E503@k7.mavetju.org> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Edwin Groothuis wrote: > On Wed, Mar 06, 2002 at 09:00:26PM -0300, José Romildo Malaquias wrote: > > Kent Stewart wrote: > > > > > José Romildo Malaquias wrote: > > > > > > > I have installed FreeBSD 4.5 on my box in slice ad0s4. Another day > > > > I have also installed Windows XP on my box in slice ad0s1. I do not > > > > know why, but after Windows installation, slice numbering on my > > > > disk was changed. Now the FreeBSD slice is ad0s3. And of course > > > > I am unable to boot into FreeBSD successfuly. At boot time, the > > > > root file system can not be mounted and I am asked what device > > > > file to use in mounting it. Then I tell to mount it using /dev/ad0s3a. > > > > It is then mounted in read only mode, but the other file systems also > > > > fail mounting because of the same reason. I am presented > > > > with a prompt for a shell to be used. In the shell I try to > > > > mount the remainder files systems, but the system tells me > > > > that the corresponding device does not exist. In fact, doing > > > > an 'ls -l /dev/ad0s3*' command, I see that there is only the > > > > /dev/ad0s3 device file. So I do not know how to proceed to > > > > solve this problem. > > > > > > cd /dev > > > sh MAKEDEV ad0s3h > > > > > > It will make everything. > > > > The root file system is being mounted in read only mode. Therefore > > the device files can not be created. Also the /etc/fstab file can not > > be edited to reflect the new partitions. > > > > How can I mount the root file system in read-write mode in this > > situation? > > Go to single-user mode and just mount it. That will work, trust me :-) Unfortunatly it did not work. I have booted in single user mode (boot -s) and the system initialized correctly, although the root file system was mounted read only (as expected for single user mode booting). But remounting the root file system in read-write mode failed: # mount -u / mount: /dev/ad0s4a on /: specified device does not match mounted device # mount -t ufs /dev/ad0s3a / mount: /dev/ad0s3a: No such file or directory Now I do not know what to do get my root file system mounted in read-write mode. If I do not specify the device file in the mount command, the system seems to consult the /etc/fstab file, which is wrong. If I instruct mount to use the correct device file, mounting files because the device file does not exist. Maybe the system can be booted from a floppy boot disk (which I do not own). In this case, how should I proceed? Any new clues? Romildo -- Prof. José Romildo Malaquias Departamento de Computação http://iceb.ufop.br/~romildo Universidade Federal de Ouro Preto romildo@iceb.ufop.br Brasil romildo@uber.com.br To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message