Line 6: |
Line 6: |
| | | |
| == Assumptions == | | == Assumptions == |
− | It assumes adding one PATA (IDE) harddrive as master on the second IDE controller, but the process will be similar in other situations. More on that in step 2.1. | + | *It assumes adding one PATA (IDE) harddrive as master on the second IDE controller, but the process will be similar in other situations. More on that in step 2.1. |
| | | |
− | The harddrive will be named bigdisk, this name will not be visible to the user. | + | *The harddrive will be named newdisk, this name will not be visible to the user. |
| | | |
− | You already have an ibay named mp3, this will be redirected to the new disk (together with its content). This name may be visible to the user (depending on the permissions). | + | *You already have an ibay named IBAYNAME, this will be redirected to the new disk (together with its content). This name may be visible to the user (depending on the permissions). |
| | | |
− | You can replace the names bigdisk and mp3 with whatever valid name, just keep track of the names. | + | *You can replace the names newdisk and IBAYNAME with whatever valid name, just keep track of the names. |
| | | |
| == Notes about RAID == | | == Notes about RAID == |
Line 96: |
Line 96: |
| | | |
| 3.0 Create a directory underneath /mnt | | 3.0 Create a directory underneath /mnt |
− | mkdir /mnt/bigdisk | + | mkdir /mnt/newdisk |
| | | |
| 3.1 Automount at boot time | | 3.1 Automount at boot time |
Line 104: |
Line 104: |
| pico /etc/fstab | | pico /etc/fstab |
| Add the following data to the file (separate columns with a hit on the space-bar): | | Add the following data to the file (separate columns with a hit on the space-bar): |
− | /dev/hdc1 /mnt/bigdisk ext3 usrquota,grpquota 1 2 | + | /dev/hdc1 /mnt/newdisk ext3 usrquota,grpquota 1 2 |
| Make sure you end this line with a newline (with enter). | | Make sure you end this line with a newline (with enter). |
| <br>Hit <ctrl-x> to exit the editor, y and enter to save. | | <br>Hit <ctrl-x> to exit the editor, y and enter to save. |
Line 118: |
Line 118: |
| /dev/hda3 ext3 39151724 28441348 8721532 77% / | | /dev/hda3 ext3 39151724 28441348 8721532 77% / |
| /dev/hda1 ext3 101089 8953 86917 10% /boot | | /dev/hda1 ext3 101089 8953 86917 10% /boot |
− | /dev/hdc1 ext3 38474956 27948 38447008 0% /mnt/bigdisk | + | /dev/hdc1 ext3 38474956 27948 38447008 0% /mnt/newdisk |
| | | |
| If you don't see a line for /dev/hdc1, something went wrong. | | If you don't see a line for /dev/hdc1, something went wrong. |
Line 138: |
Line 138: |
| <br>In some cases that might be a good idea, but in most cases you are just wasting the remaining space of your first disk. | | <br>In some cases that might be a good idea, but in most cases you are just wasting the remaining space of your first disk. |
| | | |
− | Alternative 2: A much better approach is to leave the second disk mounted at /mnt/bigdisk and to create symlinks (symbolic links) for specific ibays or user folders. | + | Alternative 2: A much better approach is to leave the second disk mounted at /mnt/newdisk and to create symlinks (symbolic links) for specific ibays or user folders. |
| | | |
− | The following example shows you how to place the mp3 ibay on the second disk. | + | The following example shows you how to place the IBAYNAME ibay on the second disk. |
| | | |
| 4.1 Create the necessary subdirectories on your second disk | | 4.1 Create the necessary subdirectories on your second disk |
− | mkdir -p /mnt/bigdisk/ibays/mp3 | + | mkdir -p /mnt/newdisk/ibays/IBAYNAME |
| | | |
| | | |
| 4.2 Check the ownerships and permissions on the original directory | | 4.2 Check the ownerships and permissions on the original directory |
− | ls -l /home/e-smith/files/ibays/mp3 | + | ls -l /home/e-smith/files/ibays/IBAYNAME |
| | | |
− | drwxrwxr-x 18 admin allstaff 4096 Sep 23 14:48 mp3 | + | drwxrwxr-x 18 admin allstaff 4096 Sep 23 14:48 IBAYNAME |
| | | |
| 4.3 Change ownership as in the original. The "-R" (optional) means recursive, subdirectorys will be included in the command. | | 4.3 Change ownership as in the original. The "-R" (optional) means recursive, subdirectorys will be included in the command. |
− | chown -R admin:allstaff /mnt/bigdisk/ibays/mp3 | + | chown -R admin:allstaff /mnt/newdisk/ibays/IBAYNAME |
| | | |
− | 4.4 Set permissions to the ibay mp3 as in the original. For help on this, look at bottom of this page. The "-R" (optional) means recursive, subdirectorys will be included in the command. | + | 4.4 Set permissions to the ibay IBAYNAME as in the original. For help on this, look at bottom of this page. The "-R" (optional) means recursive, subdirectorys will be included in the command. |
− | chmod 775 -R /mnt/bigdisk/ibays/mp3 | + | chmod 775 -R /mnt/newdisk/ibays/IBAYNAME |
| | | |
| 4.5 Copy the content to your new disk | | 4.5 Copy the content to your new disk |
− | cp -rip /home/e-smith/files/ibays/mp3/* /mnt/bigdisk/ibays/mp3 | + | cp -rip /home/e-smith/files/ibays/IBAYNAME/* /mnt/newdisk/ibays/IBAYNAME |
| | | |
| 4.6 Check if all files have been copied correctly | | 4.6 Check if all files have been copied correctly |
− | diff -r /mnt/bigdisk/ibays/mp3 /home/e-smith/files/ibays/mp3 | + | diff -r /mnt/newdisk/ibays/IBAYNAME /home/e-smith/files/ibays/IBAYNAME |
| | | |
| 4.7 Remove the original files | | 4.7 Remove the original files |
− | rm -rf /home/e-smith/files/ibays/mp3 | + | rm -rf /home/e-smith/files/ibays/IBAYNAME |
| | | |
| 4.8 Create a symlink to the new location | | 4.8 Create a symlink to the new location |
− | ln -s /mnt/bigdisk/ibays/mp3 /home/e-smith/files/ibays/mp3 | + | ln -s /mnt/newdisk/ibays/IBAYNAME /home/e-smith/files/ibays/IBAYNAME |
| | | |
| 4.9 Test the new location | | 4.9 Test the new location |
− | ls /home/e-smith/files/ibays/mp3 | + | ls /home/e-smith/files/ibays/IBAYNAME |
| | | |
| 4.10 If you want the ibay to be accessible from the internet, you also need to enable "follow symlinks" in apache: | | 4.10 If you want the ibay to be accessible from the internet, you also need to enable "follow symlinks" in apache: |