
OpenBSD 4.4를 실행하는 작은 서버가 있습니다. 일부 파일을 이동하기 위해 16GB USB 플래시 드라이브를 연결하려고 합니다. 나는 팔로우했다디스크 설정 문서을 클릭하고 원하는 파티션의 레이블과 파일 시스템을 찾으세요. 그러나 파티션을 마운트하려고 하면 다음과 같은 결과가 나타납니다.
# mount -t ext2fs /dev/sd1i /mnt/flash
mount_ext2fs: /dev/sd1i on /mnt/flash: specified device does not match mounted device
구글링을 해봤지만 특별히 도움이 되는 내용은 찾지 못했습니다. 이 메시지를 설명할 수 있는 사람이 있나요?
편집하다:
추가 정보
# disklabel sd1
disklabel: warning, DOS partition table with no valid OpenBSD partition
# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: SanDisk Ultra
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 1946
total sectors: 31266816
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
c: 31266816 0 unused 0 0
i: 31262427 63 ext2fs
답변1
글쎄, 실제 오류 메시지를 놓친 것으로 밝혀졌습니다. dmesg는 다음과 같이 보고합니다.
Ext2 fs: unsupported inode size
이 사실을 발견했을 때 Google 검색을 통해 OpenBSD 4.4의 ext2fs는 128비트 inode 크기만 지원한다는 사실이 밝혀졌습니다. 플래시 드라이브를 다시 Linux 컴퓨터로 옮기고 mke2fs -I 128
재포맷을 사용했습니다. 짜잔! 이제 질문에 제공된 설치 명령을 사용하여 BSD 시스템에 드라이브를 성공적으로 설치할 수 있습니다.
답변2
잘못된 파일 시스템 유형을 호출했을 가능성이 높습니다.
ext2fs는 일반적으로 Linux 전용이며 대부분의 드라이브는 FAT를 사용합니다. 저는 fat32를 사용해 보려고 합니다. 그러면 자동으로 설치됩니다.
fdisk를 사용하여 파티션이 무엇인지 확인할 수 있습니다. (/dev/sd1i가 장치라고 가정)
#fdisk -l /dev/sd1i
에서:http://en.wikipedia.org/wiki/USB_flash_drive
Most flash drives ship preformatted with the FAT12, FAT16 or FAT32 file systems. The ubiquity of this file system allows the drive to be accessed on virtually any host device with USB support. Also, standard FAT maintenance utilities (e.g. ScanDisk) can be used to repair or retrieve corrupted data. However, because a flash drive appears as a USB-connected hard drive to the host system, the drive can be reformatted to any file system supported by the host operating system.