LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to mount USB drive to Linux Mint 18.1 Cinnamon 64-bit (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-mount-usb-drive-to-linux-mint-18-1-cinnamon-64-bit-4175615779/)

mmm123 10-16-2017 04:36 PM

Unable to mount USB drive to Linux Mint 18.1 Cinnamon 64-bit
 
1 Attachment(s)
Unable to mount USB drive to Linux Mint 18.1 Cinnamon 64-bit with message:"Error mounting /dev/sdb2 at /media/user/Untitled: Command-line `mount -t "hfsplus" -o "uhelper=udisks2,nodev,nosuid" "/dev/sdb2" "/media/user/Untitled"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so."

Steps took:
1) run "dmesg | tail" with results:
user@user-Latitude-E6440 ~ $ dmesg | tail
[ 4733.919696] hfsplus: invalid secondary volume header
[ 4733.919707] hfsplus: unable to find HFS+ superblock
[ 4759.002340] psmouse serio1: DualPoint TouchPad at isa0060/serio1/input0 lost sync at byte 1
[ 4759.003355] psmouse serio1: DualPoint TouchPad at isa0060/serio1/input0 lost sync at byte 1
[ 4759.004389] psmouse serio1: DualPoint TouchPad at isa0060/serio1/input0 lost sync at byte 1
[ 4759.005550] psmouse serio1: DualPoint TouchPad at isa0060/serio1/input0 lost sync at byte 1
[ 4759.006446] psmouse serio1: DualPoint TouchPad at isa0060/serio1/input0 lost sync at byte 1
[ 4759.007479] psmouse serio1: DualPoint TouchPad at isa0060/serio1/input0 lost sync at byte 1
[ 4759.017418] psmouse serio1: DualPoint TouchPad at isa0060/serio1/input0 - driver resynced.
[ 6025.264075] perf interrupt took too long (2548 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
user@user-Latitude-E6440 ~ $ "

Do not know what to do next. Any suggestions please.
Q 2: What is the USB name in case i need to reformat it? "sdb2 at /media/user/Untitled:"?


also run $ dmesg ( highlighted in Red as they show up in red in report". See result in attached file.

kilgoretrout 10-16-2017 04:44 PM

Try installing hfsprogs first:
Code:

sudo apt-get install hfsprogs
And see if you can then mount your flash drive. IIRC Mint does not install hfsprogs by default and you can't mount Apple's hfs filesystem without it.

onebuck 10-16-2017 05:09 PM

Member response
 
Hi,

Welcome to LQ!

I suggest that you look at https://www.linuxquestions.org/quest...#faq_lqwelcome so you can compose a useful post/thread that will helps us to help you.

For future use, I suggest that you consider reading or learning via the following links,
Quote:

Just a few links to aid you to gaining some understanding.


Hope this helps.
Have fun & enjoy!
:hattip:

mmm123 10-16-2017 06:00 PM

Quote:

Originally Posted by kilgoretrout (Post 5770656)
Try installing hfsprogs first:
Code:

sudo apt-get install hfsprogs
And see if you can then mount your flash drive. IIRC Mint does not install hfsprogs by default and you can't mount Apple's hfs filesystem without it.

Thank you. Runned hfsprogs:
Reading package lists... Done
Building dependency tree
Reading state information... Done
hfsprogs is already the newest version (332.25-11).
0 upgraded, 0 newly installed, 0 to remove and 513 not upgraded.

mmm123 10-16-2017 06:08 PM

Thx for the tip
Distribution and version you're using: Linux Mint 18.1 64-bit Cinnamon 3.2.6, Kernel 4.4.0-53-generic
Hardware details: Dell laptop Intel Core i5-4310 M CPU @ 2.7 GHz x2
Exact error messages is in the original treat in "".

fatmac 10-17-2017 04:34 AM

Check out
Code:

man mount
for the correct incantation.

mmm123 10-17-2017 09:33 PM

Quote:

Originally Posted by fatmac (Post 5770798)
Check out
Code:

man mount
for the correct incantation.

Thx for this tip. Tryed "man mount". It give me a description of sustem administration. Remember. I am newbie amd need an chewed andwer ( more details).

Rickkkk 10-18-2017 08:05 AM

Hi mmm123,

In your original post, I am interpreting that there may be a file system integrity problem on your USB drive ... HFSPLUS is indeed installed and it seems to have an issue with what is calls the "secondary volume header" ... I am unfamiliar with HFS, so I am not sure of the exact nature of the problem, but suffice to say, it looks like a file system integrity issue. Can you connect and use the drive properly on a MacOS computer ?

If you have no important data on the drive, it might indeed be a good idea to reformat it and choose a more appropriate file system for the systems with which you will be using it (ex. linux, MacOS, Windows ...). Give us a few more details on this and we can then advise you.

If you DO have important data on the drive, best would be to back it up on whatever computer you have that you are still able to use it with before attempting anything else. Also, it would be good to do this as soon as possible in case you have a hardware failure getting worse ...

Get back to us and we'll help you as best we can.

Cheers !

jsbjsb001 10-19-2017 03:58 AM

I was having a look at your question and was thinking along the same lines as Rickkkk. I done some research and it seems that the first message below, may suggest that the system, cannot determine the correct size of the partition and/or the "offset" of it.

Another possible cause could be the default partition type Mac OS uses. This is called "Core Storage" which is a layer between the disk partition and the actual file system. The problem from what I'm understanding, is that, the system maybe trying to mount the partition itself, rather than the actual "logical volume". (which is what you actually need to mount)

I think the above in all likelihood may well be your problem here.

You can read more about "Core Storage" here: https://en.wikipedia.org/wiki/Core_Storage

Code:

[ 4733.919696] hfsplus: invalid secondary volume header
The following message may also be a result of the second possible cause, related to "Core Storage" detailed above. This possibility may explain the following message.

Code:

[ 4733.919707] hfsplus: unable to find HFS+ superblock
Try specifying the actual device node, for the logical volume itself.

To give you a better picture (excuse the pun), have a look at this: http://blog.fosketts.net/wp-content/...e-Could-Do.jpg

Let us know how you go...

mmm123 10-19-2017 10:53 AM

deleted double posting

jsbjsb001 10-19-2017 11:12 AM

Quote:

Originally Posted by mmm123 (Post 5771660)
...Do not want to reformat entire hard drive.
Also i attemped Gparted/device/attempt data rescue on /dev/sda5 and got Libparted error message that " the partition's data region doesn't occupy the entire partition" what does it mean?
Step 2. Try to run fsck / dev/sdb. "Permission denied while trying to open /dev/sbd. You musr have r/w access to the file system or be root".
I give up. Please give me step-by step instruction how to reformat USB. And what format?

Can you run the following command from a terminal window, so that we can see exactly what partitions we are looking at here;

Code:

lsblk
The "the partition's data region doesn't occupy the entire partition" error might suggest the first possibility I mentioned in post #9.

The "You must have r/w access to the file system or be root" would mean you are not running it as the root user.

Also, do you plan on using this USB drive with any other system, other than Linux? (in relation to the type of file system, you should format it with)

mmm123 10-19-2017 11:13 AM

Quote:

Originally Posted by Rickkkk (Post 5771262)
Hi mmm123,

In your original post, I am interpreting that there may be a file system integrity problem on your USB drive ... HFSPLUS is indeed installed and it seems to have an issue with what is calls the "secondary volume header" ... I am unfamiliar with HFS, so I am not sure of the exact nature of the problem, but suffice to say, it looks like a file system integrity issue. Can you connect and use the drive properly on a MacOS computer ?

If you have no important data on the drive, it might indeed be a good idea to reformat it and choose a more appropriate file system for the systems with which you will be using it (ex. linux, MacOS, Windows ...). Give us a few more details on this and we can then advise you.

If you DO have important data on the drive, best would be to back it up on whatever computer you have that you are still able to use it with before attempting anything else. Also, it would be good to do this as soon as possible in case you have a hardware failure getting worse ...

Get back to us and we'll help you as best we can.

Cheers !

Hi Rickkkk; Thank you for looking into my issue. I do not have enough knowledge to fix the " second volume heater", i may as well reformatted. As i was looking for into how reformat usb article, it suggest to use GParted to format to fat 32 format. As i was looking into my option on screen, i understood that i do not know what i am reformating. There was two options: /dev/sda1 and /dev/sda2 with /dev/sda5 under it. Is my USB reads as /dev/sdb with 2 subdirectories? From the error message i am getting when plugging my USB in, my understanding it is /dev/sda2? Do not want to reformat entire hard drive.
Also i attemped Gparted/device/attempt data rescue on /dev/sda5 and got Libparted error message that " the partition's data region doesn't occupy the entire partition" what does it mean?
Step 2. Try to run fsck / dev/sdb. "Permission denied while trying to open /dev/sbd. You musr have r/w access to the file system or be root".
I give up. Please give me step-by step instruction how to reformat USB. And what format?

jsbjsb001 10-19-2017 11:18 AM

@mmm123, you have double-posted your reply, you might what to look at post #11

mmm123 10-19-2017 11:22 AM

1 Attachment(s)
Quote:

Originally Posted by jsbjsb001 (Post 5771664)
Can you run the following command from a terminal window, so that we can see exactly what partitions we are looking at here;

Code:

lsblk
The "the partition's data region doesn't occupy the entire partition" error might suggest the first possibly I mentioned in post #9.

The "You must have r/w access to the file system or be root" would mean you are not running it as the root user.

Also, do you plan on using this USB drive with any other system, other than Linux? (in relation to the type of file system, you should format it with)

Hello jsbjsb001; thank you for stopping by. I like to use usb with window and OX. I run lsblk. See two device sda and sdb. See photo attached.

jsbjsb001 10-19-2017 11:31 AM

Quote:

Originally Posted by mmm123 (Post 5771672)
Hello jsbjsb001; thank you for stopping by. I like to use usb with window and OX. I run lsblk. See two device sda and sdb. See photo attached.

By "window" and "OX", I take it you mean Windows and Mac OS?

Now /dev/sda looks like your hard drive and not your USB drive, so don't operate on that one. On the other hand /dev/sdb looks like your USB drive and the /dev/sdb1 partition is only 31.5K big, which strongly suggests that this may well be the source of your problems.

As long as you have backed up anything you wish to keep from your USB drive, it would be safe to delete both /dev/sdb1 and /dev/sdb2 and create a new partition on your USB drive, to replace them.

I would suggest you use the FAT32 file system, if you plan on using your USB drive with other systems, as well as Linux. But remember FAT32 has a 4GB file size limit.


All times are GMT -5. The time now is 05:03 AM.