External drive is being mounted as read-only

Sudhir Khanger sudhir at sudhirkhanger.com
Mon Sep 1 07:08:24 UTC 2014


On Mon, Sep 1, 2014 at 12:33 PM, Ed Greshko <ed.greshko at greshko.com> wrote:
> What do you mean?
>
> If you do
>
> sudo touch /run/media/donnie/storejet/x
>
> what do you get?

That works fine that will write file x with root:root

I was checking dmesg. There are some interesting errors and remounting
filesystem read-only

[donnie at fedora ~]$ dmesg | grep sdc1
[ 3814.291553]  sdc: sdc1
[ 3834.818254] EXT4-fs (sdc1): recovery complete
[ 3834.868368] EXT4-fs (sdc1): mounted filesystem with ordered data
mode. Opts: (null)
[ 3834.868396] SELinux: initialized (dev sdc1, type ext4), uses xattr
[ 3946.389358] Aborting journal on device sdc1-8.
[ 3946.389380] JBD2: Error -5 detected when updating journal
superblock for sdc1-8.
[ 3946.411350] EXT4-fs error (device sdc1): ext4_put_super:792:
Couldn't clean up the journal
[ 3946.411355] EXT4-fs (sdc1): Remounting filesystem read-only
[ 4358.549028]  sdc: sdc1
[ 4363.302847] EXT4-fs (sdc1): recovery complete
[ 4363.341497] EXT4-fs (sdc1): mounted filesystem with ordered data
mode. Opts: (null)
[ 4363.341513] SELinux: initialized (dev sdc1, type ext4), uses xattr
[donnie at fedora ~]$ dmesg | grep sdc
[ 3814.230640] sd 11:0:0:0: [sdc] 1953525168 512-byte logical blocks:
(1.00 TB/931 GiB)
[ 3814.232519] sd 11:0:0:0: [sdc] Write Protect is off
[ 3814.232529] sd 11:0:0:0: [sdc] Mode Sense: 43 00 00 00
[ 3814.236145] sd 11:0:0:0: [sdc] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 3814.291553]  sdc: sdc1
[ 3814.295212] sd 11:0:0:0: [sdc] Attached SCSI disk
[ 3834.818254] EXT4-fs (sdc1): recovery complete
[ 3834.868368] EXT4-fs (sdc1): mounted filesystem with ordered data
mode. Opts: (null)
[ 3834.868396] SELinux: initialized (dev sdc1, type ext4), uses xattr
[ 3946.389358] Aborting journal on device sdc1-8.
[ 3946.389380] JBD2: Error -5 detected when updating journal
superblock for sdc1-8.
[ 3946.392034] sd 11:0:0:0: [sdc] Synchronizing SCSI cache
[ 3946.392089] sd 11:0:0:0: [sdc]
[ 3946.411350] EXT4-fs error (device sdc1): ext4_put_super:792:
Couldn't clean up the journal
[ 3946.411355] EXT4-fs (sdc1): Remounting filesystem read-only
[ 4358.479465] sd 13:0:0:0: [sdc] 1953525168 512-byte logical blocks:
(1.00 TB/931 GiB)
[ 4358.480975] sd 13:0:0:0: [sdc] Write Protect is off
[ 4358.480985] sd 13:0:0:0: [sdc] Mode Sense: 43 00 00 00
[ 4358.483225] sd 13:0:0:0: [sdc] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 4358.549028]  sdc: sdc1
[ 4358.553304] sd 13:0:0:0: [sdc] Attached SCSI disk
[ 4363.302847] EXT4-fs (sdc1): recovery complete
[ 4363.341497] EXT4-fs (sdc1): mounted filesystem with ordered data
mode. Opts: (null)
[ 4363.341513] SELinux: initialized (dev sdc1, type ext4), uses xattr

On your system when you mount an ext4 usb storage is it mounted as read-only?

-- 
Regards,
Sudhir Khanger.
sudhirkhanger.com
https://github.com/donniezazen


More information about the users mailing list