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
  #1   (View Single Post)  
Old 28th October 2014
bluemorph bluemorph is offline
New User
 
Join Date: Oct 2014
Posts: 5
Thanked 0 Times in 0 Posts
Default input/output error | mounting usb stick

i want to mount a usb stick; according to my disklabel /dev/sd1i the FS is "ext2fs", but after mount -t ext2fs dev/sd1i /mnt/key/ Im receiving
an "input/output error".

unfortunately, i cant find relating issues on the web. All my sources said, it should work after these steps.
I would be very grateful for some advice.

Thx :3
Reply With Quote
  #2   (View Single Post)  
Old 28th October 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,893
Thanked 214 Times in 189 Posts
Default

Hello, and welcome!

I assume your example command has a typo when entered here, and that you meant (and used) /dev/sd1i.

When a disk (or a USB stick) does not have an OpenBSD disklabel, OpenBSD will read the MBR partition table and map those partition types it knows into an in-memory, temporary disklabel. It's called an "in-core" disklabel.

If an MBR partition type is 0x83, this is defined as any native Linux file system. Since the only such foreign file system OpenBSD can mount is ext2 or ext3 (mounted in ext2 mode), this may be why the in-core disklabel was mapped as ext2fs. If your filesystem is ext4, or reiserfs, or any other Linux file system, OpenBSD cannot mount it.
Reply With Quote
  #3   (View Single Post)  
Old 29th October 2014
bluemorph bluemorph is offline
New User
 
Join Date: Oct 2014
Posts: 5
Thanked 0 Times in 0 Posts
Default

Thanks for the welcome greeting :3 & yes, that was a typo.

Ehm, i thought "ext2fs" is the FAT FS - i honestly dont know, how i come up with this idea^^

Anyway, according to some OpenBSD forum threads mount_msdos should support all FAT filesystems. But mount -t msdos /dev/sd1i /mnt/key results in an inappropriate file type or format error.

Code:
If your filesystem is ext4, or reiserfs, or any other Linux file system, OpenBSD cannot mount it.
So , if OpenBSD dont support all FAT filesystems & the above applies to FAT FS too i have probably the false FS on my USB Stick. :/

Maybe I could loop the USB Stick through OpenBSD to a Linux VM?

Anyway thanks for your explanations.
Reply With Quote
  #4   (View Single Post)  
Old 29th October 2014
ibara's Avatar
ibara ibara is offline
Package Pilot
 
Join Date: Jan 2014
Posts: 173
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jggimi View Post
If your filesystem is ext4, or reiserfs, or any other Linux file system, OpenBSD cannot mount it.
OpenBSD can mount ext4 hard drives. Read-only though.
__________________
@bcallah on app.net
NYC*BUG
Reply With Quote
  #5   (View Single Post)  
Old 29th October 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,893
Thanked 214 Times in 189 Posts
Default

Quote:
Originally Posted by bluemorph View Post
Ehm, i thought "ext2fs" is the FAT FS
Nope. FAT is a Microsoft filesystem. Your filesytem, still unidentified, is a Linux filesystem.
Quote:
Anyway, according to some OpenBSD forum threads mount_msdos should support all FAT filesystems.
It does.
Quote:
But mount -t msdos /dev/sd1i /mnt/key results in an inappropriate file type or format error.
That is because, whatever filesystem you have, it isn't FAT. Your MBR partition table identifies the partion as type 0x83. FAT file systems use other values.

Quote:
Originally Posted by ibara View Post
OpenBSD can mount ext4 hard drives. Read-only though.
Thanks for the correction!
Reply With Quote
  #6   (View Single Post)  
Old 30th October 2014
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,251
Thanked 182 Times in 149 Posts
Default

We still haven't seen the fdisk(8) and disklabel(8) output of your USB stick
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #7   (View Single Post)  
Old 2 Weeks Ago
bluemorph bluemorph is offline
New User
 
Join Date: Oct 2014
Posts: 5
Thanked 0 Times in 0 Posts
Default

Hello,

firstly, sry that i did not respond, had to prepare some important exams..
secondly, the problem got solved, because i formatted the USB Stick to FAT32. It turned out, that i had used this stick to boot a linux distro few months ago.

Unfortunately the very bad ntfs support (Win7 & newer) forced me to change back again to linux. :/

warm regards :3
Reply With Quote
  #8   (View Single Post)  
Old 2 Weeks Ago
ibara's Avatar
ibara ibara is offline
Package Pilot
 
Join Date: Jan 2014
Posts: 173
Thanked 0 Times in 0 Posts
Default

Did you try sysutils/ntfs-3g?
__________________
@bcallah on app.net
NYC*BUG
Reply With Quote
  #9   (View Single Post)  
Old 2 Weeks Ago
bluemorph bluemorph is offline
New User
 
Join Date: Oct 2014
Posts: 5
Thanked 0 Times in 0 Posts
Default

According to a thread i've read here some days ago, the *BSD ntfs implementation only supports windows xp & older ntfs. Even if i could make use of this, the read/write support is still poor, so its recommend to use read only. But unfortunately i use a Win7 ntfs & need write support.
After Christmas, i will try to change the FS on my HDD, so i will see. Thanks anyway :3
Reply With Quote
Old 2 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,893
Thanked 214 Times in 189 Posts
Default

Did you try the package ibara recommended? That is the Tuxera NTFS driver, with read/write support. Same driver you'd find on Linux.
Reply With Quote
Old 2 Weeks Ago
ibara's Avatar
ibara ibara is offline
Package Pilot
 
Join Date: Jan 2014
Posts: 173
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bluemorph View Post
According to a thread i've read here some days ago, the *BSD ntfs implementation only supports windows xp & older ntfs. Even if i could make use of this, the read/write support is still poor, so its recommend to use read only. But unfortunately i use a Win7 ntfs & need write support.
From the description of the sysutils/ntfs-3g:
NTFS-3G is a stable, full-featured, read-write NTFS driver for Linux,
Android, Mac OS X, FreeBSD, NetBSD, OpenBSD, OpenSolaris, QNX, Haiku,
and other operating systems. It provides safe handling of the
Windows XP, Windows Server 2003, Windows 2000, Windows Vista,
Windows Server 2008 and Windows 7 NTFS file systems.

So if this is no good for you then the only thing good for you is Windows.
__________________
@bcallah on app.net
NYC*BUG
Reply With Quote
Old 2 Weeks Ago
bluemorph bluemorph is offline
New User
 
Join Date: Oct 2014
Posts: 5
Thanked 0 Times in 0 Posts
Default

Thanks a lot, i will try it shortly.
Reply With Quote
Reply

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
7.3-BETA1 Available...but no memory stick image J65nko FreeBSD Installation and Upgrading 1 28th May 2010 01:06 AM
Everything you want to know about Installing FreeBSD on a USB stick FBSD Guides 0 17th February 2010 08:22 AM
Error mounting installation image!!! flameelement FreeBSD Installation and Upgrading 0 14th February 2009 10:24 PM
make iso bootable from USB stick ccc FreeBSD General 2 30th October 2008 02:28 AM
C and file input/output 18Googol2 Programming 3 20th August 2008 04:02 PM


All times are GMT. The time now is 09:01 PM.


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