Portal Home > Knowledgebase > Articles Database > re mounting a second hard drive from /backup to /home2 how?


re mounting a second hard drive from /backup to /home2 how?




Posted by sharmaine1111, 06-16-2009, 03:45 AM
Hi My second hard drive is mounted as /backup. I have a remote rsync backup. i want to remount thsi second hard drive to /home2 instead Can someone please teach me how to do that? Thanks

Posted by serversignature, 06-16-2009, 04:33 AM
Run the command fdisk -l as root once you have attached your HDD And then use the mount command as an example shown below. Example:

Posted by Beast5, 06-16-2009, 04:33 AM
etc/fstab is your friend. http://www.tuxfiles.org/linuxhelp/fstab.html take a look at this guide. understand what you are doing, and be careful while editing!

Posted by mellow-h, 06-16-2009, 10:10 PM
This will do the job as server signature said. But make sure to umount /backup running this: Otherwise, both will be set as mountpoint

Posted by sharmaine1111, 06-17-2009, 12:20 AM
I did this and it did not work. I tried the opposite way maybe thats the reason why it didnt work. I put mount /home2 /dev/sda2 instead of mount /dev/sda2 /home2 Thanks for all the help will try this.

Posted by Beast5, 06-17-2009, 03:17 AM
hi /etc/fstab is basicly a mapping of your server mounts. so in case you will have to reboot the server ( and your mounts WONT be in the fstab file) , the server will NOT automaticly mount the /home2 on boot. the line you should add needs to look like this /dev/sda2 /home2 {FILESYSTEM TYPE} defaults 0 0 The file system type should be ext2 or ext3 ,depends on the way the disk was formated. to get the file system format type use: you will see there the format type at the end of the line. after your fstab file is set correctly. do then type you should see it mounted.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
am i asking to much (Views: 636)