LinuxQuestions.org
Review your favorite Linux distribution.
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 05-03-2020, 09:18 AM   #16
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,229

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849

Quote:
I think that Linux is missing a trick here. It could be made so much easier for non-technically minded people to use as well.
I did some looking into Audiofile Linux.

It appears to me as this is a project that has changed a lot over time. Version 2.1 is based on Mint linux. There are much newer releases, up to version 5, based on Arch linux.

Some things you need to understand. Custom distros often have a lot of tools removed, or altered, by the distro maker. The things that are removed are seen as not necessary, well until you try to do things like add an external drive, with data copied to it from a differnet system.

Just how old version 2.1 is, I have not found yet. I also saw a release based on Debain. So, lots of mysteries.

I realize you may not be interested in how linux works, so, there are some things I would recommend. Consider finding you from the user that copied the data, what version of Audiofile they used. This is sounding like the problems are based on much different distros, different file systems and who knows what else.

Don't give up, lets find out and fix it. I feel your frustration. We all have felt it from time to time.
 
Old 05-03-2020, 09:29 AM   #17
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
I did some looking into Audiofile Linux.

It appears to me as this is a project that has changed a lot over time. Version 2.1 is based on Mint linux. There are much newer releases, up to version 5, based on Arch linux.

Some things you need to understand. Custom distros often have a lot of tools removed, or altered, by the distro maker. The things that are removed are seen as not necessary, well until you try to do things like add an external drive, with data copied to it from a differnet system.

Just how old version 2.1 is, I have not found yet. I also saw a release based on Debain. So, lots of mysteries.

I realize you may not be interested in how linux works, so, there are some things I would recommend. Consider finding you from the user that copied the data, what version of Audiofile they used. This is sounding like the problems are based on much different distros, different file systems and who knows what else.

Don't give up, lets find out and fix it. I feel your frustration. We all have felt it from time to time.
The hard drive in question was cloned from the music drive on the machine using APL3, so yes based on Arch not Mint. Both drives contain only the music, ie nothing of the operating system (as far as I understand it) If you think that is the issue then I will presumably have to format the drive that I am trying to mount, and then try mounting it, and then copy all the music onto it again. Is that right?

Version 2.1 of APL is seven years old. I did try to get APL3 installed but it wouldn't run (probably due to the age of the computer) so I reinstalled v2.1 that had worked fine since it was installed in 2013.

I must also mention (again) that the music drive will mount, and play the music OK. So is there an issue with it being cloned from the other machine?

Last edited by Nuuk; 05-03-2020 at 09:33 AM.
 
Old 05-03-2020, 09:49 AM   #18
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,229

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I would not format the drive yet. It may be needed eventually, but there are other possibilities.

I have seen threads where mounting at boot time was failing. The solution was to put a delay in the boot process, to allow the external drive to spin up. So, some more questions.

The external drive, is it a hard drive, what I call spinning rust? Im guessing yes here.

How is it connected to your system, usb2 or usb3 ? USB2 us much slower than USB3.

Do you know if your version, 2.1 uses systemd? This is an area I have little knowledge of. I avoid it like a plague.
I will see if I can find that out online.

We are here because the advise you received earlier is correct as far as I know, and the drive will not mount at boot time.
 
Old 05-03-2020, 01:05 PM   #19
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
I would not format the drive yet. It may be needed eventually, but there are other possibilities.

I have seen threads where mounting at boot time was failing. The solution was to put a delay in the boot process, to allow the external drive to spin up. So, some more questions.

The external drive, is it a hard drive, what I call spinning rust? Im guessing yes here.

How is it connected to your system, usb2 or usb3 ? USB2 us much slower than USB3.

Do you know if your version, 2.1 uses systemd? This is an area I have little knowledge of. I avoid it like a plague.
I will see if I can find that out online.

We are here because the advise you received earlier is correct as far as I know, and the drive will not mount at boot time.
The drive that I am trying to mount is an internal SATA (a 'spinner').

Surely the drive will not mount because fstab won't modify. I think if I could get the edited version to save, that would solve the problem.

How would I find out if it is a systemd? I think that I may have seen some folders with a .d suffix, but I will need to check.

I don't know if this is at all relevant but I noticed when I mounted the drive manually this afternoon (I needed a break, and listened to some music) that it was mounted into /media.
 
Old 05-03-2020, 03:14 PM   #20
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,229

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
For now, lets not worry if you have systemd or not. I asked the question, because if we need to put a delay in the boot process, that would involve systemd.

If you can not modify /etc/fstab; we need to find out why. So, for now, have a look at the permissions on the /etc directory, and on the fstab file. This is fairly easy to do. Here is what I see on my system, I can become root user and modify any file I choose.

Quote:
ls -ld /etc
drwxr-xr-x 112 root root 12K May 3 11:53 /etc/
[cliff:~] $ ls -l /etc/fstab
-rw-r--r-- 1 root root 1.5K Mar 6 10:23 /etc/fstab
There are two commands here, the first one; ls -ld /etc shows root has read, write, and execute permission. Group has read and execute ( no write access ) and other is the same as group.

The 'ls -l /etc/fstab' shows root can read and write the file, and group and other are read only. So, root has permission to change fstab. This is a normal setup.

If you can open a terminal, as your regular user, run the two commands, copy and paste the results here. There are ways of modifying the permissions if they are preventing you from updating fstab.
 
Old 05-03-2020, 03:18 PM   #21
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
For now, lets not worry if you have systemd or not. I asked the question, because if we need to put a delay in the boot process, that would involve systemd.

If you can not modify /etc/fstab; we need to find out why. So, for now, have a look at the permissions on the /etc directory, and on the fstab file. This is fairly easy to do. Here is what I see on my system, I can become root user and modify any file I choose.



There are two commands here, the first one; ls -ld /etc shows root has read, write, and execute permission. Group has read and execute ( no write access ) and other is the same as group.

The 'ls -l /etc/fstab' shows root can read and write the file, and group and other are read only. So, root has permission to change fstab. This is a normal setup.

If you can open a terminal, as your regular user, run the two commands, copy and paste the results here. There are ways of modifying the permissions if they are preventing you from updating fstab.
Thanks Cliff. I'm just off to bed but will look at the permissions on my machine tomorrow morning and report back.
 
Old 05-04-2020, 01:35 AM   #22
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled
ls -ld/etc didn't work for me - I got the message 'Invalid option --'/'

I used CD /etc, and was then able to list the contents, and found that the permissions for fstab are -rw-r--r--
 
Old 05-04-2020, 02:04 AM   #23
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,927

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
ls -ld<space>/etc
that won't work without that space
 
Old 05-04-2020, 03:16 AM   #24
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
ls -ld<space>/etc
that won't work without that space
Thanks Pan64, I will try again.
 
Old 05-04-2020, 04:20 AM   #25
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled
Some progress! Using gksudo gedit fstab I was able to modify the fstab file to look the following:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=42007db2-50af-46ae-9f4c-8b87b87c893f / ext4 rw,errors=remount-ro 0 1

# /dev/sdb
UUID=3b754aac-49bb-46fd-b3fc-e253449a1f62 /mnt/music ext4 0 0


I rebooted,and then checked fstab again to make sure that the changes had been saved.

I then made a folder inside mnt using first su, then mkdir /mnt/music I then used the file manager to check that it was in mnt

I then rebooted, but could not access the drive with the music on. Moreover, when I went to manually mount the drive, it was no longer shown in 'Computer'.

I think that I have made some progress, and hope that somebody can spot what is currently wrong.
 
Old 05-04-2020, 04:28 AM   #26
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,927

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
1. you do not need to reboot.
2. use mount -a to check if /etc/fstab is ok.
3. but you need first create that /mnt/music and after mount /dev/sdb (that will not work in reverse order)
4. use the command mount (without any arguments) to see what is mounted. You can check /dev/sdb (or /mnt/music)
5. without mount you will use the local /mnt/music directory, which will be hidden (including its content) if the mount was successful
6. I think Computer will not show it, you just will use it as a regular directory, but actually that will be the new /dev/sdb
 
Old 05-04-2020, 04:52 AM   #27
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
1. you do not need to reboot.
2. use mount -a to check if /etc/fstab is ok.
3. but you need first create that /mnt/music and after mount /dev/sdb (that will not work in reverse order)
4. use the command mount (without any arguments) to see what is mounted. You can check /dev/sdb (or /mnt/music)
5. without mount you will use the local /mnt/music directory, which will be hidden (including its content) if the mount was successful
6. I think Computer will not show it, you just will use it as a regular directory, but actually that will be the new /dev/sdb
I have already created /mnt/music, and it shows up in the file manager. So, I type 'mount -a' in the terminal and then '/dev/sdb' on the next line? Or do you mean after the mount command add the /dev/sdb, ie 'mount -a /dev/sdb'?
 
Old 05-04-2020, 05:30 AM   #28
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,927

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
see man mount about usage.
Code:
mount -a                            # mount all partitions, so it will mount /dev/sdb
# but you can use
mount /dev/sdb                      # to mount only this one
# use a simple mount command to check the result
mount                               # will display what is mounted
during boot a mount -a is executed, you do not need to do it after a successful boot (but if you modified /etc/fstab).
 
Old 05-04-2020, 05:55 AM   #29
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,229

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I still see an error. The drive is sdb, in this case, however, it has to have at least one partiton. You mount partitions, not the whole drive. When there is only one partition, you have the whole drive mounted.

So, if you try a manual mount command, you would use the command 'mount /dev/sdb1 /mnt/music'. Be carful though.
Take a look at the permissions of /mnt/music directory. /mnt on any system is owned by root, unless you change it.Tp create the mount point music inside on /mnt, it will be owned by root also. This will allow user read access only. Is this what you want?

If not, you have to change the ownership of music, so the mounted partition sdb1 can be read and written to at a lter date.

It is easier to mount sdb1 inside your /home/youruser directory with a mount point your user id creates it with. That may sound complicated, however, it is simple. Just use the mkdir command when logged into your system, run the command mkdir somedirmountpoint and use that empty dir as your mount point. somedirmountpoint can be any string you want. I would suggest something like sdb1 would make sense to you.

One more comment, when you enter any command, spaces matter, they are separators so the command interpreter can understand what you are entering.
 
Old 05-04-2020, 06:24 AM   #30
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,927

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
Quote:
Originally Posted by camorri View Post
I still see an error. The drive is sdb, in this case, however, it has to have at least one partiton. You mount partitions, not the whole drive. When there is only one partition, you have the whole drive mounted.
Unfortunately that is false. You can put a filesystem onto any device without partitions. In that case you will have one single partition (containing the whole drive), one filesystem. Usually pendrives were used like this, but in general it is possible - if you don't want to make partitions (do not want to split the drive).

Otherwise you may have right, that can be /dev/sdb1. During the execution of the mount command it will be clear immediately, because mount will fail if no filesystem found on the given partition.
 
  


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
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 10:56 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