Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Aug 1997 10:55:27 -0400
From:      Randall Hopper <rhh@ct.picker.com>
To:        hackers@freebsd.org
Subject:   ? "sysinstall" errors labeling a new disk
Message-ID:  <19970821105527.53931@ct.picker.com>

next in thread | raw e-mail | index | archive | help
     I'm trying to do something I think should be very simple -- run
sysinstall on an installed system to allocate a sizable free slice of disk
to FreeBSD.  This will be "wd1s2", with the intent of having:

      wd1s2b: 128Meg   - SWAP 
      wd1s2e: the rest - UFS @ /share3

FDISKING in sysinstall worked flawlessly:

      Custom-Partition-wd1-Create-<CR>-<CR>-Write-Yes

Then, I got the new slice layed out in the disklabel editor:

      Label-Create-128M-SWAP-Create-<CR>-FS-/share3

So far, looks good.  

                                 ---

BUT I try to "Write" and I get:

   >> "Unable to add /dev/wd1s2b as a swap device: Device not configured" <<

ktracing sysinstall, I see it's trying to:

      swapon( "/dev/wd1s2b" )

I'm wonderering why its trying to do that--I can do it later.  Anway, going
on it then immediately forks off:

      newfs -b 8192 -f 1024 /dev/rwd1s2e

It appears it attempted no "disklabel" before this, so newfs fails.  I
guess sysinstall doesn't check the newfs command for failure since it then
goes on and tries to mount the partition:

      mount( ..., "/share3", ..., "/dev/wd1s2e" )

which returns Invalid argument yielding the:

   >> "Error mounting /dev/wd1s2e on /share3 : Invalid argument" << 

dialog.  

If I try the "newfs -b 8192 -f 1024 /dev/rwd1s2e" by hand in the shell, I 
get:

      "newfs: /dev/rwd1s2e: `e' partition is unavailable"

The /dev/rwd1s2e device file does exist, and "disklabel wd1s2" in the shell
confirms the slice was never disklabeled (all blocks are in "c").


Shouldn't sysinstall be doing a disklabel?  Any idea what I'm doing wrong
or if this is a sysinstall bug?  

I'd welcome any tips, suggestions, and even enlightening flames.  Before I
resort to disklabeling via cmd-line, I'd like to make sure that sysinstall
isn't an option -- it's definitely the easier and safer way to go if it can
work for folks that don't

Thanks,

Randall



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970821105527.53931>