| 7 | | == Permissions fixing == |
| 8 | | Ensure permissions on the SATA disk are correct and all files readable ("chmod a+rX /mnt/satadisk" as root) |
| | 7 | == Mounting the SATA disk == |
| | 8 | To mount the SATA disk, put it into the computer. Then ssh onto the machine. Run `dmesg` to show information on the device names, the kind of thing we would be look for is: |
| | 9 | |
| | 10 | mptsas: ioc0: attaching sata device, channel 0, id 1, phy 1 |
| | 11 | |
| | 12 | scsi 0:0:1:0: Direct-Access ATA ST3500630AS E PQ: 0 ANSI: 5 |
| | 13 | |
| | 14 | sd 0:0:1:0: [sdb] 976773168 512-byte hardware sectors (500108 MB) |
| | 15 | |
| | 16 | sd 0:0:1:0: [sdb] Write Protect is off |
| | 17 | |
| | 18 | sd 0:0:1:0: [sdb] Mode Sense: 73 00 00 08 |
| | 19 | |
| | 20 | sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA |
| | 21 | |
| | 22 | sd 0:0:1:0: [sdb] 976773168 512-byte hardware sectors (500108 MB) |
| | 23 | |
| | 24 | sd 0:0:1:0: [sdb] Write Protect is off |
| | 25 | |
| | 26 | sd 0:0:1:0: [sdb] Mode Sense: 73 00 00 08 |
| | 27 | |
| | 28 | sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA |
| | 29 | |
| | 30 | sdb: sdb1 |
| | 31 | |
| | 32 | where the name of the disk is sdb (sata disk b) and the partion is sdb1. SATA disks will be 500GB in size. If paranoid and want to look at a time stamped version run |
| | 33 | `sudo less /var/log/messages`. |
| | 34 | |
| | 35 | To mount the disk use command `sudo mount -o ro /dev/sdb1 /mnt/tmp`. This will mount it read only. Then check the data looks ok. Then remount the disk using `sudo mount -o remount,rw /mnt/tmp` to make it read/write and run the commadn `chmod a+rX -R /mnt/tmp'. Then re mount the SATA back as read only, `sudo mount -o remount,ro /mnt/tmp` |