You are not logged in.

#1 2013-11-10 20:12:34

hfluz
Member
Registered: 2013-11-10
Posts: 3

I can't write to usb stick [solved]

I've installed arch on my notebook yesterday. It took a few hours, but I got almost everything working correctly.

My issue is that when I plug in a usb stick, it gets automatically mounted, but I can't write to it.

I had the same issue with my ntfs data partition, but I solved it by adding an entry to /etc/fstab.

Unfortunately that won't be  an efficient solution for usb sticks, since their partition type might vary.

/dev/sda1: LABEL="arch" UUID="6c7ecf62-2ffb-4bfe-9af0-39d7cdb89751" TYPE="ext4" PARTUUID="000e19e1-01" 
/dev/sda2: LABEL="swap" UUID="ff87fb8b-773b-45ca-9198-c2abf9a1a017" TYPE="swap" PARTUUID="000e19e1-02" 
/dev/sda3: UUID="AAACDC9DACDC657B" TYPE="ntfs" PARTUUID="000e19e1-03" 
/dev/sda4: LABEL="Dados" UUID="EC60740C6073DC30" TYPE="ntfs" PARTUUID="000e19e1-04"
/dev/sdb1: UUID="2013-11-01-08-10-26-00" LABEL="ARCH_201311" TYPE="iso9660" PTUUID="0d738582" PTTYPE="dos" PARTUUID="0d738582-01" 
[hfluz@hfluz-arch ~]$ sudo fdisk -l

Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000e19e1

Device    Boot      Start        End    Blocks  Id System
/dev/sda1            2048  398753791 199375872  83 Linux
/dev/sda2       398753792  402948095   2097152  82 Linux swap / Solaris
/dev/sda3       402948096 1399447551 498249728   7 HPFS/NTFS/exFAT
/dev/sda4      1399447552 1953519615 277036032   7 HPFS/NTFS/exFAT


Disk /dev/sdb: 14.8 GiB, 15879634944 bytes, 31014912 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0d738582

Device    Boot     Start       End Blocks  Id System
/dev/sdb1 *            0   1056767 528384   0 Empty
/dev/sdb2          84432    147919  31744  ef EFI (FAT-12/16/32)

My usb stick is /dev/sdb.

Anyone already had the same problem?

Last edited by hfluz (2013-11-11 16:40:38)

Offline

#2 2013-11-10 20:38:24

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: I can't write to usb stick [solved]

You can't write to the USB stick because it as the arch iso on it.  You have to now partition it and create a new filesystem.

Also, I'm not sure what you mean when you say you fixed being able to write to ntfs by adding it to fstab.  The stuff in /etc/fstab has nothing to do with whether or not your system has the ability write to ntfs filesystems.  Use the wiki please.

Last edited by WonderWoofy (2013-11-10 20:39:05)

Offline

#3 2013-11-10 20:49:43

MW
Member
Registered: 2007-07-27
Posts: 127

Re: I can't write to usb stick [solved]

Check your groups, you should be in the storage group.
https://wiki.archlinux.org/index.php/Users_and_Groups

Offline

#4 2013-11-10 20:57:04

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: I can't write to usb stick [solved]

MW wrote:

Check your groups, you should be in the storage group.
https://wiki.archlinux.org/index.php/Users_and_Groups

I don't think that the storage group covers this.  All USB storage devices that I have seem to come up as being part of the disk group.  You should really not make your user part of the disk group.

If you read the post, and saw the info provided by the OP, you would see that he/she is trying to write to an iso, which is read-only.

Offline

#5 2013-11-10 21:22:42

MW
Member
Registered: 2007-07-27
Posts: 127

Re: I can't write to usb stick [solved]

You are correct, I was sidetracked while replying and only focused on "usb-storage".
Like suggested, repartition and formate that drive and it should be good to go.

Offline

#6 2013-11-11 09:53:52

hfluz
Member
Registered: 2013-11-10
Posts: 3

Re: I can't write to usb stick [solved]

You're right. I removed that entry from fstab and I can still write to it, I'm not quite sure what I did, but that entry is still required to mount the partition without asking for root password.

About the usb stick, I'm used to unetbootin, so I didn't realize Win32 Disk Manager had repartitioned my pendrive. I repartitioned it again to its full size and now it's working again.

Thanks a lot.

Offline

#7 2013-11-11 16:35:55

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: I can't write to usb stick [solved]

Don't forget to mark the thread as [solved].  This can be done by editing the first post, which will also give access to editing the title.

As for the ntfs, do a search on the wiki for 'ntfs'.

Offline

Board footer

Powered by FluxBB