LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-26-2013, 10:11 AM   #1
snakeman21
LQ Newbie
 
Registered: Oct 2013
Posts: 1

Rep: Reputation: Disabled
Strange trouble with flash drive... Works with FAT32, but not with ext2, 3, 4


Hi all. I'm a newbie to the forum, but certainly not to linux. Been using linux since about 2006, and have used more different flavors and distros than I can count. I'm currently using Xubuntu 13.04, and am having an issue that I just can't seem to crack. I have a 16GB Sandisk flash drive that has always been formatted to ext4 and has always worked fine. I formatted it to FAT32 a few weeks ago to allow for compatibility with the computers at my college. But I decided that I want this flash drive at home, and formatted a smaller (4GB) drive to FAT32 for school.

Now comes the issue. The 16GB drive that I replaced with the 4GB drive is still formatted to FAT32, but I want it formatted to ext4. Trouble is, now when I format it to ext4 (via gparted), the computer will recognize it and open it just fine, but it seems to be permanently read-only. Formatting it back to FAT32 fixes the problem and I can save things and delete them to my heart's content. Formatting back to ext4, ext3, or ext2 results in it being "bricked" again.

It bothers me because this flash drive was working fine with the ext4 filesystem before I switched it to FAT32 for school. I have tried changing permissions, changing ownership, wiping the drive and creating a fresh partition table, only to be stuck with the same problem.

Here's an interesting result I got, too: I used gparted to partition the drive with 2 primary partitions, one of them formatted to FAT32, the other, ext4. I did this just to verify that it was, in fact, the ext filesystem I couldn't use. Plugging in the drive after this caused both partitions to correctly mount simultaneously, both correctly displaying the names I gave them in gparted... AND THE SAME PROBLEM PERSISTS!!! I can write to the FAT32 partition just fine, but the ext4 partition is bricked. I have never seen this before, and I'm quite confused, especially considering the fact that I have other flash drives with ext4 that work fine. Hell, the hard drive of the laptop I'm using is ext4.

Any help would be appreciated... If I can't get this fixed, though, I suppose I could simply leave it as FAT32 and turn it into a Porteus or Slax drive.
 
Old 10-26-2013, 11:12 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
This is probably a permissions problem.
Format it to ext4
Plug it in, wait until it is mounted, then post the output of
Code:
ls -l /media/mountpoint
Note you may need to change /media/mountpoint to something like /media/snakeman - it depends on your setup.
 
1 members found this post helpful.
Old 10-26-2013, 11:32 AM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I've seen this a lot, I get around it by chmoding it when it's mounted.
 
Old 10-26-2013, 01:08 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
there are likely 2 partitions
if it reads as dev/sdg1
then you need to reformat in gparted sdg and sdg1

i would just zero out the usb drive using dd
then reformat it using gparted
 
Old 10-26-2013, 02:49 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Look at gparted to see if all the space is used and is being reported correctly?

I like the permission deal too. Might be multiple partitions or simply bad partition or overlay or faulty partition information.
 
  


Reply



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
Terminal commands: how to create a directory in ext2 partition on flash drive gordon__1 Linux - Newbie 6 01-14-2008 10:57 PM
usb flash drive / ext2 oddness slimjim Linux - Hardware 3 01-03-2007 05:20 PM
Strange USB flash drive behavior SamuelHenderson Linux - Hardware 3 09-17-2006 11:03 PM
formatting a usb flash drive to fat32 Haiyadragon Linux - General 4 07-10-2005 07:45 PM
Strange USB flash drive issue ValidiusMaximus Linux - Software 2 01-05-2005 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:13 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
Open Source Consulting | Domain Registration