On 4/21/22 11:46 AM, michal.lyszczek@bofc.pl wrote:
> Hello,
>
> So I have OpenBSD 6.8 (yeah I know), and are trying to upgrade to
> 6.9 (and version by version until 7.1:)). Problem is that installer
> does not see disk. This is my very first time I upgrade OpenBSD,
> so I might be missing something simple. I've read through the upgrade
> documentation, and tried to google my problem but I could not fix
> my problem.
>
> I upgrade with sysupgrade. After boot I try to select root disk:
>> Available disks are: .
>> Which disk is the root disk? ('?' for details) ?
>> sd0: NVMe, Samsung SSD 970, 2B2Q (232.9G)
>> Available disks are: .
>> Which disk is the root disk? ('?' for details) sd0
>> sd0 is not a valid root disk.
>> Available disks are: .
>
> Going into shell, /dev/sd0* do not exist. So I tried to create nodes:
>> upgrade# ./MAKEDEV sd0
>
> Now disklabel shows proper disk info
> (label is from samsung 960, even though I have samsung 970 disk.
> I migrated some time ago from 960 to 970, guess I must have used
> dd to do it, hence label from previous disk. I assure you I have
> only 1 disk inserted, and no usb disks).
>> upgrade# disklabel sd0
>> # /dev/rsd0c:
>> type: SCSI
>> disk: SCSI disk
>> label: Samsung SSD 960
>> duid: dc999ef6267325df
>> flags:
>> bytes/sector: 512
>> sectors/track: 63
>> tracks/cylinder: 255
>> sectors/cylinder: 16065
>> cylinders: 30401
>> total sectors: 488397168
>> boundstart: 1024
>> boundend: 488397105
>> drivedata: 0
>>
>> 16 partitions:
>> # size offset fstype [fsize bsize cpg]
>> a: 8400960 1024 4.2BSD 2048 16384 12960
>> b: 67119581 8401984 swap
>> c: 488397168 0 unused
>> d: 134223072 75521568 4.2BSD 2048 16384 12960
>> e: 278652416 209744640 4.2BSD 4096 32768 26062
>> i: 960 64 MSDOS
>
> fdisk
>> upgrade# fdisk /dev/rsd0c
>> Disk: /dev/rsd0c Usable LBA: 64 to 488397104 [488397168 Sectors]
>> #: type [ start: size ]
>> ------------------------------------------------------------------------
>> 1: EFI Sys [ 64: 960 ]
>> 3: OpenBSD [ 1024: 488396081 ]
>
> But when I exit shell I still have the very same problem as at the
> beginning and I can't select root disk. Strange thing is, that when
> I exit shell to installer, and then go back to shell with "!",
> /dev/sd0 disappears.
that part is normal; I'm not sure why, but /dev seems to be "cleaned" if you
exit the install script under some (most?) circumstances.
This really isn't a way to work towards figuring out what is going wrong,
but being that a problem with the 6.8 to 6.9 upgrade isn't going to be
fixed at this point, I'm kinda thinking it would be worth just doing a manual
upgrade to 6.9 via copying over the kernel and untaring the files and see if
6.9 to 7.0 goes better.
If you want to play it safe, maybe just copy the new bsd to /bsd69 and
then do a "boot bsd69" and make sure it sees the disks properly before
committing to an actual upgrade. You will probably get all kinds of nasty
error messages, but if so, you know 6.9 is seeing the disk, and a full
upgrade should be safe.
Nick.
No comments:
Post a Comment