From nobody@FreeBSD.org  Fri Dec  7 09:33:08 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 8E0DB37B405
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  7 Dec 2001 09:33:07 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id fB7HX7I44123;
	Fri, 7 Dec 2001 09:33:07 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200112071733.fB7HX7I44123@freefall.freebsd.org>
Date: Fri, 7 Dec 2001 09:33:07 -0800 (PST)
From: Mike Jakubik <mikej@trigger.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: System becomes unusable after performing disk operations using /stand/sysinstall
X-Send-Pr-Version: www-1.0

>Number:         32583
>Category:       conf
>Synopsis:       System becomes unusable after performing disk operations using /stand/sysinstall
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    jkh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 07 09:40:00 PST 2001
>Closed-Date:    Mon May 13 13:01:11 PDT 2002
>Last-Modified:  Mon May 13 13:01:11 PDT 2002
>Originator:     Mike Jakubik
>Release:        4.4-RELEASE
>Organization:
Trigger Internet Solutions
>Environment:
4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Sep 18 11:57:08 PDT 2001     murray@builder.FreeBSD.org:/usr/src/sys/compile/GENERIC  i386
>Description:
After using /stand/sysinstall to create a file system and partitions, the system practically ceases to exist. Commands are reported as not found, cd reports not found as well. New processes can not start, system becomes unusable and unstable. Soft reboot procedure is unable to complete properly (panics), data loss may occur. This can be a very serious problem when an admin attempts to do some disk configuration on a live system.
>How-To-Repeat:
System is an Intel D815EEA2 Desktop Board, 850Mhz Celeron CPU, 256MB RAM. Tested with an IBM and Seagate 20 gig hd. ad0 == root hd, ad2 == blank, unmounted hd.

/stand/sysinstall
Configure
Fdisk
ad2
A)ll
S)et bootable
W)rite
Standard
Quit, Cancel, Cancel, Exit

/stand/sysinstall
Configure
Label
ad2
C, 512M, Swap
C, <default values with remainder of drive>, FS, /
W)rite, Y
Quit, Cancel, Cancel, Exit

root@qos:~# ls
bash: ls: command not found

root@qos:~# uname -a
bash: /usr/bin/uname: No such file or directory

root@qos:~# cd /usr/bin
bash: cd: /usr/bin: No such file or directory

root@qos:~# echo *
*
>Fix:

>Release-Note:
>Audit-Trail:

From: "Mike Jakubik" <mikej@trigger.net>
To: <freebsd-gnats-submit@FreeBSD.org>,
	"Mike Jakubik" <mikej@trigger.net>
Cc:  
Subject: Re: conf/32583: System becomes unusable after performing disk operations using /stand/sysinstall
Date: Fri, 7 Dec 2001 15:04:32 -0500

 Ok, this was a stupid one. It seems the sysinstall program automatically
 mounts what you have created. This was a user error, however the program
 should do some sanity checks, and not allow any remounting, specially on /.
 

From: "Mike Jakubik" <mikej@trigger.net>
To: <freebsd-gnats-submit@FreeBSD.org>,
	"Mike Jakubik" <mikej@trigger.net>
Cc:  
Subject: Re: conf/32583: System becomes unusable after performing disk operations using /stand/sysinstall
Date: Fri, 7 Dec 2001 15:19:44 -0500

 Also, it would be nice to add some functionality that allows one to create a
 partition without specifying a mount point (or not to mount automatically),
 and the ability to specify the partition name (as the mount point seems to
 affect this).
 
 Thanks.
 
Responsible-Changed-From-To: freebsd-bugs->jkh 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Mon Dec 10 03:09:03 PST 2001 
Responsible-Changed-Why:  
Jordan is busy in this area. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32583 

From: Hiten Pandya <hitmaster2k@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org, mikej@trigger.net
Cc:  
Subject: Re: conf/32583: System becomes unusable after performing disk operations 
 using /stand/sysinstall
Date: Thu, 07 Mar 2002 00:20:43 +0000

 Does this problem still occur with bug fixes from RELENG_4_4_0 or
 with the newer 4.5 version of FreeBSD?
 
 -- 
  - Hiten Pandya
  - <hiten@uk.FreeBSD.org>

From: "Mike Jakubik" <mikej@trigger.net>
To: <hitmaster2k@yahoo.com>, <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: RE: conf/32583: System becomes unusable after performing disk operations  using /stand/sysinstall
Date: Thu, 7 Mar 2002 13:39:34 -0500

 I have not tried yet on newer releases, and i don't currently have the
 resources to do so. I will let you know the next time i get a chance to do
 this.
 
 Thanks.
 
 -----Original Message-----
 From: Hiten Pandya [mailto:hitmaster2k@yahoo.com]
 Sent: Wednesday, March 06, 2002 7:21 PM
 To: freebsd-gnats-submit@FreeBSD.org; mikej@trigger.net
 Subject: Re: conf/32583: System becomes unusable after performing disk
 operations using /stand/sysinstall
 Importance: High
 
 
 Does this problem still occur with bug fixes from RELENG_4_4_0 or
 with the newer 4.5 version of FreeBSD?
 
 --
  - Hiten Pandya
  - <hiten@uk.FreeBSD.org>
 

From: "Mike Jakubik" <mikej@trigger.net>
To: <hitmaster2k@yahoo.com>, <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: RE: conf/32583: System becomes unusable after performing disk operations  using /stand/sysinstall
Date: Tue, 2 Apr 2002 10:10:41 -0500

 Hello,
 
 	I have gotten a chance to test this again, and unfortunately the problem
 remains. After creating a label (on a live system, using /stand/sysinstall)
 which is mounted on / on another drive, sysinstall will remount / to the new
 drive after exiting leaving the system totally dead.
 
 Tested on:
 
 FreeBSD wettoast.net 4.5-STABLE FreeBSD 4.5-STABLE #0: Mon Mar 18 22:10:22
 EST 2002     root@wettoast.net:/usr/obj/usr/src/sys/DP  i386
 
 Thanks.
 
 > -----Original Message-----
 > From: Hiten Pandya [mailto:hitmaster2k@yahoo.com]
 > Sent: Wednesday, March 06, 2002 7:21 PM
 > To: freebsd-gnats-submit@FreeBSD.org; mikej@trigger.net
 > Subject: Re: conf/32583: System becomes unusable after performing disk
 > operations using /stand/sysinstall
 > Importance: High
 >
 >
 > Does this problem still occur with bug fixes from RELENG_4_4_0 or
 > with the newer 4.5 version of FreeBSD?
 >
 > --
 >  - Hiten Pandya
 >  - <hiten@uk.FreeBSD.org>
 >
 
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Mon May 13 12:59:55 PDT 2002 
State-Changed-Why:  
I cannot reproduce this and can only suspect from the symptoms that 
you must have hosed your boot volume.  I've certainly used sysinstall 
to partition/install _other_ disks without seeing anything like this happen. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=32583 
>Unformatted:
