LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 04-14-2022, 01:44 PM   #1
gbn15
LQ Newbie
 
Registered: Mar 2022
Posts: 6

Rep: Reputation: 0
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
 
Old 04-14-2022, 01:57 PM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,173

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
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.
 
1 members found this post helpful.
Old 04-14-2022, 02:12 PM   #3
gbn15
LQ Newbie
 
Registered: Mar 2022
Posts: 6

Original Poster
Rep: Reputation: 0
The secondary hard drive is used for data storage ,non bootable.
 
Old 04-14-2022, 02:29 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,338

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by gbn15 View Post
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.

Last edited by jailbait; 04-14-2022 at 03:01 PM.
 
1 members found this post helpful.
Old 04-14-2022, 04:48 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,724

Rep: Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918
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.
 
1 members found this post helpful.
Old 04-15-2022, 02:42 AM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,818
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by jailbait View Post
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).
 
1 members found this post helpful.
  


Reply



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
how to move the contents of /mnt/gentoo/k to /mnt/gentoo/ Leonig Mig Linux - General 8 06-19-2005 07:05 PM
Gotta love those ٱٱٱٱٱٱٱ&# iLLuSionZ Linux - General 5 11-18-2003 07:14 AM
i changed /mnt/cdrom to /mnt/CD-RW - now i've got a problem?!?! spyghost Linux - Software 7 09-30-2003 02:06 PM
/mnt/cdrom & /mnt/scd0 locks up machine RIgimp75 Mandriva 7 09-01-2003 09:32 PM
mount -t //192.168.0.1/mnt /mnt/windows -o password='' generates error broadsoft Linux - Networking 3 08-07-2003 04:51 AM

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

All times are GMT -5. The time now is 08:18 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