[SOLVED] separate boot partition & secondary Hard Drive /mnt question
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.
separate boot partition & secondary Hard Drive /mnt question
A)After creating a separate boot partition when doing manual partitioning(called something else in linux mint),do I have to create a /boot directory under existing designated mount point /mnt and mount the partition there?
And do I accomplish the following steps listed below in a live linux environment or after installation?
[B] sudo mkdir /mnt/boot sudo mount /dev/sda1 /mnt/boot for manual mount testing
Then mount boot partition permanently by adding it to fstab file
or no need to undergo all these procedures because boot mounting is taken care of by the installer even during manual partition?
AUTOMOUNT SECONDARY HARDRIVE[
B)I want to add a secondary Hard drive & make it automount at boottime,
by mounting the new drive eg /dev/sdb1 to a data directory under mount point /mnt.
My question is can the '/mnt mount point of the first linux mint installed Hard Disk be shared by both drives ?
Thanks in advance.
(SOLVED)Thanks to Uteck,Jailbait,Michaelk & MrMazda
Last edited by gbn15; 04-16-2022 at 09:09 AM.
Reason: format.make bold text
Distribution: Ubuntu based stuff for the most part
Posts: 1,173
Rep:
A) if you make a separate /boot during install, the installer should take care of it. There is no need to do anything else
B) Not sure what you mean. Is this second disk going to contain a bootable OS? If so then yo need to repeat the process on that install.
A) AUTOMOUNT SECONDARY HARDRIVE[
B)I want to add a secondary Hard drive & make it automount at boottime,
by mounting the new drive eg /dev/sdb1 to a data directory under mount point /mnt.
My question is can the '/mnt mount point of the first linux mint installed Hard Disk be shared by both drives ?
First of all you are not mounting hard drives, you are mounting partitions. If you want to automount a partition at boot time you describe that partition in /etc/fstab. Most installers allow you to create partitions during install and they will create the correct entry in /etc/fstab. The installer will also allow you to create a user.
So I recommend that you create a partition on /dev/sdb1 and tell the installer to mount it on /home/username/data. The first time you log into username then create a directory called /home/username/data and then reboot.
In general /mnt is used to mount and umount partitions on the fly.
In linux there are no separate disk drives like c: d: etc similar to Windows. Everything is attached to /(root) filesystem like a tree. To attach /dev/sdb1 to the tree you could mount it to /mnt/data.
If you follow Filesystem Hierarchy Standard (FHS) https://en.wikipedia.org/wiki/Filesy...archy_Standard set of conventions then yes /mnt is for temporarily mounted filesystems but you can mount a filesystem almost anywhere.
First of all you are not mounting hard drives, you are mounting partitions.
Partitions without filesystems are not directly mountable, except for swap. Filesystems are mountable. /etc/fstab is a configuration file for mounting filesystems and swapspace(s).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.