Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jun 2002 18:00:38 -0700
From:      "Philip J. Koenig" <pjklist@ekahuna.com>
To:        questions@FreeBSD.ORG
Cc:        Axel Scheepers <axel@axel.truedestiny.net>
Subject:   Re: slice/partition/disklabel/disk copy question
Message-ID:  <20020607010039037.AAA494@empty1.ekahuna.com@pc02.ekahuna.com>

next in thread | raw e-mail | index | archive | help
> OK, so I'm sitting here with the emergency shell booting from the
> fixit CD.  I decided to try editing the disklabel, which looked easier
> than creating one from scratch.  Something about the fixit environment
> is unfriendly though - this is what I got:
> 
> 
> Fixit# disklabel -er /dev/amrd1s2
> disklabel: /mnt2/stand/vi: No such file or directory


OK, fixed this problem - for some reason when using the fixit CD from 
4.5-RELEASE, it sets an invalid "EDITOR" variable.  I reset that and 
disklabel -e now works. (maybe I should file a bug report?)

I fixed the disklabel by manually adjusting the values so the system 
doesn't complain on boot, and I installed booteasy on the first 
(MSDOS) partition.  

But now the problem is that it thinks there's no slice 1 on disk2, 
only a slice 2, so it won't boot. (The freebsd boot manager shows 2 
options: F1: MSDOS, and F2: disk 2) 

If I try to run fdisk from the fixit CD, I get:

Fixit# fdisk -s
fdisk: cannot open any disk: no such file or directory

The disklabel actually was changed by the system when I edited it to 
reflect what should be the correct slice, but when the system boots 
it doesn't think slice 1 exists:

Fixit# disklabel -r amrd1s2     (note the disk: line)

# /dev/amrd1s2
type: SCSI
disk: amrd1s1
[...]


Fixit# disklabel -r amrd1s1
disklabel: /dev/amrd1s1: no such file or directory


Any ideas how I can fix this?

Thx,

Phil



--
Philip J. Koenig                                       pjklist@ekahuna.com
Electric Kahuna Systems -- Computers & Communications for the New Millenium


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




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