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-30-2019, 03:49 PM   #1
hkjz
Member
 
Registered: Apr 2019
Distribution: MX
Posts: 120

Rep: Reputation: Disabled
Reading external hard drives on Linux and OS X, FSTYPE : exfat


Hello,

i have external hard drive,
which i would like to read on both : Linux and OX S,

some time ago i made it as exfat,
and now im connecting it to OS X, and it is written
that on this machine this hard drive cannot be read (or smth similar)
later on somewhere in settings, i found out that it is descripted as 'Linux'

So i connected it back to Linux,
checked first
lsblk -f

and yes i see it is 'exfat'
which i though, that should be for both Linux, and OS X,

so i check
sudo fdisk -l /dev/sdb
i see Type : 'Linux'

...

So what is Type, what is FSType,
what i should KNOW to not make this mistake again,
what should i DO to make it possible to be readable on both systems
and can i repair this issue, without wiping all data from this external drive,


thank you! =)
 
Old 05-30-2019, 04:13 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872
Can you please paste the full command and output from lsblk and fdisk here. Thanks.

Within CODE tags if you can (https://www.linuxquestions.org/quest...og.php?b=36313).
 
Old 05-30-2019, 04:42 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,907

Rep: Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859
Many if not most Linux systems do not have the software installed by default to read/write to exfat. What you need is explained at the MX forums at the link below.

https://forum.mxlinux.org/viewtopic.php?t=46018
 
Old 05-30-2019, 05:20 PM   #4
hkjz
Member
 
Registered: Apr 2019
Distribution: MX
Posts: 120

Original Poster
Rep: Reputation: Disabled
Code:
$ lsblk -f
NAME   FSTYPE LABEL      UUID                                 MOUNTPOINT
sda    exfat             791E-BB99                            
└─sda1 exfat             9914-58BE                            /media/mxx/9914-58BE
Code:
$ sudo fdisk -l /dev/sda
[sudo] password for mxx: 
Disk /dev/sda: 1.8 TiB, 2000398933504 bytes, 3907029167 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: dos
Disk identifier: 0xc6a86eb0

Device     Boot Start        End    Sectors  Size Id Type
/dev/sda1        2048 3907029166 3907027119  1.8T 83 Linux
MX Linux is not a problem, it works great here,
thing is that the disk is not read in OS X,

look upon second read >> Type : Linux,
even if first read says >> FSTYPE Label : exfat

Let me repeat questions

So what is Type, what is FSType,
what i should KNOW to not make this mistake again,
what should i DO to make it possible to be readable on both systems
and can i repair this issue, without wiping all data from this external drive,

thank you =)
 
Old 05-30-2019, 05:32 PM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872
FSTYPE is the filesystem type as lsblk --help will show (man lsblk advises you to use that command to find out what the columns mean).

fdisk is not showing the filesystem type, it is showing the partition type. 83h corresponds to a Linux native filesystem, so goodness knows how you managed to set it like that.

Please don't ask your questions again. If you wait for someone to answer *everything* in one go, you might be waiting for a while.

If you're having a problem reading the drive on macOS then would you not be better asking about it on a macOS forum?
 
Old 05-30-2019, 07:47 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,554

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Partition type or ID is intended to identify the filesystem but its up to the operating system boot loader or kernel to do something with it. linux does not care but it seems that OS X does. fdisk as an example defaults to 83 but once the partition is created you can format it as anything.

You can easily change the partition type using fdisk or other partitioning software and it will not change anything but a memory location in the MBR.

It depends on version of OS X you are running, exFAT is supported natively I believe for versions 10.6.5+ which was released somewhere around 2009. For older versions you need to install osxfuse which is similar to linux.
 
1 members found this post helpful.
Old 05-30-2019, 09:52 PM   #7
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,194

Rep: Reputation: 664Reputation: 664Reputation: 664Reputation: 664Reputation: 664Reputation: 664
Quote:
Originally Posted by hkjz View Post
and yes i see it is 'exfat'
which i though, that should be for both Linux, and OS X,
No, vfat (fat12, fat16 or fat32, with long filenames) is the common implementation for "non-MS" operating systems.
exFat is a later MicroSoft implementation with Copyrighted extensions (see
en.wikipedia.org/wiki/ExFAT), so is NOT free to emulate in e.g. OS-X (and the Linux implementation is not full).
 
1 members found this post helpful.
Old 05-31-2019, 04:01 AM   #8
hkjz
Member
 
Registered: Apr 2019
Distribution: MX
Posts: 120

Original Poster
Rep: Reputation: Disabled
Thank you all!

Allright
KNOW:
PARTITION TYPE is set up on fdisk,
FILESYSTEM TYPE is set up by mkfs,
and that first do not wipe out data, while second does,

DO:
to set up proper type after deleting+creating new partition
i have to set up its TYPE according to my wishes,
not only installing its FILESYSTEM afterwards

Data dont has to be lost during PARTITION TYPE change
(ultimately, this we will find out when, i will perform this task on proper external hard drive)

I've took one of USB to make experiment on it, and yes indeed i were able to get different FSTYPE and TYPE,
yes fdisk make default TYPE : Linux at 83
yes it is possible to change PARTITION TYPE and data is still available,
Code:
umount /dev/sdb1
sudo fdisk /dev/sdb
t
number [7 HPFS/NTFS/exFAT, 83 Linux]
w
which where using mkfs FILESYSTEM TYPE builder, would wipe out the data

Interesting is Copyrighted section on exFAT. Copyrights indeed can go far.

I can learn drop by drop,
here is Ascend of Man again,
even if many things still running Under the Hood,

and it indeed takes time,
Thank you for your support,
Enjoy last day of May,

Best wishes =)

Last edited by hkjz; 05-31-2019 at 04:52 AM.
 
  


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
Unable to mount the volume Details: Cannot get volume.fstype.alternative squidonsteroids SUSE / openSUSE 5 06-09-2014 09:47 PM
simple howto backup dom0, want to change fstype _bsd Linux - Virtualization and Cloud 0 11-20-2011 12:49 PM
(error) fsck: operation not applicable to FSType nfs hebeles Solaris / OpenSolaris 1 12-07-2010 05:13 AM
External Hard Drives/Hard Drives ddrfreak Mandriva 1 12-16-2004 07:12 PM
"mount: /dev/fd0 is not this fstype." liguorir Linux - Software 2 04-08-2004 03:06 PM

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

All times are GMT -5. The time now is 04:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration