5 | | Plug in the external hard drive. |
6 | | |
7 | | You will need to have root permissions before you start ('sudo su' and then type in your password). |
8 | | |
9 | | Run dmesg to find device name. Listed at the bottom if just plugged in. |
10 | | |
11 | | e.g |
12 | | |
13 | | {{{ |
14 | | SSELinux: initialized (dev sdb, type fuseblk), uses genfs_contexts |
15 | | }}} |
16 | | |
17 | | or |
18 | | |
19 | | {{{ |
20 | | sd 7:0:0:0: [sdb] 488397168 512-byte hardware sectors (250059 MB) |
21 | | }}} |
22 | | |
23 | | Device path is then /dev/sdb (not sdb1 etc, this indicates a partition on sdb) |
24 | | |
25 | | '''Create a partition:[[BR]]''' |
26 | | run mount to find the name of the partition you need to unmount e.g /dev/sdb1 |
27 | | |
28 | | Unmount the partition with umount /dev/partition, e.g. umount /dev/sdb1 (if not already unmounted)[[BR]] |
29 | | |
30 | | Run fdisk /dev/DEVICE_NAME (not partition) |
31 | | |
32 | | |
33 | | enter 'p' to print partition table and check you have selected the correct disk[[BR]] |
34 | | enter 'd' to delete the current partition[[BR]] |
35 | | enter 'n' to create a new partition [[BR]] |
36 | | 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.[[BR]] |
37 | | enter 'p' to print new partition table – if all seems fine enter 'w' to write |
38 | | |
39 | | '''Format the disk:[[BR]]''' |
40 | | |
41 | | 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[[BR]] |
42 | | Unmount the partition. |
43 | | |
44 | | Run mke2fs -j /dev/partition |
45 | | |
46 | | |
47 | | '''Change permissions:[[BR]]''' |
48 | | |
49 | | Unplug the disk and plug back in. The disk space should be located under /media/disk. |
50 | | |
51 | | It is wise to check that this destination is correct: 'df /media/disk' to check that this is where the device is mounted. |
52 | | |
53 | | Make writable for everyone using chmod a+rwx /media/disk |
54 | | [[BR]] |
55 | | === Copy over your data onto the disk === |
56 | | |
57 | | Copy the delivery folder from the workspace to /media/disk. |
58 | | Top directory should be the one with the project code. |
59 | | [[BR]] |
60 | | |
61 | | === Finalising hard disk === |
62 | | |
63 | | Set permissions and owner: |
64 | | |
65 | | chmod a+rX,a-w -R /media/disk [[BR]] |
66 | | chown root.root -R /media/disk |
67 | | |
68 | | 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. |
69 | | |
70 | | === Cover letter === |
| 7 | == Cover letter == |
141 | | |
142 | | |
143 | | -------------------------------------------------------------------------------------------------------- |
144 | | |
145 | | = DVD = |
146 | | |
147 | | === Burning the data === |
148 | | 1. create an iso image with `mkisofs -R -udf -verbose -o /tmp/dvd.iso -V <PROJECTCODE-JULIANDAY> <delivery_directory>` |
149 | | 1. test the iso with `sudo mount -o ro,loop /tmp/dvd.iso /mnt/tmp` - mounts to /mnt/tmp, go look at it, then unmount with `sudo umount /mnt/tmp` (yes, that is umount not unmount). Create /mnt/tmp if it doesn't exist. |
150 | | 1. if it's ok, burn to CD/DVD with `sudo cdrecord dev=/dev/dvd -sao fs=100m driveropts=burnfree -v /tmp/dvd.iso` |
151 | | 1. clean up with `rm /tmp/dvd.iso` |
152 | | 1. check the dvd on another machine (ideally Windows) |
153 | | |
154 | | === Lightscribe === |
155 | | 1. open the CD template from ~arsf/arsf_data/2007/delivery/cd_covers/arsf_cd_label_gimp_editable.xcf in gimp |
156 | | 1. lick on the text button in the toolbox, then click the GB... text and edit to reflect the correct project code |
157 | | 1. save as a .bmp file somewhere, e.g. ~/ipy0708214ef.bmp |
158 | | 1. Insert the disk (upside down) on the lightscribe machine (currently pmpc974) and run `4L-cli print /dev/sr0 ~/ipy0708214ef.bmp` |
159 | | |
160 | | If it appears to be stuck on "Starting up", it may still be burning - give it time to complete. For a dense full disk picture, wait at least 45mins! |
161 | | |
162 | | If the drive seems wrong, try `4L-cli enumerate` to list attached lightscribe compatible drives. |