DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
Old 19th June 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,254
Default

Quote:
Originally Posted by yetoo View Post
It could very well be possible, but every time I try a 32-bit medium it doesn't work either accept for a few select times. I need to keep on trying that though.
CPU make/model?
Reply With Quote
Old 20th June 2018
comet--berkeley comet--berkeley is offline
Real Name: Richard
Package Pilot
 
Join Date: Apr 2009
Location: California
Posts: 142
Default

Quote:
Originally Posted by yetoo View Post
I need to be able copy files with rsync to maintain the date of the file but when I try to mount using the command: mount /dev/rfd0Fc /mnt/floppy, I get a Block device required error. What do I do instead?
I have a 32-bit machine running OpenBSD 6.0.

The first thing to do is look at the dmesg for fd devices:
Code:
#grep fd /var/run/dmesg.boot
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
fd1 at fdc0 drive 1: 1.2MB 80 cyl, 2 head, 15 sec
Floppy devices are defined/configured in the BIOS on traditional Intel style 32-bit machines.

The next thing to do is
Code:
$man fdc
Since I have a 1.44MB 80 cyl floppy, my device is /dev/fd0B

Trying to figure out the partition to mount, I do:
Code:
 #disklabel fd0B
# /dev/rfd0Bc:
type: floppy
disk: floppy disk
label: fictitious
duid: 0000000000000000
flags:
bytes/sector: 512
sectors/track: 15
tracks/cylinder: 2
sectors/cylinder: 30
cylinders: 96
total sectors: 2880
boundstart: 0
boundend: 2880
drivedata: 0 

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  c:             2880                0  unused                   
  i:             2880                0   MSDOS
So partition "i" is the one I want.

And I do a disk check:
Code:
#fsck -p /dev/fd0Bi
/dev/fd0Bi: 14 files, 194 free (389 clusters)
And mount the drive:
Code:
#mount /dev/fd0Bi /mnt 
#df /mnt
Filesystem  512-blocks      Used     Avail Capacity  Mounted on
/dev/fd0Bi        2847      2458       389    86%    /mnt
#mount
/dev/wd0a on / type ffs (local, noatime)
/dev/fd0Bi on /mnt type msdos (local)
__________________
When you see a good move, look for a better one.
--Lasker
Reply With Quote
Old 20th June 2018
yetoo yetoo is offline
Port Guard
 
Join Date: Jun 2018
Posts: 17
Default

I just want to be clear, the machine that I am writing to the floppy with is 64-bit and the computer that I'm trying to get to read it is 32-bit. The image is 32-bit of course.
Reply With Quote
Old 20th June 2018
yetoo yetoo is offline
Port Guard
 
Join Date: Jun 2018
Posts: 17
Default

Also, none of the /dev/fd0{A/B-H} devices exist and an error states that they are an unknown special file or file system. Is this because it is using the default and omitting the letter? Either way when I try to mount with #mount /dev/fd0c /mnt/floppy I get an input/output error and I also get more input/output errors when I try to mformat.

Last edited by yetoo; 20th June 2018 at 03:02 AM.
Reply With Quote
Old 20th June 2018
comet--berkeley comet--berkeley is offline
Real Name: Richard
Package Pilot
 
Join Date: Apr 2009
Location: California
Posts: 142
Default

Quote:
Originally Posted by yetoo View Post
Also, none of the /dev/fd0{A/B-H} devices exist...
As I said "Floppy devices are defined/configured in the BIOS on traditional Intel style 32-bit machines."

Is the BIOS configured for a 1.44M floppy drive?

If not, then when installing/starting OpenBSD, the floppy drive will not be seen.

To fix this, modify the BIOS to configure a 1.44 floppy drive and then run MAKEDEV in OpenBSD to create new /dev/fd* devices.

After the floppy is configured in the BIOS it should also show up in the OpenBSD dmesg.
Code:
#grep fd /var/run/dmesg.boot
or
#dmesg |grep fd
__________________
When you see a good move, look for a better one.
--Lasker
Reply With Quote
Old 20th June 2018
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: France
Posts: 317
Default

Could you please copy/paste your dmesg here ?
__________________
The secret of wisdom is not wisdom itself, it's the road that leads us there.
Reply With Quote
Old 25th July 2018
hermano hermano is offline
New User
 
Join Date: Mar 2017
Posts: 8
Default

I'm wondering where on earth you get floppies these days.

Do you still have leftover AOHell floppies?
Reply With Quote
Old 25th July 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,254
Default

hermano, yes, one can still obtain this media.
Reply With Quote
Reply

Tags
floppy, mount

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
QEMU on OpenBsd, mounting a vnd0 device GarryR OpenBSD Packages and Ports 15 21st April 2018 07:22 PM
HOWTO: mounting an USB device as normal non-root user in OpenBSD J65nko Guides 6 20th May 2017 12:03 PM
Netstart / Required Reboots on Interface Changes dylanz OpenBSD General 0 17th June 2010 05:48 PM
Dos batch file administrator privileges required a6zj6 Other OS 1 12th June 2009 02:02 PM
Required packages for running X enpey FreeBSD Ports and Packages 7 20th August 2008 09:16 AM


All times are GMT. The time now is 12:46 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick