| 35 | | Partition and format the disk (command line) |
| 36 | | 1. Run fdisk /dev/DEVICE_NAME (not partition) |
| 37 | | 1. enter 'p' to print partition table and check you have selected the correct disk |
| 38 | | 1. enter 'd' to delete the current partition (delete them all) |
| 39 | | 1. enter 'n' to create a new partition |
| 40 | | 1. enter 'p' to make new partition the primary partition. If it asks you to give a partition number press 1 and enter. Then press enter twice to fill the whole disk. |
| 41 | | 1. enter 'p' to print new partition table – if all seems fine enter 'w' to write |
| 42 | | 1. To be on the safe side, run dmesg again to make sure device name hasn't changed. You should now see the partition listed as device_name1, e.g. sdb1 |
| 43 | | 1. Unmount the partition if it remounted. |
| 44 | | 1. Run `mke2fs -j /dev/partition` |
| 45 | | |
| 46 | | Remount and fix permissions: |
| 47 | | 1. Unplug the disk and plug back in. The disk space should be located under /media/disk. |
| 48 | | 1. It is wise to check that this destination is correct: 'df /media/disk' to check that this is where the device is mounted. |
| 49 | | 1. Make writable for everyone using chmod a+rwx /media/disk |
| 50 | | |
| 51 | | == Copy over your data onto the disk == |
| 52 | | |
| 53 | | Copy the delivery folder to /media/disk. |
| 54 | | |
| 55 | | == Finalising hard disk == |
| 56 | | |
| 57 | | Set permissions and owner: |
| 58 | | |
| 59 | | chmod a+rX,a-w -R /media/disk [[BR]] |
| 60 | | chown root.root -R /media/disk |
| 61 | | |
| 62 | | NOTE: Be sure to record the number of the hard disk (or giving it one if it does not yet have one) before packing it. |
| 63 | | |
| 64 | | --------------------- |
| 65 | | |
| 66 | | === Windows format (NTFS, not FAT32) disks [everything except hyperspectral data] === |
| | 36 | === Windows format (NTFS, not FAT32) disks [everything except hyperspectral data before 2011] === |
| | 75 | |
| | 76 | === Linux format (ext3) disks [hyperspectral data prior to 2011] === |
| | 77 | |
| | 78 | Partition and format the disk (command line) |
| | 79 | 1. Run fdisk /dev/DEVICE_NAME (not partition) |
| | 80 | 1. enter 'p' to print partition table and check you have selected the correct disk |
| | 81 | 1. enter 'd' to delete the current partition (delete them all) |
| | 82 | 1. enter 'n' to create a new partition |
| | 83 | 1. enter 'p' to make new partition the primary partition. If it asks you to give a partition number press 1 and enter. Then press enter twice to fill the whole disk. |
| | 84 | 1. enter 'p' to print new partition table – if all seems fine enter 'w' to write |
| | 85 | 1. To be on the safe side, run dmesg again to make sure device name hasn't changed. You should now see the partition listed as device_name1, e.g. sdb1 |
| | 86 | 1. Unmount the partition if it remounted. |
| | 87 | 1. Run `mke2fs -j /dev/partition` |
| | 88 | |
| | 89 | Remount and fix permissions: |
| | 90 | 1. Unplug the disk and plug back in. The disk space should be located under /media/disk. |
| | 91 | 1. It is wise to check that this destination is correct: 'df /media/disk' to check that this is where the device is mounted. |
| | 92 | 1. Make writable for everyone using chmod a+rwx /media/disk |
| | 93 | |
| | 94 | == Copy over your data onto the disk == |
| | 95 | |
| | 96 | Copy the delivery folder to /media/disk. |
| | 97 | |
| | 98 | == Finalising hard disk == |
| | 99 | |
| | 100 | Set permissions and owner: |
| | 101 | |
| | 102 | chmod a+rX,a-w -R /media/disk [[BR]] |
| | 103 | chown root.root -R /media/disk |
| | 104 | |
| | 105 | NOTE: Be sure to record the number of the hard disk (or giving it one if it does not yet have one) before packing it. |
| | 106 | |
| | 107 | --------------------- |
| | 108 | |