Why I can't write data into a mounted usb disk with ext3

I have a 1TB usb disk, I used GParted to divide it into 3 partition, sdb1 is primary 50G, file system is ext4, sdb5 is logical 450G, file system is ext3, sdb6 is logical 500G, file system is ext3, after that, I made a dir in /media, then I input: “mount -o rw /dev/sdb1 /media/p1/”

I accessed into the p1, and input "mkdir 123", but i got a message "mkdir: can't create directory 123, read-only file system",I tried two other partitions, the result was the same. Yesterday before I tried with a flush with 16G, but I can write date into the mounted partition, who can tell me the reason, thank you very much! 

All my operations was under the root

Because they’ve been mounted as read-only. Please post the result of the command; mount

Well, we had a similar case recently:
http://forums.opensuse.org/showthread.php/500403-openSUSE-13-1-installation-Thumb-Drive-Installation-and-Hard-disk-partition-issue?p=2660723#post2660723

If you mounted the partition read-write, and it still is mounted read-only, this most likely points to errors on the disk/partition/filesystem.
If the system encounters errors, it remounts the filesystem read-only.

So try to run “fsck” on those “non-working” partitions, and have a look at smartctl.

“sudo systemctl status /media/p1/” or similar might give a clue as well.

And you might try to mount with the “errors=continue” mount option , then it should stay read-write all the time.
But if there are indeed errors on the disk, it might be risky to use it that way.

Also I would kinda use ext4 nowadays, ext3 is a bit … old :stuck_out_tongue:

On 2014-08-28 14:46, gwcp1984 wrote:
>
> I have a 1TB usb disk, I used GParted to divide it into 3 partition,
> sdb1 is primary 50G, file system is ext4, sdb5 is logical 450G, file
> system is ext3, sdb6 is logical 500G, file system is ext3, after that, I
> made a dir in /media, then I input: “mount -o rw /dev/sdb1 /media/p1/”

Don’t use “/media” for manual mounts, use “/mnt”. Or any other place
that is not used by the system.

> I accessed into the p1, and input “mkdir 123”, but i got a message
> “mkdir: can’t create directory 123, read-only file system”,

Well, the reason is obvious, the filesystem is mounted read only.
Why it was mounted so? Well, you could look at the logs. And mount with
the “verbose” option.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)