Advertisement

09.17.2007 at 11:02AM PDT, ID: 22833893
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

How to mount this USB hard disk?

Tags: usb, mount, disk, hard
Trying to mount a USB drive to use as a backup drive as the tape drive recently locked up.
Being a BSD noobx10 I am having a few problems that I hope someone can guide me through...

Existing mounts are:
/dev/ar0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ar0s1e on /tmp (ufs, local, soft-updates)
/dev/ar0s1f on /usr (ufs, local, soft-updates, acls)
/dev/ar0s1d on /var (ufs, local, soft-updates)
devfs on /var/named/dev (devfs, local)


Plugged in the USB disk and checked dmesg which looks OK up to "bad FAT32"

umass0: Maxtor Corporation Maxtor 3200, rev 2.00/0.01, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <Maxtor 3200 0343> Fixed Direct Access SCSI-4 device
da0: 1.000MB/s transfers
da0: 152627MB (312581808 512 byte sectors: 255H 63S/T 19457C)
mountmsdosfs(): bad FAT32 filesystem                               <---------------What to do about this
mountmsdosfs(): bad FAT32 filesystem

------------------------------------------------------------------------------------------------------------
 camcontrol devlist
Password:
<Maxtor 3200 0343>                 at scbus0 target 0 lun 0 (da0,pass0)
-----------------------------------------------------------------------------------------------------------
Then I tried to mount

mount /dev/da0 /mnt/usbdisk
mount: /dev/da0 on /mnt/usbdisk: incorrect super block

Then I tried to specify the file type and got:
mount -t msdos /dev/da0 /mnt/usbdisk
msdosfs: /dev/da0: Invalid argument

-------------------------------------------------------------------------------------------------------------
Maybe I need to wipe the existing disk partitions before I mount it, so I explored with fdisk...

fdisk /dev/da0
******* Working on device /dev/da0 *******
parameters extracted from in-core disklabel are:
cylinders=19457 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=19457 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
    start 63, size 312576642 (152625 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>


Are ALL external USB disk drives /dev/da0?   I want to be certain that any changes I make are actually to the USB external hard disk.
What is the best way for me to mount the drive I have plugged in?  I think that I need to use fdisk, but that only provided a listing not a menu like I have used with Suse linux.

Please provide clear step by step instructions, ie BSD 101 style.
Start your free trial to view this solution
Question Stats
Zone: OS
Question Asked By: zanotech
Solution Provided By: zanotech
Participating Experts: 2
Solution Grade: B
Views: 102
Translate:
Loading Advertisement...
09.17.2007 at 11:09AM PDT, ID: 19906910

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.17.2007 at 10:51PM PDT, ID: 19910487

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.18.2007 at 02:20AM PDT, ID: 19911266

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.18.2007 at 02:21AM PDT, ID: 19911273

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.18.2007 at 02:47AM PDT, ID: 19911388

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.18.2007 at 04:07AM PDT, ID: 19911666

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
10.17.2007 at 07:08PM PDT, ID: 20098396

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
10.17.2007 at 07:11PM PDT, ID: 20098405

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
10.18.2007 at 08:59AM PDT, ID: 20102110

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
10.18.2007 at 08:59AM PDT, ID: 20102114

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
10.18.2007 at 12:19PM PDT, ID: 20103813

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
10.22.2007 at 04:04AM PDT, ID: 20122166

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • Automotive
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Displays / Monitors
  • Handhelds / PDAs
  • Components
  • Peripherals
  • Laptops/Notebooks
  • Servers
  • Misc
  • Apple
  • Embedded Hardware
  • Networking Hardware
  • Storage
  • Desktops
  • New Users
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMware
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Virtualization
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • Web Computing
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Consulting
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMware
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Automation
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Web Services
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Web Computing
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Lounge
  • Business Travel
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
  • Automotive
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
09.17.2007 at 11:09AM PDT, ID: 19906910
Looks like the partition is NTFS, you'll need mount_ntfs for that.
man mount_ntfs

for more info...
 
09.17.2007 at 10:51PM PDT, ID: 19910487
Yes but I need to mount this USB drive to run backups to until a new tape drive is bought.
For flexibility, I'd like to use FAT32.  Do you know the best way I should convert the complete disk to FAT32 and mount it?
 
09.18.2007 at 02:20AM PDT, ID: 19911266
Forget FAT32, I'd be happy to mount this drive with the standard UFS, but trying the following hung the server!!
I got these instructions straight from pg 447 of the FreeBSD Handbook.

# sudo dd if=/dev/zero of=/dev/da0 bs=1k count=1
# sudo fdisk -BI da0
# bsdlabel -B -w /dev/da0s1
# newfs /dev/da0s1                    

For the last line THE HANDBOOK actually had
newfs /dev/da1s1e
Is the fact that I skipped the 'e' critical??

If it helps any, my bsdlabel output is
sudo bsdlabel  /dev/da0s1# /dev/da0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a: 312576626       16    unused        0     0
  c: 312576642        0    unused        0     0         # "raw" part, don't edit
 
09.18.2007 at 02:21AM PDT, ID: 19911273
I have made this 500 points because I am not so sure this is an easy one!
Noob calling BSD gurus...come in BSD gurus!!
 
09.18.2007 at 02:47AM PDT, ID: 19911388
Yes, you will need to define a 'slice' which is the e in the handbook.

Try this, it might be a easier to achieve your goeal.

sudo sysinstall
Configure->Fdisk

and see if the USB disk is one of the options. If so, you can go through all of the configuring by following the GUI
 
09.18.2007 at 04:07AM PDT, ID: 19911666
Thanks for your help.
One thing that I find confusing with BSD compared to say Suse linux is the slice and partition concept.
From my reading, a slice in my case is /dev/da0s1 and the partition is /dev/da0s1a as per my bsdlabel output 3 posts previous.  I don't want to appear pedantic, but while I am trying to learn BSD, I want to be as accurate as possible for my own (noob) sake, :-)

I tried to do the sysinstall method you suggested -
first using the fdisk menu
then the label menu
On trying to write the changes from the 'Label' menu I received in a little window the following:
Doing newfs -U -O2 /dev/da0s1d  
and the server has hung again! :-(
Oh my god...luckily this is after hours!  I have SSH access, but when I tried to access the server from another terminal, I can't connect.
Is there now any way to fix the server remotely, even reboot it?

Regards
Gordon
 
10.17.2007 at 07:08PM PDT, ID: 20098396
In the end, I had someone reboot the server with the power switch - ouch!

As the system has locked several times while trying to manage/create a partition on the external USB drive,  and none of the above suggestions could complete what I was trying to do, I decided to side step the issue by simply plugging the hard drive into a Suse linux laptop and format and drive with fdisk, then plugged it back into the BSD server.  It mounts fine now, so I really don't know where the problem was, and I have no time to investigate it, especially as the server will be upgraded in the next couple of months,  so it is case closed.
Accepted Solution
 
10.17.2007 at 07:11PM PDT, ID: 20098405
Even though no solution was found, I'd like to part allocate 100 points for TeRReF's efforts.
 
10.18.2007 at 08:59AM PDT, ID: 20102110
A request has been made in Community Support to close this question:
http://www.experts-exchange.com/Q_22900806.html

If there are no objections, a moderator will finalize this question in approximately 4 days as follows:
PAQ with refund using {http:#a20098396}

Please leave any recommendations here.

Vee_Mod
Community Support Moderator
 
10.18.2007 at 08:59AM PDT, ID: 20102114
Experts,
A request has been made in community support to PAQ this question and to give points to the contributing Experts for their efforts.  
Unfortunately, we are unable to fulfill such requests due to limitations in our system.
My thanks to the Asker for attempting to reward our volunteers.
Sincerely,
Vee_Mod
Community Support Moderator
 
10.18.2007 at 12:19PM PDT, ID: 20103813
Thanks zanotech, don't worry. I did it to help you, not to earn points :)
 
10.22.2007 at 04:04AM PDT, ID: 20122166
TeRReF,
Great attitude!
Thank you for the work you are doing.
V
 
 
10.22.2007 at 04:04AM PDT, ID: 20122167
Closed, 500 points refunded.
Vee_Mod
Community Support Moderator
 
 
 
20080236-EE-VQP-29 / EE_QW_1_20070628