WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] Flash Drive read only?  (Read 5117 times)

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
[SOLVED] Flash Drive read only?
« on: December 04, 2012, 06:44:13 AM »
Hello!

After installing Core (4.7.1) on a HD, I needed to copy some files from a USB pendrive and put some others into it.

The problem is that I can't write to the Flash Drive, mounting it from the MountTool or by command line. It is FAT32 formatted.

Am I doing something wrong?

« Last Edit: December 04, 2012, 02:05:47 PM by Zendrael »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Flash Drive read only?
« Reply #1 on: December 04, 2012, 08:27:40 AM »
Hi Zendrael
What error message are you getting? Is it  Permission denied ? Run the command:
Code: [Select]
ls -l /mnt/The permissions field for the flash drive should be   drwxrwxrwx

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: Flash Drive read only?
« Reply #2 on: December 04, 2012, 10:09:05 AM »
Hi Rich!

Even doing (forcing) "sudo chmod 777 -Rf /mnt/sdb1" (or sdb, or the name it gets) it doesn't let me write on it!

The error message is "Could not write to a Read Only filesystem".

As this installation of Core is just a pure install from CorePlus, maybe I had to install some extension to write to FAT32 flash drives (pendrives)?

I don't think that it is some sort of problem with the install or the hardware...

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Flash Drive read only?
« Reply #3 on: December 04, 2012, 10:16:20 AM »
Are you SURE it is not NTFS?  NTFS is read only without installing the ntfs3g extension.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Flash Drive read only?
« Reply #4 on: December 04, 2012, 10:29:35 AM »
Please paste output of:
"mount|grep sd"
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: Flash Drive read only?
« Reply #5 on: December 04, 2012, 02:05:12 PM »
Hello!

Gerald_clark, it is FAT32 for sure (confirmed in other Linux machine and Mac)

Tinypoodle, the output is:
Code: [Select]
/dev/sda1 on /mnt/sda1 type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/sda1 on /home type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/sda1 on /opt type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/sdb1 on /mnt/sdb1 type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

AND... it worked! What I did was to delete all partitions, created a new one (FAT32) and it worked! I still don't know why it didn't let me write into it before but now it works!

Now I'm embarrassed about what happened and for not having thought of doing this before ... I'm sorry! And many thanks for the help!

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: [SOLVED] Flash Drive read only?
« Reply #6 on: December 04, 2012, 02:31:47 PM »
,errors=remount-ro)
You must have encountered an error.

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: [SOLVED] Flash Drive read only?
« Reply #7 on: December 04, 2012, 02:52:07 PM »
,errors=remount-ro)
You must have encountered an error.

Yes, maybe that was causing me headaches! Haha!