LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 08-17-2017, 02:17 AM   #31
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,594
Blog Entries: 16

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318

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 02:24 AM.
 
2 members found this post helpful.
Old 08-17-2017, 12:23 PM   #32
RenH
Member
 
Registered: Oct 2015
Location: Vancouver, BC Canada
Distribution: U of Manitoba - not sure
Posts: 158

Original Poster
Rep: Reputation: Disabled
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.
 
Old 08-17-2017, 12:50 PM   #33
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,594
Blog Entries: 16

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
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.
 
Old 08-17-2017, 01:21 PM   #34
RenH
Member
 
Registered: Oct 2015
Location: Vancouver, BC Canada
Distribution: U of Manitoba - not sure
Posts: 158

Original Poster
Rep: Reputation: Disabled
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!
 
Old 08-17-2017, 03:19 PM   #35
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch
Posts: 1,253

Rep: Reputation: 467Reputation: 467Reputation: 467Reputation: 467Reputation: 467
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 03:54 PM.
 
Old 08-18-2017, 12:45 AM   #36
RenH
Member
 
Registered: Oct 2015
Location: Vancouver, BC Canada
Distribution: U of Manitoba - not sure
Posts: 158

Original Poster
Rep: Reputation: Disabled
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.
 
Old 08-18-2017, 01:31 AM   #37
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,594
Blog Entries: 16

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
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.
Old 08-20-2017, 01:42 PM   #38
RenH
Member
 
Registered: Oct 2015
Location: Vancouver, BC Canada
Distribution: U of Manitoba - not sure
Posts: 158

Original Poster
Rep: Reputation: Disabled
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.
 
Old 08-20-2017, 02:20 PM   #39
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch
Posts: 1,253

Rep: Reputation: 467Reputation: 467Reputation: 467Reputation: 467Reputation: 467
Quote:
Originally Posted by RenH View Post
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 02:22 PM.
 
1 members found this post helpful.
Old 08-20-2017, 11:37 PM   #40
RenH
Member
 
Registered: Oct 2015
Location: Vancouver, BC Canada
Distribution: U of Manitoba - not sure
Posts: 158

Original Poster
Rep: Reputation: Disabled
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.
 
Old 08-21-2017, 01:41 AM   #41
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,594
Blog Entries: 16

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
Quote:
Originally Posted by RenH View Post

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.
 
Old 08-21-2017, 12:56 PM   #42
RenH
Member
 
Registered: Oct 2015
Location: Vancouver, BC Canada
Distribution: U of Manitoba - not sure
Posts: 158

Original Poster
Rep: Reputation: Disabled
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?
 
Old 08-21-2017, 03:01 PM   #43
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,594
Blog Entries: 16

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
Quote:
Originally Posted by RenH View Post
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
 
Old 08-26-2017, 12:42 AM   #44
RenH
Member
 
Registered: Oct 2015
Location: Vancouver, BC Canada
Distribution: U of Manitoba - not sure
Posts: 158

Original Poster
Rep: Reputation: Disabled
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.]
 
Old 08-26-2017, 10:19 AM   #45
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch
Posts: 1,253

Rep: Reputation: 467Reputation: 467Reputation: 467Reputation: 467Reputation: 467
Quote:
Originally Posted by RenH View Post
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,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB boot menu does not appear after installation of Mint 15 mikebaiduu Linux - Newbie 2 12-30-2013 07:01 PM
Mint not appearing on the boot menu (Dual with Windows) Fruffles Linux - Newbie 2 07-14-2013 05:50 AM
Linux mint 12 freezes on grub boot menu Traversalan15 Linux - Newbie 1 10-25-2012 04:42 PM
To get back linux mint boot menu Debashis@Mint Linux Mint 2 04-29-2010 06:03 AM
Select boot options in shutdown menu? dominik81 Mandriva 7 02-21-2004 03:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration