Re: Disk Access
On Sat, 2017-07-01 at 17:35 +0200, tomas@tuxteam.de wrote:
> On Sat, Jul 01, 2017 at 04:22:29PM +0100, David wrote:
> > Dear List,
> >
> > I am using Linux Mint Debian (Betsy) and I'm having problems writing to
> > removable hard disks.
> >
> > There are no problems reading and writing to USB sticks.
> >
> > But removable sata disks I can read, but not write to. These disks are
> > in caddies that are designed to be removed.
> >
> > I thought the problem was because one of the disks in question was not
> > formatted on the Mint machine, so I formatted a new disk, same problem.
> >
> > Can anybody offer me a solution?
>
> What file system are those disks formatted with?
>
> Things to check:
>
> - what are the permissions of the files/directories you try to
> write to?
> - is the whole disk perhaps mounted read only?
>
> You may get some hints from the error message when you try the
> write or from the log files, e.g. /var/log/messages (at mount
> time).
>
> > Would I have the same problem if I used native Debian?
>
> Difficult to say without more hints.
>
> Cheers
> -- tomás
Sorry I should have given more details.
The disks are formatted to EXT4 and they do appear to be read only.
The attached details below are the results from /var/log/messages
The first part is a disk that has files on it that I can read, but I
cannot write to it.
The second part is a new disk that I have recently formatted and has no
data on it. Trying to mount this second disk previously I got a message
about dbus, but I didn't this time.
What I would like to do is to create directories and copy files into
those directories to create a backup.
David.
Jul 2 18:25:57 david-mint-debian kernel: [ 325.217014] ata4.00: ATA-8:
TOSHIBA HDWE140, FP2A, max UDMA/100
Jul 2 18:25:57 david-mint-debian kernel: [ 325.217026] ata4.00:
7814037168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
Jul 2 18:25:57 david-mint-debian kernel: [ 325.218136] ata4.00:
configured for UDMA/100
Jul 2 18:25:57 david-mint-debian kernel: [ 325.218155] ata4: EH
complete
Jul 2 18:25:57 david-mint-debian kernel: [ 325.218361] scsi 3:0:0:0:
Direct-Access ATA TOSHIBA HDWE140 FP2A PQ: 0 ANSI: 5
Jul 2 18:25:57 david-mint-debian kernel: [ 325.218948] sd 3:0:0:0:
Attached scsi generic sg3 type 0
Jul 2 18:25:57 david-mint-debian kernel: [ 325.219639] sd 3:0:0:0:
[sdb] 7814037168 512-byte logical blocks: (4.00 TB/3.63 TiB)
Jul 2 18:25:57 david-mint-debian kernel: [ 325.219651] sd 3:0:0:0:
[sdb] 4096-byte physical blocks
Jul 2 18:25:57 david-mint-debian kernel: [ 325.219742] sd 3:0:0:0:
[sdb] Write Protect is off
Jul 2 18:25:57 david-mint-debian kernel: [ 325.219790] sd 3:0:0:0:
[sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or
FUA
Jul 2 18:25:57 david-mint-debian kernel: [ 325.265001] sdb: sdb1
Jul 2 18:25:57 david-mint-debian kernel: [ 325.265746] sd 3:0:0:0:
[sdb] Attached SCSI disk
Jul 2 18:26:08 david-mint-debian kernel: [ 336.603699] EXT4-fs (sdb1):
warning: mounting fs with errors, running e2fsck is recommended
Jul 2 18:26:08 david-mint-debian kernel: [ 336.619896] EXT4-fs (sdb1):
mounted filesystem with ordered data mode. Opts: (null)
Jul 2 18:29:38 david-mint-debian kernel: [ 546.307591] ata5: hard
resetting link
Jul 2 18:29:48 david-mint-debian kernel: [ 556.309403] ata5: hard
resetting link
Jul 2 18:29:50 david-mint-debian kernel: [ 558.270465] ata5: SATA link
up 3.0 Gbps (SStatus 123 SControl 300)
Jul 2 18:29:50 david-mint-debian kernel: [ 558.285767] ata5.00:
ATA-10: ST4000DM005-2DP166, 0001, max UDMA/133
Jul 2 18:29:50 david-mint-debian kernel: [ 558.285779] ata5.00:
7814037168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
Jul 2 18:29:50 david-mint-debian kernel: [ 558.287167] ata5.00:
configured for UDMA/133
Jul 2 18:29:50 david-mint-debian kernel: [ 558.287188] ata5: EH
complete
Jul 2 18:29:50 david-mint-debian kernel: [ 558.287391] scsi 4:0:0:0:
Direct-Access ATA ST4000DM005-2DP1 0001 PQ: 0 ANSI: 5
Jul 2 18:29:50 david-mint-debian kernel: [ 558.287941] sd 4:0:0:0:
[sdc] 7814037168 512-byte logical blocks: (4.00 TB/3.63 TiB)
Jul 2 18:29:50 david-mint-debian kernel: [ 558.287948] sd 4:0:0:0:
[sdc] 4096-byte physical blocks
Jul 2 18:29:50 david-mint-debian kernel: [ 558.288037] sd 4:0:0:0:
[sdc] Write Protect is off
Jul 2 18:29:50 david-mint-debian kernel: [ 558.288085] sd 4:0:0:0:
[sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or
FUA
Jul 2 18:29:50 david-mint-debian kernel: [ 558.288559] sd 4:0:0:0:
Attached scsi generic sg4 type 0
Jul 2 18:29:50 david-mint-debian kernel: [ 558.346124] sdc: sdc1
Jul 2 18:29:50 david-mint-debian kernel: [ 558.347159] sd 4:0:0:0:
[sdc] Attached SCSI disk
Reply to: