I hope this message finds you well. I am writing to you because I am attempting to format and partition a drive in OpenBSD but have been met with the following message:
virtual-server# fdisk /dev/sd1c
fdisk: /dev/sd1c is not a character device
virtual-server# lsblk
NAME SIZE TYPE COMMENT
sd0 50G SCSI Block Device
├─sd0a 1.0G 4.2BSD /
├─sd0b 1.2G swap
├─sd0c 50G unused
├─sd0d 3.2G 4.2BSD /tmp
├─sd0e 5.1G 4.2BSD /var
├─sd0f 5.3G 4.2BSD /usr
├─sd0g 1.0G 4.2BSD /usr/X11R6
├─sd0h 6.8G 4.2BSD /usr/local
├─sd0i 2.2G 4.2BSD /usr/src
├─sd0j 6.0G 4.2BSD /usr/obj
└─sd0k 17G 4.2BSD /home
sd1 100G SCSI Block Device
└─sd1c 100G unused
virtual-server#
What does fdisk: /dev/sd1c is not a character device
mean? I cannot find the error listed elsewhere but wanted to better understand what the issue is.
Note: lsblk
is installed from the package manager.
fdisk /dev/sd1
/dev/sd1
does not exist.virtual-server# fdisk /dev/sd1 fdisk: opendev('/dev/sd1', 0x0): No such file or directory virtual-server#
lsblk
clearly states thatsd1
is a block device. I'm assuming BSD (I haven't used it in 20 years) the physical devices are sd0, sd1 etc, and the partitions are the ones with letters after the 0, 1 etc? of course, theis not a character device
error looks really odd/dev/sd1c
exists, but that/dev/sd1
does not exist?sd1
doesn't exist, but thatsdl
does. Or vice versa if you're typing an L it's a 1.