Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > The Community > Everything BSD > Question on unmounting storage device

Forgot Password?
 Everything BSD   For all discussions regarding Free/NetBSD and OpenBSD.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 01-04-2009   #1 (permalink)
Linux User
 
Join Date: Dec 2004
Posts: 324
Question on unmounting storage device

I have a 1GB USB stick attached and mounted on FreeBSD running KDE3. I loaded some files onto it and tried to unmount through the standard mounting tray and the error message read that I could only forcefully unmount and will lose data. The file /etc/fstab read:
Code:
# Device        Mountpoint              FStype          Options Dump    Pass#
/dev/ad4s1a     /                       ufs             rw      1       1
/dev/ad4s1b     none                    swap            sw      0       0
/dev/ad4s1d     /var                    ufs             rw      2       2
/dev/ad4s1e     /usr                    ufs             rw      2       2
/usr/tmp        /tmp                    nullfs          rw      0       0
procfs          /proc                   procfs          rw      0       0
linprocfs       /usr/compat/linux/proc  linprocfs       rw      0       0
After forcefully unmounting, the same file read:
Code:
# Device        Mountpoint              FStype          Options Dump    Pass#
/dev/ad4s1a     /                       ufs             rw      1       1
/dev/ad4s1b     none                    swap            sw      0       0
/dev/ad4s1d     /var                    ufs             rw      2       2
/dev/ad4s1e     /usr                    ufs             rw      2       2
/usr/tmp        /tmp                    nullfs          rw      0       0
procfs          /proc                   procfs          rw      0       0
linprocfs       /usr/compat/linux/proc  linprocfs       rw      0       0
In other words, if the file is the same, what is the matter here?
technossomy is offline  


Reply With Quote
Old 01-04-2009   #2 (permalink)
Linux Engineer
 
Freston's Avatar
 
Join Date: Mar 2007
Location: The Netherlands
Posts: 827
fstab is a file defining statical mount points, it wont get corrupted through these exercises

But I don't see your USB device in it. So it might be a permission issue. Devices not in fstab are handled differently, and that may lead to problems sometimes. But before that, lets not overlook the obvious.


Was the device still busy? Something like a filebrowser opened onto your device or a console with the device in the current path, marks the device as busy and will cause the unmount to fail.
And, if as I believe the FreeBSD default is, the write is asynchronous, any illegal or forced unmount will cause loss of data. That is because copying files to an external device (because of asynchonity) is actually not written to device but just set aside as a 'task to do later'. It's not until the device gets unmounted that the write is executed.
__________________
Can't tell an OS by it's GUI
Freston is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 01:54 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2