Comments (15)
Can you show me the value after commanding the below ?
# cat /sys/block/sda/queue/hw_sector_size
from exfatprogs.
cat /sys/block/sdb/queue/hw_sector_size
512
from exfatprogs.
Please do this also.
$ lsblk --topology /dev/vda
NAME ALIGNMENT MIN-IO OPT-IO PHY-SEC LOG-SEC ROTA SCHED RQ-SIZE RA WSAME
vda 0 4096 0 4096 4096 1 mq-deadline 256 128 0B
You can command "lsblk --topology /dev/sdb"
from exfatprogs.
# lsblk --topology /dev/sdb
NAME ALIGNMENT MIN-IO OPT-IO PHY-SEC LOG-SEC ROTA SCHED RQ-SIZE RA WSAME
sdb 0 4096 0 4096 512 1 mq-deadline 2 128 0B
├─sdb1 3072 4096 0 4096 512 1 mq-deadline 2 128 0B
└─sdb2 0 4096 0 4096 512 1 mq-deadline 2 128 0B
from exfatprogs.
okay. Could you please try to mount after formatting your usb drive using mkfs.exfat ?
from exfatprogs.
I can, but I need to back up the data first. It will take a few hours. I will report back!
from exfatprogs.
Ah..Okay, no need to do it if you need backup.
from exfatprogs.
@cvubrugier Could you please help me fix this issue ? I don't have this type of HDD.
His hard has 4K hw sector and 512B logical sector. I wonder if this difference is causing this issue.
Do you have this type of HDD drive ?
from exfatprogs.
@fijam if you try to mount /dev/sdb2 ?
from exfatprogs.
Mounting sdb2 in fact works! Although I don't understand why Windows creates two volumes (the drive only appears as one volume in Windows).
Apologies for the trouble.
from exfatprogs.
@namjaejeon wrote:
@cvubrugier Could you please help me fix this issue ? I don't have this type of HDD.
His hard has 4K hw sector and 512B logical sector. I wonder if this difference is causing this issue.
Do you have this type of HDD drive ?
I could arrange for that. Most modern HDDs have 4 KB sectors but emulate 512 bytes sectors (512e) so that even firmware or OSes that do not support 4 KB sectors can work with them.
I guess the problem reported by @fijam is not caused by the HDD sector size.
dump.exfat /dev/sdb1
exfatprogs version : 1.1.3
bogus sector size bits : 0
I think sector size bits should be 9 (1 << 9 == 512
).
tune.exfat -v /dev/sdb1
exfatprogs version : 1.1.3
[exfat_get_blk_dev_info: 202] Block device name : /dev/sdb1
[exfat_get_blk_dev_info: 203] Block device offset : 17408
[exfat_get_blk_dev_info: 204] Block device size : 134217728
So the size of the first partition is 128 MiB whereas the HDD capacity is 3 TB. This looks like an EFI System Partition.
Mounting sdb2 in fact works! Although I don't understand why Windows creates two volumes (the drive only appears as one volume in Windows).
This is consistent with our guess that the first partition is an EFI System Partition.
@fijam, could you run the following command? With that, we can verify if the first partition is an EFI System Partition.
$ sudo blkid /dev/sdb1
from exfatprogs.
Looks like you got it right:
# blkid /dev/sdb1
/dev/sdb1: PARTLABEL="Microsoft reserved partition" PARTUUID="69faad38-f483-4939-a7bf-c7d6cef4828b"
from exfatprogs.
Maybe the exfatprogs utilities do not display an error if the file system magic does not match the one for exFAT.
In your situation, I think fsck.exfat
, dump.exfat
, and tune.exfat
should have warned you that it is not an exFAT file system. Instead of that, the commands reported that the file system was corrupted.
There is probably room for improvement here.
from exfatprogs.
@cvubrugier Fully agreed:)
from exfatprogs.
@cvubrugier
Thank you for comments. I will fix it.
from exfatprogs.
Related Issues (20)
- Detach this fork from old upstream
- Unknown entry type 0xaa HOT 1
- Invalid boot checksum after formatting an Advanced Format 4K native HDD HOT 4
- dump.exfat should do more than just disk/volume information HOT 5
- fsck:fix double free of exfat pointer HOT 2
- fsck: fix Out-of-Bounds Accesses in function bytes_to_human_readable HOT 8
- Full format without --full-format ? HOT 4
- Exfatprogs Release Signing Key has expired HOT 2
- `fsck.exfat --repair /dev/...` does not ask questions and `fsck.exfat --repair-yes /dev/...` always answers `n` HOT 6
- kernel 3.10.14 is not useful! HOT 3
- Not access to folders HOT 11
- tune.exfat breaks the FS in some cases HOT 9
- pagefile.sys file on exfat partition shows up as 0 bytes HOT 16
- exfat driver documentation missing
- Coverity check - improper use of negative value HOT 9
- mkfs: Documenting default for --boundary-align and --cluster-size HOT 2
- `tune.exfat` and `exfatlabel` don't print an error when setting an invalid volume serial HOT 7
- Setting of the InUse bit of EntryType of Volume Label Entry HOT 1
- BPB sector size field should be user selectable HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exfatprogs.