Changes between Initial Version and Version 1 of Procedures/EndUserDelivery/HardDisk


Ignore:
Timestamp:
Sep 27, 2010, 3:48:03 PM (14 years ago)
Author:
mggr
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Procedures/EndUserDelivery/HardDisk

    v1 v1  
     1= Preparing hard disks for delivery =
     2
     3Plug in the external hard drive.
     4
     5You will need to have root permissions before you start ('sudo su' and then type in your password).
     6
     7Run dmesg to find device name. Listed at the bottom if just plugged in.
     8
     9e.g
     10
     11{{{
     12SSELinux: initialized (dev sdb, type fuseblk), uses genfs_contexts
     13}}}
     14
     15or
     16
     17{{{
     18sd 7:0:0:0: [sdb] 488397168 512-byte hardware sectors (250059 MB)
     19}}}
     20
     21Device path is then /dev/sdb (not sdb1 etc, this indicates a partition on sdb)
     22
     23'''Create a partition:[[BR]]'''
     24run mount to find the name of the partition you need to unmount e.g /dev/sdb1
     25
     26Unmount the partition with umount /dev/partition, e.g. umount /dev/sdb1 (if not already unmounted)[[BR]]
     27
     28At this point, you either need to make a Linux format disk (ext3) for hyperspectral data or a Windows format disk (NTFS, not FAT32) for all other data types.
     29
     30== Linux format (ext3) disks [hyperspectral data] ==
     31
     32=== Partition and format the disk (command line) ===
     33 1. Run fdisk /dev/DEVICE_NAME (not partition)
     34 1. enter 'p' to print partition table and check you have selected the correct disk
     35 1. enter 'd' to delete the current partition (delete them all)
     36 1. enter 'n' to create a new partition
     37 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.
     38 1. enter 'p' to print new partition table – if all seems fine enter 'w' to write
     39 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
     40 1. Unmount the partition if it remounted.
     41 1. Run `mke2fs -j /dev/partition`
     42
     43=== Remount and fix permissions ===
     44
     45Unplug the disk and plug back in. The disk space should be located under /media/disk.
     46
     47It is wise to check that this destination is correct: 'df /media/disk' to check that this is where the device is mounted.
     48
     49Make writable for everyone using chmod a+rwx /media/disk
     50
     51
     52== Windows format (NTFS, not FAT32) disks [everything except hyperspectral data] ==
     53
     54=== Partition and format the disk (GUI) ===
     55 1. run `gparted` (needs sudo)
     56 1. select the correct disk partition (pulldown at top right)
     57 1. right click on existing partitions and delete them
     58 1. when there is only unallocated space left, right click on it and select new
     59   1. change file system to ntfs
     60   1. change label to ARSFDAN
     61 1. if everything looks ok in the list at the bottom, apply all operations (click big green tick)
     62
     63This should repartition and quick format the disk.
     64
     65=== Partition and format the disk (command line) ===
     66 1. Run fdisk /dev/DEVICE_NAME (not partition)
     67 1. enter 'p' to print partition table and check you have selected the correct disk
     68 1. enter 'd' to delete the current partition (delete them all)
     69 1. enter 'n' to create a new partition
     70 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.
     71 1. press 't' to set the partition type, select the partition you just made (1)
     72 1. set it to type 7 (HPFS / NTFS)
     73 1. enter 'p' to print new partition table – if all seems fine enter 'w' to write
     74 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
     75 1. Unmount the partition if it remounted.
     76 1. Run `mkntfs --label ARSFDAN --quick /dev/PARTITION`
     77
     78=== Remount ===
     79
     80Unplug the disk and plug back in. The disk space should be located under /media/ARSFDAN.
     81
     82It is wise to check that this destination is correct: 'df /media/ARSFDAN' to check that this is where the device is mounted.
     83
     84Permissions fixes aren't needed for NTFS (I think).
     85
     86-------------
     87
     88== Copy over your data onto the disk ==
     89
     90Copy the delivery folder from the workspace to /media/disk.
     91
     92The top directory should be the one with the project code.
     93
     94== Finalising hard disk ==
     95
     96Set permissions and owner:
     97
     98chmod a+rX,a-w -R /media/disk [[BR]]
     99chown root.root -R /media/disk
     100
     101NOTE: Be sure to record the number of the hard disk (or giving it one if it does not yet have one) before packing it.
     102
     103---------------------------------
     104
     105Return to [wiki:Procedures/EndUserDelivery]