LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 05-23-2007, 02:54 AM   #1
hexstar
LQ Newbie
 
Registered: Sep 2004
Location: Internet
Distribution: MacOS X
Posts: 26

Rep: Reputation: 15
Post Trouble mounting external usb hard drive ufs formatted


Hello, I have a bsd ufs hard drive that I want to mount in Mac OS X (10.4.9 PPC). Upon plugging it in Mac OS X tells me that it doesn't recognize the drive and asks if I want to initialize the drive, I of course click no. I investigate using the Terminal, and I've discovered that the drive is /dev/disk6 ...upon entering "sudo file -s /dev/disk6" (minus the quotes) I get:

/dev/disk6: Unix Fast File system (little-endian), last mounted on /mnt, last written at Sun May 13 05:22:02 2007, clean flag 1, number of blocks 244193292, number of data blocks 240328927, number of cylinder groups 2597, block size 16384, fragment size 2048, minimum percentage of free blocks 8, rotational delay 0ms, disk rotational speed 60rps, TIME optimization

So it obviously sees and understands the drive...yet whenever I try to mount it (after making /Volumes/txt) via a command like (minus the quotes): "sudo mount -vt ufs /dev/disk6 /Volumes/txt" I get the following error (minus the quotes): "/dev/disk6 on /Volumes/txt: Incorrect super block."

In addition when I try the following to get more information on the disk it also fails (minus the quotes): "sudo fdisk /dev/disk6" output: "fdisk: /dev/disk6 is not a character device or a regular file"

So what am I doing wrong? This must be possible since the core of Mac OS X is BSD and this is a BSD UFS formatted external USB HD and in addition file -s shows that Mac OS X does understand the drive...so what must I do to get this drive to mount??? Thanks!

P.S. Other drives that are mounted I've noticed have a location of /dev/disk#s# but I cannot seem to find the s# for this drive....please help, thanks

Also in case it matters here's the command my friend used to format the drive and its output:

username_removed_for_privacy# newfs -O 1 /dev/da4
/dev/da4: 476940.0MB (976773168 sectors) block size 16384, fragment size
2048 using 2597 cylinder groups of 183.69MB, 11756 blks, 23552 inodes.
super-block backups (for fsck -b #) at:
32, 376224, 752416, 1128608, 1504800, 1880992, 2257184, 2633376, 3009568,
3385760, 3761952, 4138144, 4514336, 4890528....

It looks like there are some superblock backups specified there, can I use one of them to successfully mount the drive and if so how?

P.S. I am into archiving old vintage computing related files and my friend had a good bunch of them and so I asked him if he could make me a copy, he said sure but he'd need me to buy a 500gb hd for him to put the files on. So I did, he then informed me that the files were on a BSD machine and so we concluded that UFS would be best (since I saw UFS as a format option in Disk Utility and since the core of Mac OS X is BSD I assumed connecting a BSD UFS drive to Mac OS X wouldn't be a issue). So he then formatted the HD UFS, copied the files to the HD and mailed the HD to me. I then unpacked the HD and tried accessing it on Mac OS X and that brings us to where we are now . Due to distance issues it would be best if I could figure out a way to get to the files on the drive in its current format of BSD UFS, so if anyone could please help me that'd be greatly appreciated (as opposed to say mailing the drive back to him and asking him to reformat the drive in a different format and recopying all the files). Thanks!
 
Old 05-24-2007, 04:13 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 70
Quote:
Originally Posted by hexstar
So it obviously sees and understands the drive.
This is not entirely correct… It obviously sees the drive as a valid block device (thus the problem is not hardware). The implementation of “file” can obviously read certain magic numbers and deduce the type and information about the volume on the drive (thus, raw reading of the device is ok). This does not mean the kernel is able to understand and mount the volume.
Quote:
Originally Posted by hexstar
since I saw UFS as a format option in Disk Utility and since the core of Mac OS X is BSD I assumed connecting a BSD UFS drive to Mac OS X wouldn't be a issue
I don’t think the Darwin implementation of UFS is 100% compatible with *BSD UFS (even when you can mount them, it’s often read-only). For one thing, endian issues might make the thing unmountable altogether (PPC is big-endian, while file reports a little-endian volume).
Quote:
Originally Posted by hexstar
it would be best if I could figure out a way to get to the files on the drive in its current format of BSD UFS
I would suggest some sort of virtual machine, whence you can access the files through some sort of file server.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble mounting external usb hard drive in openSuSe 10.2 birdofprey Linux - Hardware 3 04-19-2007 12:02 AM
External USB Hard Drive Mounting Problem with SuSe Linux 9.0 des_a Linux - Distributions 6 03-22-2007 10:08 PM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
Mounting root filesystem from an external USB hard drive? ChrisHart Linux - Laptop and Netbook 6 04-02-2005 10:49 PM


All times are GMT -5. The time now is 12:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration