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-04-2020, 10:36 AM   #61
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,235

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860

Is nick you user name ?

Big picture, where are you trying to mount this drive? Is it in your home directory?

Is the mount point /nick/Music/music

OR

is it /home/nick/Music/music ? This is a critical difference.

In order to have it /nick/Music/music; as root you would have to do these commands:

cd / ( press enter key )

mkdir nick ( press enter key )

cd /nick ( press enter key )

mkdir Music ( press enter key )

cd Music ( press enter key )

mkdir music ( press enter key )

Is that what you did?
 
Old 05-04-2020, 10:36 AM   #62
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled
I changed the fstab file to read

# /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/sdb1
UUID=3b754aac-49bb-46fd-b3fc-e253449a1f62 /home/nick/Music/music ext4 0 0

and when I used mount -a I got the following message:

Wrong fs type, bad option, bad superblock on /dev/sdb, missing code page or help program or other error.
 
Old 05-04-2020, 10:37 AM   #63
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,970

Rep: Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334
So decide, if you really want to use /nick/Music/music (or anything else).
execute the following:
Code:
mkdir -p /nick/Music/music # < this is exactly the same path, same directory
Edit your fstab and add this path as mount point.
now try to execute mount -a.
And please post all the output/response...
 
Old 05-04-2020, 10:38 AM   #64
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
Is nick you user name ?

Big picture, where are you trying to mount this drive? Is it in your home directory?

Is the mount point /nick/Music/music

OR

is it /home/nick/Music/music ? This is a critical difference.

In order to have it /nick/Music/music; as root you would have to do these commands:

cd / ( press enter key )

mkdir nick ( press enter key )

cd /nick ( press enter key )

mkdir Music ( press enter key )

cd Music ( press enter key )

mkdir music ( press enter key )

Is that what you did?
No Cliff, I assumed as I can see the nick directory in file manager, with another directory in it called Music, I simply made a new directory called music in that.
 
Old 05-04-2020, 10:45 AM   #65
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,235

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Quote:
I simply made a new directory called music in that.
OK good, that is what I had originally thought you had done.

Quote:
and when I used mount -a I got the following message:

Wrong fs type, bad option, bad superblock on /dev/sdb, missing code page or help program or other error.
I don't see anything wrong with the entry you posted for the mount in fstab. I'm going to suggest you check the UUID for sdb1, if that is incorrect it could cause this error. The other items in this command look OK.
 
Old 05-04-2020, 10:55 AM   #66
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
So decide, if you really want to use /nick/Music/music (or anything else).
execute the following:
Code:
mkdir -p /nick/Music/music # < this is exactly the same path, same directory
Edit your fstab and add this path as mount point.
now try to execute mount -a.
And please post all the output/response...
Followed your instructions and got

Wrong fs type, bad option, bad superblock on /dev/sdb, missing code page or help program or other error.
 
Old 05-04-2020, 10:58 AM   #67
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
Is nick you user name ?

Big picture, where are you trying to mount this drive? Is it in your home directory?

Is the mount point /nick/Music/music

OR

is it /home/nick/Music/music ? This is a critical difference.

In order to have it /nick/Music/music; as root you would have to do these commands:

cd / ( press enter key )

mkdir nick ( press enter key )

cd /nick ( press enter key )

mkdir Music ( press enter key )

cd Music ( press enter key )

mkdir music ( press enter key )

Is that what you did?
Thanks again Cliff. I assume that having followed pan64's instructions (mkdir -p /nick/Music/music) I have now created /nick/Music/music.
 
Old 05-04-2020, 10:59 AM   #68
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,970

Rep: Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334
so probably that is /dev/sdb1. But it is only a guess.
what is the output of fdisk -l /dev/sdb?
 
Old 05-04-2020, 12:00 PM   #69
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
so probably that is /dev/sdb1. But it is only a guess.
what is the output of fdisk -l /dev/sdb?
I've given up for today, and will resume battle tomorrow.
 
Old 05-04-2020, 12:07 PM   #70
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,235

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Nuuk,

I get this is a battle. Hang in there.

The command lsblk -f will tell us a lot more. Hopefully you can find the Quote tag, and paste the results.

lsblk -f will show all drives, and the file system type, and UUID's associated with each partition.

Take a deep breath, we'll fix what ever is wrong.
 
1 members found this post helpful.
Old 05-04-2020, 12:11 PM   #71
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
Nuuk,

I get this is a battle. Hang in there.

The command lsblk -f will tell us a lot more. Hopefully you can find the Quote tag, and paste the results.

lsblk -f will show all drives, and the file system type, and UUID's associated with each partition.

Take a deep breath, we'll fix what ever is wrong.
Thanks Cliff. Where is that quote tag?
 
Old 05-04-2020, 12:17 PM   #72
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,235

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Look at the box called Quick Reply. Next line down says Message: ( in smaller type ). Below that you should see seven icons to allow you to change the appearance of the type message. ( all in the area where you type your response.

The right most one looks like a quote with writing in it. That is the quote icon. Click it, and look in the quick reply box. You should see . You paste the message in the middle. I will see if I can make an image of it and post it.
 
Old 05-04-2020, 12:28 PM   #73
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,235

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
There is also a Reply to Thread option on LQ. It has more options to modify responses. Not sure which one you are using. On Reply to Thread window, the Quote icon is in the second row, 14 positions to the right. I think I have managed to upload an image from Quick Reply.
Attached Thumbnails
Click image for larger version

Name:	Quick Reply.png
Views:	11
Size:	13.9 KB
ID:	33166  
 
Old 05-04-2020, 02:10 PM   #74
Nuuk
Member
 
Registered: May 2020
Posts: 62

Original Poster
Rep: Reputation: Disabled
Thanks to all for the help today. I've had one last look this evening.

Quote:
nick@apl2 ~ $ lsblk -f
NAME FSTYPE LABEL MOUNTPOINT
sda
└─sda1 /
sdb
sdc
└─sdc1 vfat KINGSTON /media/KINGSTON
I checked the UUID again with sudo blkid

Quote:
apl2 nick # sudo blkid
/dev/sda1: UUID="42007db2-50af-46ae-9f4c-8b87b87c893f" TYPE="ext4"
/dev/sdb: LABEL="Music" UUID="3b754aac-49bb-46fd-b3fc-e253449a1f62" TYPE="ext4"
/dev/sdc1: LABEL="KINGSTON" UUID="A543-549F" TYPE="vfat"
and that matches with what I have been using in fstab

And lastly

Quote:
apl2 nick # fdisk -l /dev/sdb

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sdb doesn't contain a valid partition table
I am only guessing of course, but is the missing partition table the problem?
 
Old 05-04-2020, 03:06 PM   #75
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
The absent partition table is a major problem.
I notice your USB stick has a partition & partition table.
Could you at least do the same for sdb?
Then you could mount sdb1 as whatever...

Note: check what the UUID of sdb1 is before using it.

Last edited by JeremyBoden; 05-04-2020 at 03:08 PM.
 
  


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 06:01 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