Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
08-17-2017, 03:17 AM
|
#31
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,036
|
You need a separate partition for each installed Linux system. That is correct. But you don't normally need to mount one Linux system on another. You only do that for maintenance.
For example, here is (part of) my Crux fstab file:
Code:
/dev/sda6 /mnt/lfs ext4 user,noauto 0 0
/dev/sda5 /mnt/oldlfs ext4 user,noauto 0 0
/dev/sda7 /mnt/debian ext4 user,noauto 0 0
This allows me to occasionally mount the non-Crux partitions as a user for inspection but prevents accidental modification. The noauto option prevents them from being mounted at boot. If I want to modify them, I have to mount them as root, or boot into them. I have similar lines in my other fstab files.
To use your new fstab file, simply do the following as root:
Code:
cd /etc
mv fstab fstab.orig
mv fstab.new fstab
This commits you to nothing irrevocable, since you still have both files. If you can't boot into the system, boot into your other one, mount the partition and reverse the changes.
Last edited by hazel; 08-17-2017 at 03:24 AM.
|
|
2 members found this post helpful.
|
08-17-2017, 01:23 PM
|
#32
|
Member
Registered: Oct 2015
Location: Vancouver, BC Canada
Distribution: Ubuntu
Posts: 269
Original Poster
Rep:
|
Thanks Hazel, just one last question [I hope]. By the other system you mean the Live DVD?
I intend to make the plunge on Saturday because tomorrow is the annual picnic for my Meetup group and I don't want to run into computer problems just before the event as I am the organiser.
|
|
|
08-17-2017, 01:50 PM
|
#33
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,036
|
Oops! I thought you had Mint and Xubuntu. Or haven't you installed xubuntu yet?
But yes, you can always use a live disk as a rescue device to correct something like a bad fstab file.
|
|
|
08-17-2017, 02:21 PM
|
#34
|
Member
Registered: Oct 2015
Location: Vancouver, BC Canada
Distribution: Ubuntu
Posts: 269
Original Poster
Rep:
|
Thank you! No, I couldn't install Xubuntu because it would tell me that /dev/sda4 was not mounted -- so I was going around in circles. I would mount /dev/sda4, but as I later discovered, only temporarily, and so when I went to install Xubuntu from a Live disk I would lose the temporary status during the reboot. That is when the saga with fstab entered the scene.
Come Saturday I will take the plunge,and if it works I intend to document my steps because I have learnt a lot, including the use of Gedit, lsblk, and handling fstab!
|
|
|
08-17-2017, 04:19 PM
|
#35
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Hi RenH,
To be clear:
- you DO need a separate partition to install another linux distro, or at the very least, some contiguous unpartitioned space that will be used by the Xubuntu installation program to create one for you.
- in the case where you already do have a separate, empty partition created (this is your case), you DO NOT need to mount it before installing the distro.
So ... there is no need for you to modify your fstab or to try and mount /dev/sda4 manually. Again, please reread my previous rather long post (#25) ...
Hope this helps - let us know how it goes.
Last edited by Rickkkk; 08-17-2017 at 04:54 PM.
|
|
|
08-18-2017, 01:45 AM
|
#36
|
Member
Registered: Oct 2015
Location: Vancouver, BC Canada
Distribution: Ubuntu
Posts: 269
Original Poster
Rep:
|
Thanks Rickkkk, I've read your answer [25] and understand what I have to do. I will try it on Saturday first, although I suspect this is what I did do before. If it doesn't work I will mount it manually. It's almost reached a point where I want to do a mount [permanent] just to prove to myself I can do it. However,prudence comes first.
|
|
|
08-18-2017, 02:31 AM
|
#37
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,036
|
You never mount your target partition during an install. It does in fact get mounted (on the live root system) but not by you! The installer mounts it and then copies all the files over to it. Most installer programs don't even need an existing partition and prefer not to have one. They just want some empty space that they can partition themselves.
I think you are getting confused because you already have a Linux system on that drive and you think it needs to be involved in the new installation somehow. Well, it doesn't. Forget that it exists. Leave the rest of your drive empty and let the installer do its job without you interfering.
|
|
1 members found this post helpful.
|
08-20-2017, 02:42 PM
|
#38
|
Member
Registered: Oct 2015
Location: Vancouver, BC Canada
Distribution: Ubuntu
Posts: 269
Original Poster
Rep:
|
Greetings Hazel and Rickkkk. I am happy to tell you [and very happy for myself] to tell you that I followed your instructions and installed Xubuntu on a new automatically created partition -- sda3. I first unmounted sda4 before trying to install. I deleted sda4 and rejoined the two partitions and then allowed the installer to partition my one partition.
I "think" if I had not unmounted sda4 but made a permanent boot via Fstab and then used the the fourth option [to install Xubuntu in a different location] it might have worked. But what you told me was so much simpler, and what I should have done from the beginning instead of the wild goose chase I undertook.
Again, thank ye all! I now have to see if I can use the programmes I installed on Mint or install again.
I'll leave this thread open a little while longer in case you have more words of wisdom on my newly installed xubuntu and/or partition.
|
|
|
08-20-2017, 03:20 PM
|
#39
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by RenH
Greetings Hazel and Rickkkk. I am happy to tell you [and very happy for myself] to tell you that I followed your instructions and installed Xubuntu on a new automatically created partition -- sda3. I first unmounted sda4 before trying to install. I deleted sda4 and rejoined the two partitions and then allowed the installer to partition my one partition.
I "think" if I had not unmounted sda4 but made a permanent boot via Fstab and then used the the fourth option [to install Xubuntu in a different location] it might have worked. But what you told me was so much simpler, and what I should have done from the beginning instead of the wild goose chase I undertook.
Again, thank ye all! I now have to see if I can use the programmes I installed on Mint or install again.
I'll leave this thread open a little while longer in case you have more words of wisdom on my newly installed xubuntu and/or partition.
|
Hey RenH - great news - glad to hear you got xubuntu installed correctly.
Just a quick note to clarify that mounting a file system happens during an active session with an operating system, either automatically at boot (through fstab) or manually as needed by the user. Once you shut down, reboot, etc. .. everything is unmounted. It is not a permanent state. Therefore, mounting a file system while in Mint would have had absolutely no impact on an installation of a second operating system - it would have been unmounted in any case as soon as you shut down Mint.
The different operating systems installed on any given computer do not see each other - they blissfully ignore each other's existence ...
Let us know how things go and please don't hesitate to ask should you want any help with anything :-)
Cheers.
Last edited by Rickkkk; 08-20-2017 at 03:22 PM.
|
|
1 members found this post helpful.
|
08-21-2017, 12:37 AM
|
#40
|
Member
Registered: Oct 2015
Location: Vancouver, BC Canada
Distribution: Ubuntu
Posts: 269
Original Poster
Rep:
|
Thank you Rickkk - I found your last reply very helpful as it ties it all up for me with respect to mounting. I intend to make a crib sheet for future reference, which I can also share with friends I am trying to persuade to abandon Microsoft for Linux.
The next few days I intend to play around with Xubuntu.
|
|
|
08-21-2017, 02:41 AM
|
#41
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,036
|
Quote:
Originally Posted by RenH
I "think" if I had not unmounted sda4 but made a permanent boot via fstab and then used the the fourth option [to install Xubuntu in a different location] it might have worked. But what you told me was so much simpler, and what I should have done from the beginning instead of the wild goose chase I undertook.
|
Don't beat yourself up for having got it wrong the first time. See what a lot you learned! That's the joy of Linux. If you make a mistake in Windows, you don't learn anything by it except not to do that again.
|
|
|
08-21-2017, 01:56 PM
|
#42
|
Member
Registered: Oct 2015
Location: Vancouver, BC Canada
Distribution: Ubuntu
Posts: 269
Original Poster
Rep:
|
Yes, you are correct, and I do like the feeling of being my own "master" with Linux. Microsoft reached the absolute peak of arrogance when it prevented the user from turning off without first updating. That was the last straw. I have never regretted removing Microsoft.
My next step is to see what I have to install. Is it possible to use the programmes installed on my Mint system?
|
|
|
08-21-2017, 04:01 PM
|
#43
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,036
|
Quote:
Originally Posted by RenH
Yes, you are correct, and I do like the feeling of being my own "master" with Linux. Microsoft reached the absolute peak of arrogance when it prevented the user from turning off without first updating. That was the last straw. I have never regretted removing Microsoft.
My next step is to see what I have to install. Is it possible to use the programmes installed on my Mint system?
|
Yes, most of them will be in Xubuntu too because Mint is based on Ubuntu
|
|
|
08-26-2017, 01:42 AM
|
#44
|
Member
Registered: Oct 2015
Location: Vancouver, BC Canada
Distribution: Ubuntu
Posts: 269
Original Poster
Rep:
|
I just want to thank Hazel and Rickkkk, and the others too, for the help. I finally installed all the necessary programmes in my Xubuntu partition. If VLC works and I don't have the freezing problems that I do with Mint, I may try to re-install Mint from a different source. But Xubuntu is clean and simple.
I'll mark this question as closed [if I know how to.]
|
|
|
08-26-2017, 11:19 AM
|
#45
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by RenH
I just want to thank Hazel and Rickkkk, and the others too, for the help. I finally installed all the necessary programmes in my Xubuntu partition. If VLC works and I don't have the freezing problems that I do with Mint, I may try to re-install Mint from a different source. But Xubuntu is clean and simple.
I'll mark this question as closed [if I know how to.]
|
You're very welcome, RenH - glad you were able to work things out the way you wanted ! Good show !
Come back anytime.
Cheers,
|
|
|
All times are GMT -5. The time now is 07:55 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|