[SOLVED] Unable to mount USB drive to Linux Mint 18.1 Cinnamon 64-bit
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Sorry, Mas OS and window. How I can back up USB is i cannot see it ?
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by mmm123
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.
Sorry, Mas OS and window. How I can back up USB is i cannot see it ?
I meant you have copied any files off of your USB drive that you wish to keep. (or already have another copy of them, on a different drive/medium/disk)
Otherwise you will have to decide weather to try and mount your existing partition(s) or lose what ever is on them and delete them, and then re-format the partitions, on your USB drive.
Last edited by jsbjsb001; 10-19-2017 at 12:07 PM.
Reason: addition
Otherwise you will have to decide weather to try and mount your existing partition(s) or lose what ever is on them and delete them, and then re-format the partitions, on your USB drive.[/QUOTE]
I do not have copies nowhere. I am trying my best to mount.
As suggested it might be easier to use FAT32 instead of HFS+ if you need to transfer files back an forth between the two operating systems via "sneaker net" as long as the files are less then 4GB.
Assuming you have not corrupted the drive and it is still usable on the Mac can you copy the files back to the Mac?
Once you partitioned/reformatted the drive to FAT32 you can copy the files back and then they should be accessible on Mint.
As suggested it might be easier to use FAT32 instead of HFS+ if you need to transfer files back an forth between the two operating systems via "sneaker net" as long as the files are less then 4GB.
Assuming you have not corrupted the drive and it is still usable on the Mac can you copy the files back to the Mac?
Once you partitioned/reformatted the drive to FAT32 you can copy the files back and then they should be accessible on Mint.
First get the partition's information from Parted, in bytes; you need the Start and the Size numbers. Here is an example of Parted session (as you can guess, my hard drive image is /mnt/macbook.dd):
Code:
$ /sbin/parted /mnt/macbook.dd
WARNING: You are not superuser. Watch out for permissions.
GNU Parted 2.3
Using /mnt/macbook.dd
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit
Unit? [compact]? b
(parted) p
Model: (file)
Disk /mnt/macbook.dd: 160041885696B
Sector size (logical/physical): 512B/512B
Partition Table: gpt
If so, that is where someone has used the dd command to take an "image" of their hard drive. From my understanding, in your case, we are only talking about a USB drive, formatted with the HFS+ file system. Therefore the above would not apply to your situation, unless you have used the dd command to take an image of your hard drive's partition(s).
In relation to your USB drive, it sounds like it has been corrupted. Therefore unless you can recover said files from it, that you wish to keep, using data recovery software of some description, you may have to accept that said files, have been lost for good.
To my way of thinking, you can take one of two options:
1) Try and recover the files (if they can be recovered) using data recovery software.
2) Accept the loss and re-partition and then re-format your USB drive, with FAT32 file system (or a similar file system).
[QUOTE=jsbjsb001;5771706]Try typing the following in a terminal as the root user;
Code:
mkdir /mnt/myusbdrive
mount /dev/sdb2 /mnt/myusbdrive
run it. Results: user@user-Latitude-E6440 ~ $ mkdir /mnt/myusbdrive
mkdir: cannot create directory ‘/mnt/myusbdrive’: Permission denied
user@user-Latitude-E6440 ~ $ mount /dev/sdb2 /mnt/myusbdrive
mount: only root can do that
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
[QUOTE=mmm123;5772952]
Quote:
Originally Posted by jsbjsb001
Try typing the following in a terminal as the root user;
Code:
mkdir /mnt/myusbdrive
mount /dev/sdb2 /mnt/myusbdrive
run it. Results: user@user-Latitude-E6440 ~ $ mkdir /mnt/myusbdrive
mkdir: cannot create directory ‘/mnt/myusbdrive’: Permission denied
user@user-Latitude-E6440 ~ $ mount /dev/sdb2 /mnt/myusbdrive
mount: only root can do that
While that's because you are not running the commands as root; given your Mac is having trouble mounting your USB drive, there's probably no point in trying what I suggested there (sorry).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.