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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi I'm running a dual boot with opensuse 13.2 and windoze 10. I am running out of space on my home mount point. If I install a second hard drive and add a second home mount point on my new hard disk will I be able to have some of my files on one home mount point (sda7) and other data on the other home mount point (sdb something).
This is so confusing. Is it possible to just mount my new hard drive as home2 and just keep what's on the original home on home and just add put all my new files on home2?
That is just type mount /dev/sdb1 /home2 and use home2 from now on.
you cannot mount 2 different harddisk partitions onto the same mount point. That is simply not possible. You can have only one home dir. And you need to find out what do you want to do with the other directory.
This is so confusing. Is it possible to just mount my new hard drive as home2 and just keep what's on the original home on home and just add put all my new files on home2?
That is just type mount /dev/sdb1 /home2 and use home2 from now on.
Calling it home2 will just confuse you further - so give it a meaningful name like 'data', and (as root) make a mountpoint for it (just an ordinary directory) at /mnt/data (or such) and set the ownership of that dir to your user.
Then mount the new drive on it, make some dirs to hold your data and create symlinks to them in your existing /home/user/ dir.
edit: another simpler way would be to just mount it directly into, say, /home/user/data - then no symlinks would be needed.
Last edited by descendant_command; 11-12-2015 at 03:21 AM.
I think the OP wants to copy the old home to the new disk, then mount the new disk under /home. If so, this is not only possible, but also rather simple.
mount /dev/sdb1 /mnt/newhome
cd /home
find . | cpio -pdumva /mnt/newhome
umount /mnt/newhome
put sdb1 in fstab
mount -a
I don't know enough about the current configuration to suggest what to do with the old home.
another simpler way would be to just mount it directly into, say, /home/user/data - then no symlinks would be needed.
So do I just type mount /dev/mnt/hdb1 home/user/data and I will have the entire 500gb 2nd hard drive for the home/user/data mount point as well as all the data in the original /home mount point? Do I have to put anything in fstab?
Last edited by slayme40; 11-12-2015 at 05:04 AM.
Reason: forgot the add 2nd ?
So do I just type mount /dev/mnt/hdb1 home/user/data and I will have the entire 500gb 2nd hard drive for the home/user/data mount point as well as all the data in the original /home mount point? Do I have to put anything in fstab?
Code:
mount /dev/hdb1 /home/user/data
But earlier you said your device was named /dev/sdb1, which is much more likely, since "hdb1" refers to IDE drives that have been phased out for years.
If you want the new disk to be mounted each time you reboot, yes, you have to put something in /etc/fstab. I would copy an existing line in /etc/fstab and modify it so that it matches the new disk and the new mount point.
Basically, although you have to create the dir first (as yourself) so it has somewhere to mount to.
(you prob meant sdb1, not hdb1 - that's the old school naming convention).
Obviously you have to issue the mnt cmd as root, then check you can access it ok as the normal user before you add it to /etc/fstab.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.