You are not logged in.

#1 2009-12-06 06:19:00

murfMan
Member
Registered: 2009-10-27
Posts: 161

[SOLVED] cannot write to usb hdd -> `/mnt/usbstick/': Read-only file s

whenever i try to mount my usb hard drive with

mount /dev/disk/by-id/MYHDD /mnt/usbstick/
or

mount -w /dev/disk/by-id/MYHDD /mnt/usbstick/

and try to cp or mv a file to it i get
cannot create regular file `/mnt/usbstick/': Read-only file system



i was able to mount and write to the hdd just a few weeks ago.

Last edited by murfMan (2009-12-06 16:11:18)

Offline

#2 2009-12-06 07:30:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,793

Re: [SOLVED] cannot write to usb hdd -> `/mnt/usbstick/': Read-only file s

Are you performing those mounts with root permission?
If not, can we see your /etc/fstab ?
If so, are you trying to write using user permissions or root permissions?
What is the file system on the usbstick?
Did you try the 'users' or 'umask=xxx' mount options?
Is there anything entertaining in your system logs about the volume?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2009-12-06 07:53:56

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: [SOLVED] cannot write to usb hdd -> `/mnt/usbstick/': Read-only file s

im mounting with root
and trying to cp with root
the fs is ntfs

i can't even cd to /mnt/usbstick with a normal user

Last edited by murfMan (2009-12-06 07:56:33)

Offline

#4 2009-12-06 09:37:19

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [SOLVED] cannot write to usb hdd -> `/mnt/usbstick/': Read-only file s

Use ntfs-3g for sure.

# pacman -S ntfs-3g
$ sudo mount -t ntfs-3g -o uid=1000,gid=1000 /dev/disk/by-id/MYHDD /media/usbstick

Substitute your uid/gid in for 1000/1000 in that line.  You can get them from /etc/passwd

Last edited by graysky (2009-12-06 09:38:05)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2009-12-06 15:35:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] cannot write to usb hdd -> `/mnt/usbstick/': Read-only file s

@ murfMan
> i was able to mount and write to the hdd just a few weeks ago.

With no ntfs-3g? Was the disk formated as NTFS at that time?

Offline

#6 2009-12-06 16:09:21

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: [SOLVED] cannot write to usb hdd -> `/mnt/usbstick/': Read-only file s

graysky wrote:

Use ntfs-3g for sure.

# pacman -S ntfs-3g
$ sudo mount -t ntfs-3g -o uid=1000,gid=1000 /dev/disk/by-id/MYHDD /media/usbstick

Substitute your uid/gid in for 1000/1000 in that line.  You can get them from /etc/passwd

awesome that gave me drwxrwxrwx permissions on my device.

also @karol i think i was using a different usb device a few weeks ago that must have been formatted in fat or fat32 tongue

thanks again for your help guys!

Offline

#7 2019-05-14 12:36:34

Dentrax
Member
Registered: 2018-08-05
Posts: 21

Re: [SOLVED] cannot write to usb hdd -> `/mnt/usbstick/': Read-only file s

graysky wrote:

Use ntfs-3g for sure.

# pacman -S ntfs-3g
$ sudo mount -t ntfs-3g -o uid=1000,gid=1000 /dev/disk/by-id/MYHDD /media/usbstick

Substitute your uid/gid in for 1000/1000 in that line.  You can get them from /etc/passwd

...

My flash is fully formatted now. Why didn't you put a WARNING! message?

It was bad........

Can the deleted files be rescue?

Last edited by Dentrax (2019-05-14 12:38:53)

Offline

#8 2019-05-14 12:40:29

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,988
Website

Re: [SOLVED] cannot write to usb hdd -> `/mnt/usbstick/': Read-only file s

Mounting via ntfs-3g does not format your pen drive. You must have done that yourself.
Also you should refrain from necrobumping.


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#9 2019-05-14 12:44:30

Dentrax
Member
Registered: 2018-08-05
Posts: 21

Re: [SOLVED] cannot write to usb hdd -> `/mnt/usbstick/': Read-only file s

schard wrote:

Mounting via ntfs-3g does not format your pen drive. You must have done that yourself.
Also you should refrain from necrobumping.

I'll work on it, to figure it out why it was happen. smile

Thanks for "necrobumping" advice.

Last edited by Dentrax (2019-05-14 12:45:00)

Offline

#10 2019-05-14 13:07:35

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] cannot write to usb hdd -> `/mnt/usbstick/': Read-only file s

As schard notes, please do not necrobump, especially topics marked [SOLVED].

Closing..

Offline

Board footer

Powered by FluxBB