Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 04 Jul 2020, 06:32
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
USB stick is set to read-only, how to change it? (Solved)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [25 Posts]   Goto page: 1, 2 Next
Author Message
totolanio

Joined: 03 Jan 2015
Posts: 202

PostPosted: Thu 07 Apr 2016, 09:19    Post subject:  USB stick is set to read-only, how to change it? (Solved)  

Hello,

Everytime I use my USB stick on puppy, it's read only.
It wasn't the case months ago.

Very annoying.

What can I do ?

_________________
Main puppy used : LxPup tahr.
Multiple package installer/remover.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 2081
Location: Japan

PostPosted: Thu 07 Apr 2016, 10:12    Post subject:  

File system is FAT32? Happened to me twice.

You could try to repair the corrupt fs with Puppy (I tried with command fsck /dev/sdb1, but never succeeded), or you could try to use the stick on a Windows machine. I think in XP it was Right-click - Properties - Tools -Scan for bad sectors. This did the trick for me. After all MS should know best how to repair its own creation Wink
Back to top
View user's profile Send private message 
totolanio

Joined: 03 Jan 2015
Posts: 202

PostPosted: Thu 07 Apr 2016, 11:10    Post subject:  

Yes its fat32 (i thought it was ntfs but no).

I also read on this forum that I can simply move all files and reformat it. Would it happen with NTFS ?

_________________
Main puppy used : LxPup tahr.
Multiple package installer/remover.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 2081
Location: Japan

PostPosted: Thu 07 Apr 2016, 11:28    Post subject:  

totolanio wrote:
I also read on this forum that I can simply move all files and reformat it.
Haven't tried it, but should work.

Quote:
Would it happen with NTFS ?
Would what happen? Bad sectors? Yes.
Back to top
View user's profile Send private message 
totolanio

Joined: 03 Jan 2015
Posts: 202

PostPosted: Thu 07 Apr 2016, 12:02    Post subject:  

is ntfs more prone to corruption than fat32 or less?
_________________
Main puppy used : LxPup tahr.
Multiple package installer/remover.
Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 897

PostPosted: Thu 07 Apr 2016, 13:38    Post subject:  

NTFS being a journaling FS is better than fat32.
But if you use that usb stick to connect to music system or TV etc, then they will not probably recognize NTFS.
So better keep it Fat32.

I think fsck also has options to detect and repair bad sectors.
Got to search...
Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 897

PostPosted: Thu 07 Apr 2016, 13:45    Post subject:  

http://ubuntuforums.org/showthread.php?t=1203357
http://askubuntu.com/questions/147228/how-to-repair-a-corrupted-fat32-file-system
So we need fsck.vfat command for fat32 fs.
Or testdisk is also recommended.
Back to top
View user's profile Send private message 
Burn_IT


Joined: 12 Aug 2006
Posts: 3699
Location: Tamworth UK

PostPosted: Thu 07 Apr 2016, 14:40    Post subject:  

It depends very much on your use and requirements.
If you are transferring a lot of data to none known devices - then FAT32 or FATExt are better since they are more widely read - though this is less a problem nowadays.
If you are repeatedly writing to the USB Fat32 and FATExt will use up the write cycles more slowly since each NTFS write uses extra cycles for the journal as well.
If You are writing seldom, but reading a lot then NTFS is the way to go especially with many small files.
Of course none of this explains why it has suddenly become read only, though there IS a bit (flag) than can be set to make it do this. on some sticks.

_________________
"Just think of it as leaving early to avoid the rush" - T Pratchett
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13636
Location: Arizona USA

PostPosted: Thu 07 Apr 2016, 15:16    Post subject:  

I had some kind of problem with a couple of FAT-32 flash drives, I can't remember if Puppy said they were "read-only" or what, but Gparted found that the boot flag was set, which I didn't need, and the problem went away after removing the boot flag with Gparted.
Back to top
View user's profile Send private message 
Burn_IT


Joined: 12 Aug 2006
Posts: 3699
Location: Tamworth UK

PostPosted: Thu 07 Apr 2016, 15:30    Post subject:  

The boot flag/bit and the read/write bit are different bits - though they may well exist within the same byte so if either is set using the wrong technique, the other could easily be affected.
_________________
"Just think of it as leaving early to avoid the rush" - T Pratchett
Back to top
View user's profile Send private message 
nic007


Joined: 13 Nov 2011
Posts: 3435
Location: Cradle of Humankind

PostPosted: Thu 07 Apr 2016, 15:39    Post subject:  

I have an mmc card stuck in read only. Also FAT32, not even Windows can fix it. Even tried some "registry trick" I found on the internet, zilts, nothing works.
Back to top
View user's profile Send private message 
nic007


Joined: 13 Nov 2011
Posts: 3435
Location: Cradle of Humankind

PostPosted: Thu 07 Apr 2016, 15:43    Post subject:  

Flash wrote:
I had some kind of problem with a couple of FAT-32 flash drives, I can't remember if Puppy said they were "read-only" or what, but Gparted found that the boot flag was set, which I didn't need, and the problem went away after removing the boot flag with Gparted.

Gparted can't fix a read-only drive. It won't even access it and will search until doomsday
.
Back to top
View user's profile Send private message 
Burn_IT


Joined: 12 Aug 2006
Posts: 3699
Location: Tamworth UK

PostPosted: Thu 07 Apr 2016, 15:46    Post subject:  

Quite likely!!
_________________
"Just think of it as leaving early to avoid the rush" - T Pratchett
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 6369
Location: King's Lynn, UK.

PostPosted: Thu 07 Apr 2016, 18:31    Post subject:  

Hi, totolanio.

May have nothing at all to do with this, but.....your 'stick' isn't a SanDisk Cruzer 'Blade', by any chance?

The reason I ask is because SanDisk had a major manufacturing upset with the 'Blades' a couple or three years ago.....and their advice was that 'there is no 'fix'.' Send it back to them, and get a replacement.

It turned out they'd purchased a huge 'duff' batch of flash controller chips from Hynix, who refused to take them back.....especially since the problem only appeared totally at random. Once the chips went into 'read-only' mode, that was it. There was no solution. The SanDisk forums, at the time, were snowed under with complaints from people with exactly this problem; the outcome being, of course, that there are still hundreds of thousands of these sticks floating around out there in the marketplace.

It seemed to specifically concern the 16 GB models.....although there were reports of some 8 GB models being affected, too.


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13636
Location: Arizona USA

PostPosted: Thu 07 Apr 2016, 20:44    Post subject:  

nic007 wrote:
Gparted can't fix a read-only drive. It won't even access it and will search until doomsday.

Then Puppy must not have said the drive was read-only, though I can't imagine what else the problem could have been. All I can remember for sure is that the problem was gone after the boot flag was removed.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [25 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0619s ][ Queries: 11 (0.0150s) ][ GZIP on ]