Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Linux Only Recognises Usb Drive As Read-only
Habble
post Dec 4 2007, 05:58 AM
Post #1


Premium Member
Group Icon

Group: [HOSTED]
Posts: 286
Joined: 17-June 07
From: Tasmania
Member No.: 22,699



Hi.

I have a 2gb Cruzer Micro (USB Drive), that I use for transferring files between computers. It works fine whenever I use computers with Windows, but on Linux it has a problem, it keeps saying the drive's read only. I don't know if this is a bug to do with Linux or just My USB Drive locking itself when it doesn't recognise the OS as Windows.

When I had SuSE 10.1, in GNOME. It would hardly work at all in Nautilus. It was really slow and kept freezing, and I had to use Konqueror.
I now Have Ubuntu 7.10, with GNOME, and I can view and copy files from it fine in the File Browser (Presumably still Nautilus), except when I try to write to it, it says it's a read-only disk. And that's the message I get when I try to change the permissions, as well.

It was a while since I got my usb drive, but I'm pretty sure there weren't any drivers I needed, and even if there were, I'm 99% sure there wouldn't be any for Linux.

So....
Help? Please! unsure.gif

Go to the top of the page
 
+Quote Post
Sten
post Dec 4 2007, 06:20 AM
Post #2


Oh come on Mrs. B!
Group Icon

Group: Members
Posts: 648
Joined: 6-June 07
From: Tasmania, Australia
Member No.: 22,422



i had this problem using my usb drive in kubuntu when i had it. i no i fixed it but i cant remember how. i gather its an k/x/edu/go/ubuntu thing. later on i could go on centOS and see wot it does about my usb drive and if it has the same problem then ill try and fix it and tell you how. although i think it works in centOS.

lol at least u have ubuntu, i have an iso which im not gonna do anything with for a while. i think we're getting a new cd/dvd drive soon, i hope we do anyway, the computer wont recognise mine anymore and when it did it couldnt read or write from and to discs.


Go to the top of the page
 
+Quote Post
polarysekt
post Dec 4 2007, 11:42 PM
Post #3


Advanced Member
Group Icon

Group: Members
Posts: 128
Joined: 12-February 05
From: St. Louis, MO
Member No.: 2,612



for 1 -- what is the filesystem on the drive? since you mentioned windows i would almost guess you might have formatted it with ntfs...

also... linux doesn't allow the chmod command on filesystems that are mounted as read only.... my only suggestion for now would be to try to mount your drive as read/write with permissions for the user with which you login... however, this doesn't work too well for ntfs drives, as most distros of linux support r/w on ntfs drives only partially, and without warranty... obviously, ntfs is a proprietary format --

so really, if it is an ntfs drive, but you want it compatible for read/write with both windows and linux you should look into the fat32 filesystem... as long as you dont want to cram 4gb files on there (i mean 4gb per one file, not total) -- fat32 should work just fine...

however, i distrust Microsoft's format utility, because (at least with the windows 2k version I tried) likes to screw up after wasting about a half an hour...

you might want to look into a linux partitioning utility... i think the one for ubuntu would be "qtparted" --- which you should be able to find with your software updater...
on the other hand, since i use openSUSE (10.3 now) -- i just use the parted utility which is actually encapsulated by YaST2...

<<<MAKE SURE YOU UNMOUNT THE DRIVE BEFORE YOU TRY TO FORMAT IT>>>


I myself have two external hdd's... one i formatted fat32... and the other i formatted ntfs (well, actually the person who gave it to me formatted it in this way...) -- unfortunately i'm stuck on the ntfs drive because it fails repeatedly to format fat32, saying it's too large... which of course is funny, because it's about half the size of my fat32 external... all in all, I gave up because of time, and because I just plugged it into my windows xp system, and have avoided linux for now...
I would reformat it for real, but it's quite timely to distribute my files across my network to the various computers with little space to hold the files... basically i'm poor and running low on quality disk space, so I have to split it up across computers, and reassemble when I reformat the hard drive as ntfs...


all in all, since you said it was a USB stick... i'm pretty sure you should have little or no difficulty formatting it fat32 as it shouldn't be too large...


if you filesystem is in fact fat32 already... then you may just simply have to look into your fstab and see if somehow linux didn't decide to mount it as read-only...


as far as the device is concerned... i'm pretty sure they could care less what operating system you're currently using...

hope this helps at least a little...
Go to the top of the page
 
+Quote Post
Habble
post Dec 5 2007, 07:23 AM
Post #4


Premium Member
Group Icon

Group: [HOSTED]
Posts: 286
Joined: 17-June 07
From: Tasmania
Member No.: 22,699



The filesystem on it is FAT. But... I also have another 256mb usb drive using FAT, and that works fine with both Linux and Windows.
Go to the top of the page
 
+Quote Post
ethergeek
post Dec 6 2007, 03:22 PM
Post #5


Premium Member
Group Icon

Group: [HOSTED]
Posts: 393
Joined: 9-March 07
From: Tucson, AZ
Member No.: 20,794



QUOTE(Habble @ Dec 5 2007, 12:23 AM) *
The filesystem on it is FAT. But... I also have another 256mb usb drive using FAT, and that works fine with both Linux and Windows.


Take a look at the kernel log. You might be getting a ton of filesystem panics that are causing the kernel to pop it on readonly. I get this occasionally when I b0rk one of my truecrypt containers by not unmounting it properly.

CODE
dmesg | grep -i panic
will show you any panic messages. If you're seeing alot of them relative to the disk, copy all the files you can to another disk and use dosfsck to fix the FAT partition, or, since you've backed it up anyway, just mkfs.vfat on the sucker so you have a proper FAT32 filesystem on there.
Go to the top of the page
 
+Quote Post
xboxrulz
post Dec 7 2007, 12:48 AM
Post #6


Colonel Panic
Group Icon

Group: [MODERATOR]
Posts: 2,881
Joined: 25-March 05
From: Toronto, Ontario, Canada
Member No.: 3,233
myCENTs:22.53



can you post what's listed on your /etc/fstab?
Example of FSTAB


xboxrulz
Go to the top of the page
 
+Quote Post
Habble
post Dec 9 2007, 06:10 AM
Post #7


Premium Member
Group Icon

Group: [HOSTED]
Posts: 286
Joined: 17-June 07
From: Tasmania
Member No.: 22,699



Here's my fstab:

Go to the top of the page
 
+Quote Post
Sten
post Dec 9 2007, 06:15 AM
Post #8


Oh come on Mrs. B!
Group Icon

Group: Members
Posts: 648
Joined: 6-June 07
From: Tasmania, Australia
Member No.: 22,422



how come ur step dad always calls your computer brick? y cant he just keep it as localhost.

i remember when i came to ur house and u had suse. one of the first things i noticed was that it was called brick... i spose if he really wants to...


Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Running Linux on slow computers(12)
  2. Now Linux is ease(9)
  3. Linux SuSE detec you all hareware(2)
  4. You can Play now in Linux(26)
  5. What's The Difference Between Linux And Unix?!?(18)
  6. What Language Is Linux Written In ?(15)
  7. Where To Find Notepad++ For Linux ?(37)
  8. What Made You Switch To Linux?(61)
  9. Psybnc - Howto(4)
  10. Looking For Linux(34)
  11. How To Install Linux Without A CD or DVD?(11)
  12. What Softwares Should I Get To Linux?(6)
  13. Diablo 2 In Linux?(10)
  14. Linux?(3)
  15. What Is Linux(2)
  1. So, I Want To Try Out Linux.(9)
  2. How To Play Music And Movie In Linux? Which Is The Good One?.(6)
  3. Some Usefull Linux Basic Commands And Utilities. Please Add To This List If You Know One.(0)
  4. How To Copy File & Folders From Linux To Windows?.(12)
  5. Access Linux Box From Windows Machine- Putty Tool(2)
  6. Linux For Beginners- Easy To Install(16)
  7. Linux Basic Command - For Storing Compilation Error To File(1)
  8. Choice Of Motherboard For Linux Virtualization(5)
  9. Why Linux?(23)
  10. Which Linux Version For Newbies?(14)
  11. Linux Software Installation Help(2)
  12. I Want To Get Linux, Which One Is Best?(6)
  13. When And What Is Your First Linux Experience?(4)


 



- Lo-Fi Version Time is now: 5th December 2008 - 12:09 AM