USB drive not working properly, read only device? (USB key storage device)
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
USB drive not working properly, read only device? (USB key storage device)
I'm using Fedora Core 1. I configured my system to work with the usb key by adding the following to /etc/fstab:
/dev/sda1 /mnt/usbkey auto defaults,noauto,user 0 0
However the device is very flaky. I can read from it fine, however when I try to write to the card I get a message saying the "destination disk is read-only." This usually occurs after I've already written data to the usbkey. But once it happens, it seems I can never write to it again.
As a workaround I've been formatting the card in Windows to fat16, and then I'm able to write to the usb drive again until the read only problem happens again. What is the command to format the usb drive in linux? I wold like to use FAT so I can use the usbkey in both Windows and Linux. Thanks.
Distribution: Ubuntu Hoary 5.04 amd64 and Suse 10.0 x86_64
Posts: 3
Rep:
Holy hand-grenade... thank you so very much. I had been trying to figure out how to make my 60GB iAudio X5 MP3 player work in linux since I had to reformat it.
I couldn't format it with anything but NTFS in Windows XP because XP will not let you format anything with more than 32GB of storage with anything else. I found Swissknife and used that... only to find that it worked but was using a variation of FAT that was not readable in Linux...
Question, I have Slackware 10.2 and the 2.4.31 kernal, I even have my usb printer & Scanner working, Would
"/dev/sda1 /mnt/usbdrive vfat umask=0,user,iocharset=iso8859-1,codepage=850,noauto,quiet 0 0"
also work to setup a usb hard drive, and is that all I need to do to setup the device ? or what would you recommend ?
/dev/sda1 should correspond to the device file for the FAT32 partition you are mounting on your usb hard drive. That's usually the case, but not always. For example, if you have a sata drive with a primary partition, that would be sda1, not you usb hard drive. In that case, your first primary partition on the usb drive would probably be sdb1. It really depends on how your system is set up hardware wise and how the external drive is partitioned. You also have to have the proper modules loaded to detect a usb mass storage device. I believe they are loaded automatically in slack 10.2.
To check all this out is pretty easy. With the external hard drive not turned on, open a console and as root run:
# fdisk -l
That will list all the partitions that your system recognizes whether mounted or not. Now connect and turn on your external usb hard drive. Give it a moment to spin up and rerun:
# fdisk -l
You should see the new printout for your external hard drive which will list the partition structure and device file designation for the drive. If not, post back; you probably don't have the necessary usb/scsi modules loaded. If you do see it, you can adapt the line I gave to correspond to the device file you want to mount on the external hard drive.
I did fdisk -l just like you said, and it was there /dev/sda1 .
I added "/dev/sda1 /mnt/usbdrive vfat umask=0,users,iocharset=iso8859-1,codepage=850,noauto,quiet 0 0" to the fstab and I got an error message, something like /mnt/usbdrive does not exist, so I clicked on the /mnt directory, right clicked, created a new folder, renamed it usbdrive, I went back to system icon and clicked, and vioala it now works great, I tweaked permissions and It is now working perfectly !
As for the DVD+rw, it does not have an sda#, what would you suggest for that ?
Not sure what you want or what your problem is. You may want to start a new thread as this one is two years old. The fstab entry for a cdrom or dvd writer in slackware usually looks like this:
/dev/hd* /mnt/cdrom auto noauto,user,ro 0 0
where "hd*" corresponds to the device file for the drive.
cdarrah010,
I have reported your posts to be moved to their own thread. Its best to start a new thread instead of posting a reply to an old one which is really unrelated to yours. Some flash drives like Imations are not partitioned and do not have a MBR or partition table. I own a couple of them and the output of fdisk -l looks basically the same. You should be able to mount the drive using /dev/sdc instead of /dev/sdc1. Is your drive automounting but it is read only?
i try to reformat to fat32 in gparted by clicking delete partition, then hitting New, clicking fat32 for the filesystem and hitting create. i get a error stating that it
could not create new fat32 file system >
mkdosfs -f32 -v -n "" /dev/sdc1
mkdosfs 3.0.3 (18 May 2009)
mkdosfs: unable to open /dev/sdc1
which i don't know why it would want to open it because it was just deleted by the system... I feel a little bit like windows was designed for noobs like me...lol
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.