Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
In my haste to create a new Linux server for the purpose of backing up my users documents, emails, address books and favourites, I neglected to consider the size of the hard drive. I quickly realized that with 25 users, i would soon fill a 60GB drive. My first thought was to install a larger HDD, clone it, swap the 60GB drive out and all would be well. I purchased a 500GB IDE drive, installed it, cloned using the dd command but it would not boot completely. Searched many threads here and other sites, no luck. Next, re-installed the 60GB drive, deleted and re-partitioned the 500GB drive, mounted the second drive (btw, still a bit baffled with the mount process), copied the user folders and associated backed-up data onto the larger drive but I'm not sure how to change the home directory that seems to be configured in Samba. In the Samba.conf file I changed the line in the [users] section from: path = /home to path = /mnt/sync_data/home. I presume this is not enough or incorrect.
any thoughts are greatly appreciated. Thank you in advance.
not sure what fstab is but navigated to it and there is no entry for my second hdd, not sure how to add it, hopefully there is a way for the OS to recognize the drive. I mounted it but can't map to it from a Windows PC on the network. As stated above, I originally built the system with a 60GB drive, added the 500GB drive, tried to re-map this drive from a PC on the network but it still connects to the folder (directory) on the original 60GB drive. No error messages but when I write a test .txt file to the mapped drive, it shows up in the 60GB drive.
thank you again for your reply,
as I get deeper into this I realize that guessing won't work for long. The articles mentioned above are a bit mysterious and it's difficult to guess the next step when the previous one results in an error, ie: mv /home /home.bak
results in the message "mv: cannot move '/home' to '/home.bak': Device or resource is busy
(getting a headache banging into so many brick walls)
Lets do this: (you need to be root)
1. create a directory to use as a mount point for your 500GB drive
mkdir /mnt/newhome (you can replace /mnt/newhome with anything desired but be sure to use the actual created directory in the following steps).
2. mount the drive
mount -t ext3 /dev/sdax /mnt/newhome (replace ext3 with the actual file system and /dev/sdax with the actual device ID of your 500GB drive)
executing the mount command without any options shows all mounted filesystems. Your 500GB drive should now be mounted.
3.copy old home to new home
cp -a -v -u /home/* /mnt/newhome/
check the copy - there should be the same number of files and bytes in /home and in /mnt/newhome.
4. Add line to fstab. There are several different methods of specifying the drive/partition.
/dev/sdax /home ext3 defaults 0 2 (again replace /dev/sdax with the actual device ID and ext3 with the actual filesystem type)
If you reboot the computer now you should be using the new /home partition. However all the old home stuff will still exist on the / partition but will be hidden by the new drive.
5. Once you are satisfied that your new home is ok you can delete the old stuff.
rm -r /home
If you rebooted before deleting you can go back to the old home by commenting out the new drive and then mounting the new drive manually.