Adding a second hard drive(SOLVED)

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
SeanNZ
Level 1
Level 1
Posts: 24
Joined: Sun Sep 17, 2017 5:57 pm
Location: New Zealand

Adding a second hard drive(SOLVED)

Post by SeanNZ » Sat Aug 24, 2019 7:17 pm

I have recently moved form a dual boot with Mint and Windows 10 to just Mint. I've correctly formatted my second M.2 ssd using GPart but I've had no end of fun trying to get the second drive identified by Mint so I can use it to store files within file manager. I know how to do this in Windows but in Mint its been a problem with conflicting information on line.

If anyone can tell me how to do this from terminal (I suspect this will be the best approach) I'd appreciate it.
Last edited by SeanNZ on Wed Aug 28, 2019 4:36 am, edited 1 time in total.

User avatar
catweazel
Level 19
Level 19
Posts: 9221
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Adding a second hard drive

Post by catweazel » Sat Aug 24, 2019 7:24 pm

SeanNZ wrote:
Sat Aug 24, 2019 7:17 pm
If anyone can tell me how to do this from terminal (I suspect this will be the best approach) I'd appreciate it.
That's going to be somewhat difficult to do in the absence of a description of what the actual symptoms of the problem are. Can you can expand on the issue, please.
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

athi
Level 6
Level 6
Posts: 1296
Joined: Sun Mar 30, 2014 10:15 am
Location: USA

Re: Adding a second hard drive

Post by athi » Sat Aug 24, 2019 7:51 pm

Mint Mate 19.1. Main rig is HP 800G2 I5 6500 16GB ram, 120GB boot drive, 2x3TB, 1x4TB data drives. Oldest rig is Mate 18.3 on Dell D620 with 32bits core duo.

User avatar
SeanNZ
Level 1
Level 1
Posts: 24
Joined: Sun Sep 17, 2017 5:57 pm
Location: New Zealand

Re: Adding a second hard drive

Post by SeanNZ » Sat Aug 24, 2019 8:41 pm

The guide you posted is one I have tried already but when I get down to this point:

sudo gedit /etc/fstab

Heres the repsonse:

sudo: gedit: command not found

User avatar
catweazel
Level 19
Level 19
Posts: 9221
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Adding a second hard drive

Post by catweazel » Sat Aug 24, 2019 8:56 pm

SeanNZ wrote:
Sat Aug 24, 2019 8:41 pm
sudo: gedit: command not found
That's because the article isn't appropriate for your version of LM. The article is old and out of date. Use sudo nano /etc/fstab instead, from within a terminal. Use the cursor keys to move around, type the changes or copy/paste using the mouse. ctrl-s to save, ctrl-x to exit.

If you must use a GUI text editor then use xed admin:///etc/fstab
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

decrepit
Level 3
Level 3
Posts: 166
Joined: Mon Dec 03, 2018 4:07 am

Re: Adding a second hard drive

Post by decrepit » Sun Aug 25, 2019 7:44 am

yes gedit is the original text editor for the gnome desktop. xed is the mint test editor, you can't invoke something you haven't got.
If in doubt at any time, just start the text editor, click on "help" then "about", that will give name and version.

athi
Level 6
Level 6
Posts: 1296
Joined: Sun Mar 30, 2014 10:15 am
Location: USA

Re: Adding a second hard drive

Post by athi » Sun Aug 25, 2019 9:15 am

catweazel wrote:
Sat Aug 24, 2019 8:56 pm
SeanNZ wrote:
Sat Aug 24, 2019 8:41 pm
sudo: gedit: command not found
That's because the article isn't appropriate for your version of LM. The article is old and out of date. Use sudo nano /etc/fstab instead, from within a terminal. Use the cursor keys to move around, type the changes or copy/paste using the mouse. ctrl-s to save, ctrl-x to exit.

If you must use a GUI text editor then use xed admin:///etc/fstab
Thank you for the correction, catweazel. Missed the gedit editor :oops:
Mint Mate 19.1. Main rig is HP 800G2 I5 6500 16GB ram, 120GB boot drive, 2x3TB, 1x4TB data drives. Oldest rig is Mate 18.3 on Dell D620 with 32bits core duo.

User avatar
SeanNZ
Level 1
Level 1
Posts: 24
Joined: Sun Sep 17, 2017 5:57 pm
Location: New Zealand

Re: Adding a second hard drive

Post by SeanNZ » Mon Aug 26, 2019 5:08 pm

catweazel wrote:
Sat Aug 24, 2019 8:56 pm
SeanNZ wrote:
Sat Aug 24, 2019 8:41 pm
sudo: gedit: command not found
That's because the article isn't appropriate for your version of LM. The article is old and out of date. Use sudo nano /etc/fstab instead, from within a terminal. Use the cursor keys to move around, type the changes or copy/paste using the mouse. ctrl-s to save, ctrl-x to exit.

If you must use a GUI text editor then use xed admin:///etc/fstab
Thanks for that. Sadly even using the correct editor I could not get the desired outcome following the instructions. In fact my system crashed and I had to do a complete re-install. It would be great if the Mint community could release a new set of updated instructions. For now will probably need to ether install a second OS on the other drive or go back to Windows 10.

Shame too a tool has not been developed to manage this as a lot of people have secondary SSD's.

User avatar
catweazel
Level 19
Level 19
Posts: 9221
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Adding a second hard drive

Post by catweazel » Mon Aug 26, 2019 5:11 pm

SeanNZ wrote:
Mon Aug 26, 2019 5:08 pm
Shame too a tool has not been developed to manage this as a lot of people have secondary SSD's.
If you can post the output of these commands, I'm happy to try and help get you going.

sudo blkid
lsblk


Enclose the results between [ⅽode] and [/ⅽode] code markers by selecting </> from the mini toolbar above the textbox where you type your reply.
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

User avatar
SeanNZ
Level 1
Level 1
Posts: 24
Joined: Sun Sep 17, 2017 5:57 pm
Location: New Zealand

Re: Adding a second hard drive

Post by SeanNZ » Mon Aug 26, 2019 5:43 pm

catweazel wrote:
Mon Aug 26, 2019 5:11 pm
SeanNZ wrote:
Mon Aug 26, 2019 5:08 pm
Shame too a tool has not been developed to manage this as a lot of people have secondary SSD's.
If you can post the output of these commands, I'm happy to try and help get you going.

sudo blkid
lsblk


Enclose the results between [ⅽode] and [/ⅽode] code markers by selecting </> from the mini toolbar above the textbox where you type your reply.
Cheers. I'll do a bit more research and list what I think the process is and maybe we can work it out. If its good could help other people too.

User avatar
SeanNZ
Level 1
Level 1
Posts: 24
Joined: Sun Sep 17, 2017 5:57 pm
Location: New Zealand

Re: Adding a second hard drive

Post by SeanNZ » Mon Aug 26, 2019 9:49 pm

catweazel wrote:
Mon Aug 26, 2019 5:11 pm
SeanNZ wrote:
Mon Aug 26, 2019 5:08 pm
Shame too a tool has not been developed to manage this as a lot of people have secondary SSD's.
If you can post the output of these commands, I'm happy to try and help get you going.

sudo blkid
lsblk


Enclose the results between [ⅽode] and [/ⅽode] code markers by selecting </> from the mini toolbar above the textbox where you type your reply.
Here's a little background plus an explanation of what happened. Hopefully its enough to give an idea of what transpired and maybe any error I might have made.

I installed Mint on my m.2 SSD drive as I believe they are faster than conventional SSD’s. Its also newer. Both have been formatted and are using Ext4.

Here’s the output for the drive I’m trying to add:


/dev/sdb1: UUID="bd00a6f2-897c-40c0-9948-e7d63228608f" TYPE="ext4" PARTUUID="8ba5cfa8-01"

I accessed fstab using Nano as per your revised command and added this line at the end.


UUID= bd00a6f2-897c-40c0-9948-e7d63228608f /media/otherdisk ext4 defaults 0 3

I believe you save using “ctrl O”. It did say it had been written to disk.

Having then restarted the system it crashed to the text based prompt and refused to load into Mint even after I made a number of attempts to fix the problem.

Three questions occur to me.

-Is there a space needed between e7d63228608f (space?) /media/.....
-Are the parameters /media/otherdisk ext4 defaults 0 3 still valid or are they now redundant?
-did I use the correct command Ctrl O to save to disk? (Nano is not exactly easy to use).

Any suggestions welcomed. This time I’ll back up Mint before trying again.

gittiest personITW
Level 4
Level 4
Posts: 443
Joined: Tue May 28, 2019 4:27 pm

Re: Adding a second hard drive

Post by gittiest personITW » Tue Aug 27, 2019 9:24 am

Hi,

-there should be a "space" between the UUID and the location of the mount. For instance

Code: Select all

UUID=909809784890 /mnt/devicepath
One of my lines in fstab for a disk that is always mounted but only used for backups is (sustitute UUID=bd00a6f2-897c-40c0-9948-e7d63228608f for LABEL=500bkp):

Code: Select all

LABEL=500bkp /mnt/500bkp auto nosuid,nodev,nofail 0 0

- 0 0 should be ok if its not a boot disk.
- I don't use Nano but a quick search seems to indicate Ctrl-o or F3 "Writes the file to disk"
- No spaces in UUID=bd00a6f2-897c-40c0-9948-e7d63228608f

User avatar
SeanNZ
Level 1
Level 1
Posts: 24
Joined: Sun Sep 17, 2017 5:57 pm
Location: New Zealand

Re: Adding a second hard drive

Post by SeanNZ » Tue Aug 27, 2019 5:23 pm

gittiest personITW wrote:
Tue Aug 27, 2019 9:24 am
Hi,

-there should be a "space" between the UUID and the location of the mount. For instance

Code: Select all

UUID=909809784890 /mnt/devicepath
One of my lines in fstab for a disk that is always mounted but only used for backups is (sustitute UUID=bd00a6f2-g 97c-40c0-9948-e7d63228608f for LABEL=500bkp):

Code: Select all

LABEL=500bkp /mnt/500bkp auto nosuid,nodev,nofail 0 0

- 0 0 should be ok if its not a boot disk.
- I don't use Nano but a quick search seems to indicate Ctrl-o or F3 "Writes the file to disk"
- No spaces in UUID=bd00a6f2-897c-40c0-9948-e7d63228608f
I tried both of your suggestions and they "sort of" worked. Looking under "media" at the top of file manager I have a drive called "othermedia" as per the directory created in the tutorial but still no actual hard disk listed. Moreover I can't access it to store files only view it. May just install a secondary OS on the other drive. Maybe have a play with Manjaro.

For Mint developers if you are reading this I'd suggest you move to remedy this if you want the wider community to move to support Linux Mint. I'm not an inexperienced user and even I found this daunting. I can't imagine how a newbie to IT would find it.

User avatar
Larry78723
Level 6
Level 6
Posts: 1178
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: Adding a second hard drive

Post by Larry78723 » Tue Aug 27, 2019 6:21 pm

Sean, I'm going to make some assumptions about where you want to mount your other drive. These are the exact steps you need to do.

Open a terminal full screen

Code: Select all

sudo mkdir /home/sean/otherdisk

Code: Select all

sudo chown -R -v $USER:$USER /home/sean/otherdisk

Code: Select all

sudo mount dev/sdb1 /home/sean/otherdisk

Code: Select all

sudoedit /etc/fstab
Add the following lines at bottom

Code: Select all

# otherdisk from sdb1
UUID=bd00a6f2-897c-40c0-9948-e7d63228608f  /home/sean/otherdisk  ext4  defaults  0 3
Remove or comment(#) any other lines referring to your other drive

Ctrl O to save
Ctrl X to exit

Reboot

You should now see an otherdrive folder under /home/sean and be able to read/write to your other drive
Image

User avatar
SeanNZ
Level 1
Level 1
Posts: 24
Joined: Sun Sep 17, 2017 5:57 pm
Location: New Zealand

Re: Adding a second hard drive

Post by SeanNZ » Tue Aug 27, 2019 7:25 pm

Thanks but again a fail. This time:

mount: /home/otherdisk: special device dev/sdb1 does not exist.

Back to Windows for me.

User avatar
SeanNZ
Level 1
Level 1
Posts: 24
Joined: Sun Sep 17, 2017 5:57 pm
Location: New Zealand

Re: Adding a second hard drive

Post by SeanNZ » Tue Aug 27, 2019 8:30 pm

Larry78723 wrote:
Tue Aug 27, 2019 6:21 pm
Sean, I'm going to make some assumptions about where you want to mount your other drive. These are the exact steps you need to do.

Open a terminal full screen

Code: Select all

sudo mkdir /home/sean/otherdisk

Code: Select all

sudo chown -R -v $USER:$USER /home/sean/otherdisk

Code: Select all

sudo mount dev/sdb1 /home/sean/otherdisk

Code: Select all

sudoedit /etc/fstab
Add the following lines at bottom

Code: Select all

# otherdisk from sdb1
UUID=bd00a6f2-897c-40c0-9948-e7d63228608f  /home/sean/otherdisk  ext4  defaults  0 3
Remove or comment(#) any other lines referring to your other drive

Ctrl O to save
Ctrl X to exit

Reboot

You should now see an otherdrive folder under /home/sean and be able to read/write to your other drive
Finally got it to work. Added a directory but still requires me to log in each time as root to add files. Not as easy or seamless as Win 10 but still better than no access. Thanks for the assist.

User avatar
WharfRat
Level 21
Level 21
Posts: 13084
Joined: Thu Apr 07, 2011 8:15 pm

Re: Adding a second hard drive

Post by WharfRat » Tue Aug 27, 2019 8:40 pm

You ran chown before the filesystem was mounted - the owner:group is stored in the filesystem.

So run sudo chown -R -v $USER:$USER /home/sean/otherdisk with the /dev/sdb1 mounted.

That only needs to be done once :wink:
ImageImage

User avatar
Larry78723
Level 6
Level 6
Posts: 1178
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: Adding a second hard drive

Post by Larry78723 » Tue Aug 27, 2019 8:52 pm

WharfRat, thanks for catching the error in the sequence.
Image

decrepit
Level 3
Level 3
Posts: 166
Joined: Mon Dec 03, 2018 4:07 am

Re: Adding a second hard drive

Post by decrepit » Tue Aug 27, 2019 8:58 pm

SeanNZ wrote:
Tue Aug 27, 2019 7:25 pm
Thanks but again a fail. This time:

mount: /home/otherdisk: special device dev/sdb1 does not exist.

Back to Windows for me.
There's a mistake here I often make, so I'm used to spotting it. Should be /dev/sdb1 not dev/sdb1.
without the first / it's looking for dev/sdb1 in the directory you're currently in

Post Reply

Return to “Newbie Questions”