LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-24-2009, 08:42 AM   #1
gpatto1
LQ Newbie
 
Registered: Jan 2009
Posts: 6

Rep: Reputation: 0
USB thumb drive mounts read only in mandriva 2008


My 1 Gb Easy Disk thumb drive will mount only as read only in my Mandriva 2008 system.When I Try To safely remove it the error message is evice to unmount is not in /media/.mtab-hal so it is not mounted by HAL.My Compaq presario 2500 laptop is dual booted with XP and the drive works in that.
Any Ideas to try
Gpatto1
 
Old 01-24-2009, 10:44 AM   #2
CJ Chitwood
Member
 
Registered: Dec 2006
Location: Northern Half of Florida
Distribution: PCLinuxOS at home, openSuSE and Fedora23 at work. Antibuntu all the way.
Posts: 143

Rep: Reputation: 28
Welcome to the forum!

Since this was your first post, we know nothing about you. As such, I don't know what you know or don't know, so if this is Greek to you, please say so. Likewise, if it's below your level, let us know that too, so we can tailor the replies to your needs.

I don't have an answer for you, but, hopefully I'll help you get some more information here that will help us help you.

Could you post the contents of the file /etc/fstab and, while your device IS mounted, /media/.mtab-hal? I don't have any experience with Mandriva and in fact the last Mandrake I used was 9.0, but these files will probably help us see what your system's at least being told to do.

Maybe also, the output of the command mount both before and after you mount your device could help. You might post an excerpt from the output of the command dmesg from when you first insert the thumbdrive (the last 10 lines or so is usually sufficient, but it is obvious if you read it closely where the device is inserted). It may have clues regarding e.g. what driver the system is using for the device.

The file /media/.mtab-hal seems to be the Mandriva analog to /etc/mtab. It's contents should closely, if not identically, match the output of data from 'mount' (just formatted a little differently).

I know it doesn't help you know, but maybe this will help you help these other guys help you.

Good Luck...

Last edited by CJ Chitwood; 01-24-2009 at 10:49 AM. Reason: realized [s]he's a first-timer -- clean up the post a little, make a little easier to read...
 
Old 01-25-2009, 01:06 AM   #3
gpatto1
LQ Newbie
 
Registered: Jan 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Hullo CJ
This is my first post to any forum so please let me know if I am breaking any rules.
Thanks for your reply.I am a relative newbie with linux,using Mandriva for about a year but have not delved below the GUI much.Had to look up some tutorials to get the info you asked for.
I copied and pasted the results to Gedit and will paste them into this message.Let me know if you need anything else.
Cheers for now Graham (gpatto1)

//Contents of /etc/fstab

/dev/hda5 / ext3 noatime 1 1
/dev/hda6 /home ext3 noatime 1 2
/dev/cdrom /media/cdrom auto umask=0022,users,iocharset=utf8,noauto,ro,exec 0 0
/dev/fd0 /media/floppy auto umask=0022,users,iocharset=utf8,noauto,exec,flush 0 0
/dev/hda1 /mnt/windows ntfs umask=0022,nls=utf8,ro 0 0
none /proc proc defaults 0 0
/dev/sda1 /var/www vfat defaults 0 0
/dev/hda7 swap swap defaults 0 0
/etc/fstab lines 1-8/8 (END)

//file .hal-mtab is empty (Wrongly Called it .mtab-hal in my original post)


//Whilst Unmounted

[root@localhost ~]# mount
/dev/hda5 on / type ext3 (rw,noatime)
none on /proc type proc (rw)
/dev/hda6 on /home type ext3 (rw,noatime)
/dev/hda1 on /mnt/windows type ntfs (ro,umask=0022,nls=utf8)
/dev/sda1 on /var/www type vfat (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
[root@localhost ~]#

//Whilst Mounted

[root@localhost ~]# mount
/dev/hda5 on / type ext3 (rw,noatime)
none on /proc type proc (rw)
/dev/hda6 on /home type ext3 (rw,noatime)
/dev/hda1 on /mnt/windows type ntfs (ro,umask=0022,nls=utf8)
/dev/sda1 on /var/www type vfat (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sdb1 on /media/1GBUSBDISC type vfat (rw,nosuid,nodev,noatime,uhelper=hal,flush,uid=500,utf8,shortname=lower)
[root@localhost ~]#


//Last few lines of dmesg

usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
scsi 1:0:0:0: Direct-Access Easy Disk 1100 PQ: 0 ANSI: 0 CCS
sd 1:0:0:0: [sdb] 1980416 512-byte hardware sectors (1014 MB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 43 00 00 00
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 1:0:0:0: [sdb] 1980416 512-byte hardware sectors (1014 MB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 43 00 00 00
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 1:0:0:0: [sdb] Attached SCSI removable disk
sd 1:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete
[root@localhost ~]#
 
Old 01-25-2009, 01:32 AM   #4
CJ Chitwood
Member
 
Registered: Dec 2006
Location: Northern Half of Florida
Distribution: PCLinuxOS at home, openSuSE and Fedora23 at work. Antibuntu all the way.
Posts: 143

Rep: Reputation: 28
Quote:
Originally Posted by gpatto1 View Post
Hullo CJ
This is my first post to any forum so please let me know if I am breaking any rules.
Not that I'm aware of.

Quote:
Thanks for your reply.I am a relative newbie with linux,using Mandriva for about a year but have not delved below the GUI much.Had to look up some tutorials to get the info you asked for.
Nothing wrong with that; it's how we learn, after all!

Quote:
I copied and pasted the results to Gedit and will paste them into this message.Let me know if you need anything else.
Cheers for now Graham (gpatto1)

//Contents of /etc/fstab

/dev/hda5 / ext3 noatime 1 1
/dev/hda6 /home ext3 noatime 1 2
/dev/cdrom /media/cdrom auto umask=0022,users,iocharset=utf8,noauto,ro,exec 0 0
/dev/fd0 /media/floppy auto umask=0022,users,iocharset=utf8,noauto,exec,flush 0 0
/dev/hda1 /mnt/windows ntfs umask=0022,nls=utf8,ro 0 0
none /proc proc defaults 0 0
/dev/sda1 /var/www vfat defaults 0 0
/dev/hda7 swap swap defaults 0 0
/etc/fstab lines 1-8/8 (END)
I notice here that there is no entry for your thumbdrive, e.g. /dev/sdb1. Perhaps this is the result of using HAL, with which I have no experience. However, I don't see what adding an entry to /etc/fstab would hurt, seeing as there are other media listed there.


Quote:
//file .hal-mtab is empty (Wrongly Called it .mtab-hal in my original post)
I did not expect this. I'm not sure if the file should have anything in it or not, but I would expect it should. Yet if this were the problem, I'd think none of your drives would unmount. For grins and giggles, can you unmount /dev/sda1? What about /dev/hda1, your Windows partition?


Quote:
Originally Posted by Edited for Brevity: Showing just the line that's different...
/dev/sdb1 on /media/1GBUSBDISC type vfat (rw,nosuid,nodev,noatime,uhelper=hal,flush,uid=500,utf8,shortname=lower)
This tells me the drive is definitely mounted, and that "rw" right after the VFAT tells us it is mounted as read-write. Further, the "Write Protect is off" line in the dmesg output tells us it did detect that write access is enabled to the device. But HAL doesn't think it is, according to what you said in post 1. So it looks to me on the surface to be an issue with HAL.

I did a quick Google. This
is what I found. Some of what I've read on just one hit there seems to indicate the error you're receiving is completely erroneous (but with no indication that their problem was solved, I have no way of verifying that). They indicate that either there is still a file open on the device or some program has its present working directory pointed there (e.g., if you're in the Terminal and 'cd' into the thumbdrive's mounted directory, it will not umount until you 'cd' completely away from the drive). They suggest OpenOffice is bad about keeping files open even after they're "closed". Another possibility they mention is to remove the .Trash folder from the device in a File Manager. I don't know how useful that would be, though.


I wish I could be more help to you. Perhaps, though, there's enough information here now that someone else can...

Good luck!
 
  


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
External USB Drive will not Mount Mandriva 2008 Tony Littlejohn Mandriva 4 12-17-2007 02:34 PM
USB hard drive mounts as "Read Only Filesystem" augu2000 Linux - Hardware 11 07-12-2007 11:37 AM
USB flash drive (Pen drive) mounts read only prabhatsoni Linux - Hardware 24 07-02-2007 02:28 PM
USB thumb drive mounting as Read Only baryonyx SUSE / openSUSE 3 05-25-2006 01:57 AM
Lexar USB Jump drive mounts read only qaball Linux - Hardware 7 02-06-2004 08:22 AM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration