WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: usb pendrive (fat) only root can modify it  (Read 2231 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
usb pendrive (fat) only root can modify it
« on: May 04, 2009, 06:02:35 AM »
sometimes my usb pendrive cannot be modified by norml user.
I cannot create dir for example, but with root yes.
dCore user

Offline alu

  • Sr. Member
  • ****
  • Posts: 429
Re: usb pendrive (fat) only root can modify it
« Reply #1 on: May 04, 2009, 07:11:02 AM »
my experience with my 16GB pendrive and two prtitions (sda1 for boot with 16MB and the rest [sda2] for my files) was that sometimes (mostly after uninstalling some tce extensions), sda2 have been remounted read-only, and then i had not any chance to write in my directories, neither as a user, nor as root; i have reformatted it fat32 with only one partition, and since i don't have any issue of that kind

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14797
Re: usb pendrive (fat) only root can modify it
« Reply #2 on: May 04, 2009, 08:40:25 AM »
Assuming your usb stick is formatted with a linux file system, this would depend on what you're trying to modify - usually the root of the file system would be owned (not surprisingly) by root, so if you're trying to add a directory like /myfolder, you would need to be root.

If you've already created a directory /myfolder and set its permissions to tc:staff then you should be able to create/modify directories and files within /myfolder

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: usb pendrive (fat) only root can modify it
« Reply #3 on: May 04, 2009, 10:07:14 AM »
Your choice of filesystem must be able to support permissions. We don't run everything as root here.
10+ Years Contributing to Linux Open Source Projects.