Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Sep 2000 06:26:10 -0700 (PDT)
From:      Dima Dorfman <dima@unixfreak.org>
To:        JDBitters@cs.com
Cc:        freebsd-stable@freebsd.org
Subject:   Re: 4.1-STABLE BOOT SLICE PROBLEM
Message-ID:  <20000902132610.E432D1F17@static.unixfreak.org>
In-Reply-To: <e3.95ba093.26e2544c@cs.com> from "JDBitters@cs.com" at "Sep 2, 2000 09:02:04 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> Recently, I copied a 4.1-20000813-STABLE installation to a larger disk.
> 
> I used /stand/sysinstall to create a "dangerously dedicated" disk and to
> custom label it.  Thereafter, I mounted the new slices on temporary
> mount points on the old disk and copied the folders and files using
> Midnight Commander.  It all works like a charm with one exception.
> 
> My problem is that the root "/" partition installed on the "s1e" rather
> than the "s1a" slice The s1a slice does not exist on this disk.

I had a similar situation only a few days ago.  I don't know if this
is correct, or should even work, but it did for me.  Just change the
label from "e" to "a" using `disklabel -e ad?` (it will put you into
an editor, see `man disklabel` for more details).  For example, say
this is your current layout (use `disklabel ad?` to get this output):

[begin output]
<bunch of other stuff>

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  b:   196608    65536      swap                        # (Cyl.    4*- 16*)
  c:  8421840        0    unused        0     0         # (Cyl.    0 - 524*)
  e:    65536        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 4*)
  f:  1048576   262144    4.2BSD     1024  8192    16   # (Cyl.   16*- 81*)
  g:    65536  1310720    4.2BSD     1024  8192    16   # (Cyl.   81*- 85*)
  h:  7045584  1376256    4.2BSD     1024  8192    16   # (Cyl.   85*- 524*)
[end output]

Change the line which starts with "e" to "a" using `disklabel -e ad?`,
so it'll look like:

[begin output]
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  b:   196608    65536      swap                        # (Cyl.    4*- 16*)
  c:  8421840        0    unused        0     0         # (Cyl.    0 - 524*)
  a:    65536        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 4*)
  f:  1048576   262144    4.2BSD     1024  8192    16   # (Cyl.   16*- 81*)
  g:    65536  1310720    4.2BSD     1024  8192    16   # (Cyl.   81*- 85*)
  h:  7045584  1376256    4.2BSD     1024  8192    16   # (Cyl.   85*- 524*)
[end output]

After this you're going to need to make the device entry for your new
label (`cd /dev;sh MAKEDEV ad?s1a`) and you should be all set.

Although I used the IDE driver for all my examples, this should also
work for SCSI disks.  Also, while this shouldn't touch the actual data
on your disk, I strongly recommend you have a backup; just in case.

Hope this helps

-- 
Dima Dorfman <dima@unixfreak.org>
Finger dima@unixfreak.org for my public PGP key.

If only God would give me some clear sign!  Like making a large deposit
in my name at a Swiss bank.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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