Solved Can't mount ext4 partitions, Input/output error

Hi. I can't mount ext4 partitions that i created on FreeBSD. I have 2 hard drives that both has one ext4 partition.
Code:
# mount -t ext2fs /dev/ada1p1 /mnt/
mount: /dev/ada1p1: Input/output error
I can mount it with fuse-ext2 command but i can't list the mounted directory.
Code:
# fuse-ext2 /dev/ada0p1 /mnt/
Mounting /dev/ada0p1 Read-Only.
# ls /mnt
ls: /mnt: Input/output error

I did load fusefs module.
 
Looks like a USB stick was removed. Is the ext2fs on that USB stick and if so did you remove it after the attempt?
 
I want to mount /dev/ada0p1 and /dev/ada1p1, they are both ext4 partitions. the USB stick was my FreeBSD installation media, I removed it because its not needed.

Code:
[root@desktop ~]# file -s /dev/ada1p1
/dev/ada1p1: Linux rev 1.0 ext4 filesystem data, UUID=41b8b34b-19b8-4cd7-b817-ad60fb2a0d59 (extents) (64bit) (large files) (huge files)
[root@desktop ~]# file -s /dev/ada0p1
/dev/ada0p1: Linux rev 1.0 ext4 filesystem data, UUID=28cba787-d35f-426e-b445-bcca7ec71c1c (extents) (64bit) (large files) (huge files)
[root@desktop ~]#

Code:
# gpart list
Geom name: ada0
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 1953525127
first: 40
entries: 128
scheme: GPT
Providers:
1. Name: ada0p1
   Mediasize: 1000204845056 (932G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   efimedia: HD(1,GPT,872c55c8-8f71-11ee-8eec-3c7c3fba4204,0x28,0x74706d60)
   rawuuid: 872c55c8-8f71-11ee-8eec-3c7c3fba4204
   rawtype: 0fc63daf-8483-4772-8e79-3d69d8477de4
   label: (null)
   length: 1000204845056
   offset: 20480
   type: linux-data
   index: 1
   end: 1953525127
   start: 40
Consumers:
1. Name: ada0
   Mediasize: 1000204886016 (932G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0

Geom name: ada1
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 976773127
first: 40
entries: 128
scheme: GPT
Providers:
1. Name: ada1p1
   Mediasize: 500107821056 (466G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   efimedia: HD(1,GPT,b1d8035b-8f77-11ee-8eec-3c7c3fba4204,0x28,0x3a385fe0)
   rawuuid: b1d8035b-8f77-11ee-8eec-3c7c3fba4204
   rawtype: 0fc63daf-8483-4772-8e79-3d69d8477de4
   label: (null)
   length: 500107821056
   offset: 20480
   type: linux-data
   index: 1
   end: 976773127
   start: 40
Consumers:
1. Name: ada1
   Mediasize: 500107862016 (466G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
 
Hi. I can't mount ext4 partitions that i created on FreeBSD. I have 2 hard drives that both has one ext4 partition.
Code:
# mount -t ext2fs /dev/ada1p1 /mnt/
mount: /dev/ada1p1: Input/output error
Maybe you need to run fsck.ext2, aka e2fsck
 
I tried running fsck without parameters, it says clean. I think they are healthy because I was able to use them on Linux.
Do you have a Linux installation around, on which you could try mounting it?

Did you try running file -s /dev/da0p1 ? Maybe the partition is not formatted as you believe.
 
I've tried both methods and personally I prefer the following one:
 
Did you try running file -s /dev/da0p1 ? Maybe the partition is not formatted as you believe.
[root@desktop ~]# file -s /dev/ada1p1 /dev/ada1p1: Linux rev 1.0 ext4 filesystem data, UUID=41b8b34b-19b8-4cd7-b817-ad60fb2a0d59 (extents) (64bit) (large files) (huge files) [root@desktop ~]# file -s /dev/ada0p1 /dev/ada0p1: Linux rev 1.0 ext4 filesystem data, UUID=28cba787-d35f-426e-b445-bcca7ec71c1c (extents) (64bit) (large files) (huge files) [root@desktop ~]#
I don't have Linux installed but i can use a live media to try it.
 
I booted a live Linux and i was able to mount them there. In the past, they were zfs partitions and while they are ext4, i used zpool import and used zpool labelclear on them, I was seeing zfs read error in boot process on these so i did this.
 
I reformatted the disks respectively and copied the data to each other from a live linux, now i can mount them on FreeBSD.

When I ran zdb -l /dev/ada0p1 i saw that it has zpool label on it and this was causing error messages at loader stage and i cleared it with zpool labelclear /dev/ada0p1. Now it seems fine.
 
Back
Top