Results 1 to 5 of 5

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

  1. #1

    Default 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

  2. #2
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,005

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

    Because they've been mounted as read-only. Please post the result of the command; mount
    .: miuku #suse @ irc.freenode.net
    :: miuku@opensuse.org

    .: h​ttps://download.opensuse.org/repositories/home:/Miuku/

  3. #3

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

    Quote Originally Posted by gwcp1984 View Post
    II 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.
    Well, we had a similar case recently:
    http://forums.opensuse.org/showthrea...23#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.

  4. #4
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,005

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

    Also I would kinda use ext4 nowadays, ext3 is a bit .. old
    .: miuku #suse @ irc.freenode.net
    :: miuku@opensuse.org

    .: h​ttps://download.opensuse.org/repositories/home:/Miuku/

  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

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

    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •