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 August 2008
bsdforlife bsdforlife is offline
Real Name: Ridge Allen
Port Guard
 
Join Date: Aug 2008
Location: /dev/null
Posts: 10
Thanked 0 Times in 5 Posts
Default Why Does FreeBSD reboot if USB Drive Is Removed before unmount

I was on FreeBSD and I put in my standard usb drive and after I was finished with it. I accidently Removed it with out unmounting it.. Well my system rebooted and I was wondering why does it do this???? And is there anyway to prevent it from doing this...
Reply With Quote
  #2   (View Single Post)  
Old 28th August 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Likely crashed the kernel, nobody can help you.. because you didn't provide enough information.

What release of FreeBSD are you using?
Can you perhaps post a dmesg?
Reply With Quote
  #3   (View Single Post)  
Old 28th August 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,052
Thanked 118 Times in 93 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
What release of FreeBSD are you using?
Can you perhaps post a dmesg?
No need for that mate, its known FreeBSD bug/problem.
When you remove mounted device it will CRASH, always.

The only sollution is to use amd(8).
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #4   (View Single Post)  
Old 28th August 2008
bsdforlife bsdforlife is offline
Real Name: Ridge Allen
Port Guard
 
Join Date: Aug 2008
Location: /dev/null
Posts: 10
Thanked 0 Times in 5 Posts
Default Thanks

Thanks I was wondering what was causing that problem.I will try and get that amd up and running
Reply With Quote
  #5   (View Single Post)  
Old 29th August 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

There are patches to FreeBSD 7-STABLE and 8-CURRENT that fix most situations where this occurs with USB devices. Not all of them, but most of them. These should be part of the 7.1-RELEASE. Check the -stable and -current mailing list archives for more details.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #6   (View Single Post)  
Old 29th August 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

Quote:
Originally Posted by vermaden View Post
No need for that mate, its known FreeBSD bug/problem.
When you remove mounted device it will CRASH, always.

The only sollution is to use amd(8).
That's one option. The other is hald/dbus/policykit, which is what I use.
__________________
"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
  #7   (View Single Post)  
Old 1st September 2008
michaelrmgreen's Avatar
michaelrmgreen michaelrmgreen is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 49
Thanked 0 Times in 5 Posts
Default

If it's a mounting/unmounting problem you could try the mtools. I use them all the time with no mounting/unmounting.

(That is, however with 6.3, 7.x may be different, IDK)

Last edited by michaelrmgreen; 1st September 2008 at 11:28 AM.
Reply With Quote
  #8   (View Single Post)  
Old 1st September 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

I just encountered this behavior a couple of days ago too.
__________________
"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
  #9   (View Single Post)  
Old 2nd September 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Thanked 40 Times in 39 Posts
Default

This is an interesting issue.

For many years, it was considered to be unavoidable: After all, if an attached hard disk went awol mid-session, it seemed like panicing was the only sane thing for the OS to do.

Then, with removable USB devices, this started happening more often, but still most developers considered a panic to be the correct response, as it always had been in the past.

One of the developers of PC-BSD wondered why this should be, went digging for the actual cause(s), and found only relatively simple, fixable bugs in the pathways (seldom used in fixed servers!) that only occurred when a filesystem device was removed.

So now the FreeBSD developers have made similar fixes, I see. Nice to know!

But still, umount your filesystems before removing devices: Kernel Panics were only half the story - filesystem corruption is still as much of an issue as it ever was. Still, I would like to be able to put mount/umount code in devfs.rules, and have it just work(TM)!
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
Old 2nd September 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

That's right, the only other commonly removable SCSI devices were CD-ROM's, fortunately they had technology that locked the bay and prevented spontaneous removal.

Still.. I'm sure it's not only the FreeBSD developers fault, a lot of devices have quirks/bugs themselves.

If anything, it should force you to stick with the time tested umount(8) command.
Reply With Quote
Old 2nd September 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,052
Thanked 118 Times in 93 Posts
Default

Does this new USB stack already works in 8-CURRENT I did not had time to check that out?
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
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
which Flash Drive I must buy for FreeBSD and OpenBSD mfaridi General Hardware 18 22nd October 2008 07:43 PM
FreeBSD 7.0 hangs with USB disk drive. map7 FreeBSD General 7 9th August 2008 03:02 AM
moving freebsd install to new drive carpman FreeBSD General 7 7th August 2008 06:09 PM
Boot freeBSD from USB drive? s25 FreeBSD General 9 17th June 2008 07:47 AM
FreeBSD 7.0 hard drive problems. Errinok FreeBSD Installation and Upgrading 8 13th June 2008 03:24 PM


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