DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th July 2008
map7 map7 is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 75
Default FreeBSD 7.0 hangs with USB disk drive.

I'm running FreeBSD 7.0-p3 and I've got a 1TB Seagate SATA drive in a Laser USB caddy, formatted as FAT32 in two partitions 499GB and the rest on the second.

When I connect the drive up and start to mount the first partition it freezes my machine after a few seconds. Unplugging the drive doesn't change anything.

I have tried different USB ports, I'm currently testing this using the USB ports on the motherboard itself. I'm using an ASUS A8V Deluxe.
Reply With Quote
  #2   (View Single Post)  
Old 28th July 2008
Weaseal's Avatar
Weaseal Weaseal is offline
Package Pilot
 
Join Date: May 2008
Location: East Coast, US
Posts: 177
Default

So the error occurs only after mounting, not after plugging it in? Does it happen if you plug it in without mounting? Can you switch to the first terminal (Alt-F1 or Ctrl-Alt-F1 if you are in X) and see what sort of output you get? Can you post the last few lines of 'dmesg' after the device is plugged in?
__________________
FreeBSD addict since 4.2-RELEASE.
My FreeBSD wiki.
Reply With Quote
  #3   (View Single Post)  
Old 29th July 2008
map7 map7 is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 75
Default

It doesn't happen everytime, but it is when I mount the drive. Sometimes whilst it's mounting the hang will occur other times it could be running for a few hours and hang. I've been using this machine and have had it running 100 days without a problem until I start using USB media. I had this same problem on other FreeBSD machines.

The problem does not happen if I just plugin the drive and leave it there unmounted.

Here is what I get in my dmesg when I connect the drive, pretty standard output:

Code:
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <ST310003 40AS > Fixed Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 953869MB (1953525168 512 byte sectors: 255H 63S/T 121601C)
I tried a few times under the first terminal, but could not make it fail.

Also if I mount a USB drive, then remove it without umounting (which I know is wrong), this hangs the computer under FreeBSD but this doesn't happen on Debian is there a reason for this?

It seems the only stability problems I have with FreeBSD all come down to the USB devices on my machines.
Reply With Quote
  #4   (View Single Post)  
Old 29th July 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

My bet is that, it's because you have HUGE Fat32 disks.
I'm using msdosfs on flashstick for long time, and no problem...
Reply With Quote
  #5   (View Single Post)  
Old 29th July 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Default

Many Linuces now kind of auto-mount drives/slices they discover. Feature or annoyance?
Thes slices are dynamically mounted as /media/disk, media/disk-1, media/disk-2, ...
These mount points are transient: contrary to mount points you define in the /etc/fstab (you needed to mkdir for), at another reboot those transient mount points will reflect the hardware as existing at that time.
My observation, I don't know the name of the mechanism.
Tip: label your slices.

FAT-32 large drives.
Not all fdisks are created equal , *BSD fdisk's can describe very large disks.
Some DOSes still have a 82/137 GB limit.

Terabytes external USB drives.
Usually are sold as Windows compatible. They even include backup software and other goodies. (and a driver !!!)
Repartitioning such drives is a bad idea.

Own made USB/eSATA externals.
As said, use a *BSD fdisk to be certain.
Or, since you use FAT-32, first partition and format the drive with your Windows OS and test it a while under Windows. Then only try it with other OSes.
__________________
da more I know I know I know nuttin'
Reply With Quote
  #6   (View Single Post)  
Old 29th July 2008
map7 map7 is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 75
Default

Is there a way to setup FreeBSD so that 'mount points are transient' like linux. I find the the USB stack under debian based systems much more stable.

For instance if you mount a USB under FreeBSD and remove it without unmounting, then reinsert the USB flash drive, FreeBSD hangs. If I do the same under debian it's fine. I really like FreeBSD for it's package system, security and stability, but it is annoying if you forget to unmount and it hangs your machine. I know that you should always unmount but if you don't it shouldn't crash the system, is there anyway to fix this?
Reply With Quote
  #7   (View Single Post)  
Old 8th August 2008
mousesack's Avatar
mousesack mousesack is offline
Port Guard
 
Join Date: May 2008
Posts: 18
Default

Quote:
Originally Posted by map7 View Post
Is there a way to setup FreeBSD so that 'mount points are transient' like linux. I find the the USB stack under debian based systems much more stable.
I don't recall debian coming configured with HALd for usb etc. Could anyone enlighten me?
Reply With Quote
  #8   (View Single Post)  
Old 9th August 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Default

Quote:
Originally Posted by map7 View Post
Is there a way to setup FreeBSD so that 'mount points are transient' like linux. I find the the USB stack under debian based systems much more stable.

For instance if you mount a USB under FreeBSD and remove it without unmounting, then reinsert the USB flash drive, FreeBSD hangs. If I do the same under debian it's fine. I really like FreeBSD for it's package system, security and stability, but it is annoying if you forget to unmount and it hangs your machine. I know that you should always unmount but if you don't it shouldn't crash the system, is there anyway to fix this?
You are encountering weird issues. I've removed drives unsafely only to replug them seconds later on my FreeBSD box, with no issues at all.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
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
Formatting Hard Disk Drive to UFS in OS X 10.5 Turquoise88 Other BSD and UNIX/UNIX-like 1 7th March 2009 09:57 PM
About the FreeBSD mall disk set haemulon FreeBSD General 2 10th February 2009 07:39 PM
FreeBSD hangs on boot Bubba_HoTep FreeBSD General 3 29th November 2008 10:25 PM
FreeBSD + Disk speed graudeejs FreeBSD Installation and Upgrading 9 19th November 2008 09:33 PM
Dual-booting WinXP, FreeBSD; unlikely disk geometry ronaldmcdonald9 FreeBSD Installation and Upgrading 6 11th July 2008 06:10 PM


All times are GMT. The time now is 04:47 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