Want to allow disk space to /boot, or want to boot from other disk (16TB)
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.
When you changed /etc/fstab /home is now on the / drive (sdb2) which may or may not be empty but now whatever was in your users home directories does not show up under /home/ anymore. What is currently on sda1 (/mnt/831da725-3de4-46de-b6d4-30d15fd92d25) and what is its purpose?
Please reboot the system, log in as root, and post the contents of /boot and /home.
Also, when you're logged in as root, what happens if you open a terminal and run "su - user", where user is the username you are trying to log in as and failing.
Looks like you have a weird combination of home directories in both locations.
act has a directory in /home, and shulav has a directory in /boot, but those are the only ones I see. How was the user "zillur" created? How many users do you have? What happens if you try to su to act? Also, you should be using "su - user" as I provided in my example, not "su user".
To start with you should move shulav from /boot to /home. I don't see anything else in /boot that doesn't belong.
Which user are you trying to log in as on the GUI when it hangs?
First move shulav from /boot to /home. We also need to figure out what happened to zillur's home directory since it's not in either location, as well as any other users you've created on the system.
Once everything that needs to be in /home has been moved to /home, you need to log out as all regular users and log in as root (either on the GUI or a TTY, I prefer the TTY since I don't like logging in as root on the GUI). Use "w" to verify no other users are logged in, and also make sure sda1 is mounted at /mnt/831da725-3de4-46de-b6d4-30d15fd92d25. Then then run the following:
Code:
cp -a /home/* /mnt/831da725-3de4-46de-b6d4-30d15fd92d25/
mv /home /home.backup
umount /mnt/831da725-3de4-46de-b6d4-30d15fd92d25
mkdir /home
mount /dev/sda1 /home
Then log out as root and log in as your regular user again, verify everything works and looks as expected. Once you're sure it looks right, add the new mount to /etc/fstab:
By mounting sda1 on /home the OP will still have still have a messy combination of data and tools in the /home directory. IMHO it would be best to separate them...
I agree, but that's where he said he wanted it mounted, so that's what I went with. It would also be possible to mount sda1 elsewhere and create a directory inside of it for all of the users' home directories, then bind mount that to /home, or change the default home directory for all users from /home to this new location. Lots of options.
Last edited by suicidaleggroll; 10-27-2015 at 02:20 PM.
Thank you all for your valuable suggestions. Now I can login as any user. I have another question. I installed some tools in "/home/zillur/Desktop/zillur/Tools" this folder. like:
bcftools-1.2
bcftools-1.2.tar.bz2
bowtie2-2.2.5
bowtie2-2.2.5-linux-x86_64.zip
epel-release-latest-7.noarch.rpm
fastqc
GenomeAnalysisTK-3.4-46.tar.bz2
etc.
I can run them as user "zillur"
I want to allow my other users to run this tools. How can I do this?
Thank you very much. I have moved this folder to /usr/local. Then what I need to do? after moving this: /usr/local/Tools, my tools are not working. Like:
[zillur@workstation01 Tools]$ bowtie2
bash: bowtie2: command not found...
Maybe I am missing something.
Best Regards
Zillur
You'll need to add /usr/local/Tools to your PATH. To make it permanent make this change in one of your startup scripts, like .bashrc or .bash_profile, or the startup script for whatever shell you use, eg:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.