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 14th November 2008
rativid rativid is offline
New User
 
Join Date: Nov 2008
Posts: 1
Default mounting external XFS HDD

I'm try to mount my external HDD with XFS but i got error:
Code:
mount_xfs /dev/sd0a /mnt/flashdrive/ 
mount_xfs: Device not configured
dmesg:
Code:
umass0 detached
umass0 at uhub0 port 3 configuration 1 interface 0 "JMicron USB to ATA/ATAPI Bridge" rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <SAMSUNG, J1TL415479, 0-12> SCSI2 0/direct fixed
sd0: 286168MB, 36481 cyl, 255 head, 63 sec, 512 bytes/sec, 586072368 sec total
Kernel have XFS option
What are I'm doing wrong
Thanks in advance
Reply With Quote
  #2   (View Single Post)  
Old 15th November 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

I see two problems, the second is just me over-analyzing.

1) mount_xfs(8) is not for SGI's XFS file system:
Quote:
Originally Posted by mount_xfs(8)
The xfs filesystem was written primarily to make a free, AFS-compatible filesystem (Arla). But since the xfs interface is simple and generic it could be used for other filesystems as well.
2) sd0a is likely the wrong partition.. but #1 makes this point irrelevant.
Reply With Quote
  #3   (View Single Post)  
Old 3rd September 2010
tetrodozombie tetrodozombie is offline
Real Name: bill slusser
Banned
 
Join Date: Dec 2009
Location: atlanta, ga
Posts: 82
Default Here's what works for me to mount a flash drive:

sudo mount -t msdos /dev/sd0i /mnt

that's it.

if you have more than one scuzzi and this doesn't work, try sd1i, sd2i, sd3i etc. depends on the number of scsi's.
Reply With Quote
  #4   (View Single Post)  
Old 3rd September 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by tetrodozombie View Post
sudo mount -t msdos /dev/sd0i /mnt

that's it.
Not necessarily. If nine other FFS partitions exist on the disk, then the first foreign filesystem will be lettered "j". The definitive answer is to check the output of disklabel(8) to find the exact partition letter.
Quote:
if you have more than one scuzzi and this doesn't work, try sd1i, sd2i, sd3i etc. depends on the number of scsi's.
There is no guesswork needed. Given the OP:
Quote:
Originally Posted by rativid View Post
Code:
umass0 detached
umass0 at uhub0 port 3 configuration 1 interface 0 "JMicron USB to ATA/ATAPI Bridge" rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <SAMSUNG, J1TL415479, 0-12> SCSI2 0/direct fixed
sd0: 286168MB, 36481 cyl, 255 head, 63 sec, 512 bytes/sec, 586072368 sec total
USB attached devices will be identified in the run-time messages sent to the console & appended to the end of the dmesg(8) buffer. In this example, a USB device was attached to /dev/sd0.

Some may wonder why "i" is typically seen as the partition of MS-DOS partitions. Disks can only identify sixteen partitions, & "i" is the mid-way between the end-points "a" & "p".
Reply With Quote
  #5   (View Single Post)  
Old 3rd September 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

@tetrodozombie, that will only work if there is a recognized MBR partition with an MS-DOS (FAT) file system on it.

The device that mounted, per the post, was sd0. To see what MBR partitions are on the drive, ratavid can try:
# fdisk sd0
If one (or more) of those partitions is FATnn, then ratavid can use:
# disklabel sd0
to see if the MBR partition(s) have been assigned virtual BSD partition letters. These start with "i", if "i" is unused.

(EXT2/3, FATnn, CD9660, and UDF are the only supported foreign media-based filesystems supported by the project. NTFS is experimental, requires a custom kernel, and has other caveats.)
Reply With Quote
  #6   (View Single Post)  
Old 3rd September 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

This is a horribly outdated post made a few years back, no doubt by a user who is long gone.

Why are you reviving it Bill? especially with information that is generally known and/or mentioned in the FAQ?

Heck, even my response to him is outdated, mount_xfs was renamed mount_nnpfs as few releases ago.
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
mounting NTFS external hard disk. bsdnewbie999 OpenBSD General 16 4th September 2010 01:59 PM
PF NAT and 2 external nic´s Calderon FreeBSD Security 20 9th September 2009 12:46 PM
External Ips zomo OpenBSD General 12 20th November 2008 09:47 AM
Mounting External harddisk rex FreeBSD General 1 3rd June 2008 09:34 PM
ssh/external access jwhal OpenBSD General 11 21st May 2008 07:19 PM


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


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