Technology news and Jobs
The Linux distillery
Adding a new hard disk to Linux, and why the Linux filesystem trounces Windows' butt
The Linux distillery
Adding a new hard disk to Linux, and why the Linux filesystem trounces Windows' butt | Adding a new hard disk to Linux, and why the Linux filesystem trounces Windows' butt |
|
| by David M Williams | |
| Thursday, 02 October 2008 | |
|
Page 5 of 5 One distinctive of Linux is that its filesystem is completely hierarchical. Everything spans down from the top-level root directory called “/”.Featured Whitepaper
5 Best Practices for Smartphone Support
Here’s where Linux lets you really administer your system how you want, and respond to changing requirements. Imagine your personal directory under /home is filling up. You need more disk space. You buy a 500GB hard drive and install it. For the moment, you can mount it anywhere you like – such as our /mnt/MyDisk example. Copy everything from /home/david (or whatever) over to /mnt/MyDisk. Be careful to preserve all the security settings like owner, group and access permissions. Be careful too to copy all the ordinarily hidden files – the ones whose names begin with “.” Like .bashrc. Once you have done this, and are absolutely sure you didn’t miss anything, you can remove all the files and folders in the original directory. You’ve now freed up space on the original drive. Now for the magic. Unmount the hard drive and then remount it, but this time specify /home/david as the mount point. Suddenly all your files and settings are back but with so much disk space to spare. Run df –k and you will see the new hard drive mounted as your home area but with 500GB of space available, in this example. Edit /etc/fstab so the hard drive always mounts on startup. That’s a truly wonderful feature of Linux. You can move your folders around from drive to drive as your system expands, keeping ahead of storage demands. Provided you keep the overall file hierarchy intact you won’t suffer any losses or problems and Linux really won’t care over how many disks you spread yourself. There’s no need to muck around with distinct drive letters, and uninstall or reinstall applications just to move them from one disk to another. So that’s disks! What’s something you would like to know to do in Linux? What bugs you about the operating system? Let’s make this a month of “I didn’t know you could do that in Linux.” |
| < Next story in category | Previous story in the category > |
|---|




Tags




