LinuxQuestions.org
Visit Jeremy's Blog.
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 05-06-2020, 03:52 AM   #121
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by pan64 View Post
Is this the current situation? UUID looks correct (and it is actually /dev/sdb1), so you need to decide if /nick/Music/music or /media/Music should be used as mount point (or anything else).
You need to create it (if does not exist). Also need to remove the comment (if you wish to use that). You can mount only once, so repeated mount -a will do nothing.

That's all, during reboot it should be automatically mounted. BUT if it was an external disk/usb stick this /etc/fstab is not a solution (works only if it is plugged in continuously).
Yes, that was the current fstab. The bottom line is commented out with a # as you told me to do. If it isn't commented out, then I do not have the opportunity to mount the drive using the right-click method.

I am trying to mount to /home/nick/Music/music as it was suggested that I should not mount to /media. You showed me how to create that mount point.

As regards the sdb or sdb1 I have tried both of them.

I understand that a drive needs to be connected to be mounted automatically (at startup), but previously I was able to connect a USB drive after start up, and have it recognised.
 
Old 05-06-2020, 04:53 AM   #122
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled
Hoorayyyyyyyyyyyyyyyyyyyy!

Marko Lerota (of Audiophile Linux) suggested a different line for the fstab which is

Quote:
UUID=5f85ddfd-819d-4041-b685-fc57c4676d9f /home/nick/Music/music ext4 rw,noatime,data=ordered 2 2
and the drive mounted from boot up.

He then told me how to get ownership:

Quote:
# chown -R nick:nick /home/nick/Music
I then had the issue of the two USB drives containing the music not being recognised, but a third drive made with a Linux system has been recognized, and the long task of copying music across has started.

Thanks to everybody who tried to help. As I've said, I am not a Linux user, so don't know why the code from Marko worked but it does. After the music is copied across, I will make a backup of the OS using Redo so that I hopefully won't go through all this again.

I will later make a last post summarising all that I did in case anybody else needs to do the same job.
 
Old 05-06-2020, 06:09 AM   #123
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled
This is how I added a second hard drive to my Linux computer (it uses Linux Mint but modified to become Audiophile Linux but these instructions should work for most Linux systems)

NOTE the bits that you need to change are shown in green

Assuming that the drive is physically installed in your computer:

Open a text editor eg Gedit

Then open the terminal, and type

Quote:
sudo blkid
In the output of that command I recognized the drive that I was installing from its size as sdb Hopefully you can too but it shouldn't be too difficult to identify it.

Copy that UUID number, and paste it into Gedit

Returning to the terminal type:

Quote:
cd /etc
Then:

Quote:
gksudo gedit fstab
You will be asked for your password, and then Gedit should open up. (If you get an error message, close the terminal, then open it up again and go back two steps)

It is a good idea to save the existing fstab file under a different name eg fstab-bak in case you mess up and need to start again.

Leave a blank line underneath the existing code and enter:

Quote:
# /dev/sdb1
UUID=5f85ddfd-819d-4041-b685-fc57c4676d9f /home/nick/Music/music ext4 rw,noatime,data=ordered 2 2
BUT change the UUID number to the one that you previously pasted into the text editor.

ALSO change nick for the username that you use on that computer.

ALSO if you drive is listed as something other than sdb1, change that too.

Check what you have added to fdtab and make sure that it is correct, particularly the UUID number.

Save the fstab file, and Quit GEDIT.

That has now told the operating system to boot your hard drive up automatically when you start the computer.

But the drive/filesystem needs to boot to a mount point. So create one now as follows:

In the terminal type:

Quote:
mkdir -p /nick/Music/music
Again - change nick for your username.

Now to give you ownership of the 'music' directory type:

Quote:
chown -R nick:nick /home/nick/Music
And again change all instances of nick to your username.

Now close the terminal and text editor, reboot the computer, and when it reboots you should see your drive/filesystem on your desktop ready to be used. If not I hope that the good folk here can help you further than I can.
 
Old 05-06-2020, 06:30 AM   #124
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,786

Rep: Reputation: 4848Reputation: 4848Reputation: 4848Reputation: 4848Reputation: 4848Reputation: 4848Reputation: 4848Reputation: 4848Reputation: 4848Reputation: 4848Reputation: 4848
looks like it is solved now.
Please mark the thread solved.
 
Old 05-06-2020, 07:49 AM   #125
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
looks like it is solved now.
Please mark the thread solved.
Will do, and thanks again for your help.
 
Old 05-06-2020, 07:51 AM   #126
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,786

Rep: Reputation: 4848Reputation: 4848Reputation: 4848Reputation: 4848Reputation: 4848Reputation: 4848Reputation: 4848Reputation: 4848Reputation: 4848Reputation: 4848Reputation: 4848
you are welcome. Glad it is solved finally.
 
  


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
Mount second drive and move Home to second drive edjenn1998 Linux - Newbie 9 07-08-2019 10:50 AM
Second Hard Drive Mounting Problems JC404 Linux - Newbie 16 07-11-2003 06:52 AM
Why does Redhat 8.0 access hard drive second by second? Cyclops Linux - Distributions 5 11-20-2002 07:34 PM
mounting a second hard drive evilRhino Linux - General 2 10-17-2002 01:22 AM
Questions regarding mounting partitions on the second hard drive HoHah Linux - General 15 04-16-2002 08:56 AM

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

All times are GMT -5. The time now is 06:32 PM.

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