nixers
[SOLVED - FreeBSD] cannot mount ext4 partition - Printable Version
+- nixers (https://nixers.net)
+-- Forum: Operating Systems & Administration (https://nixers.net/Forum-Operating-Systems-Administration)
+--- Forum: BSD (https://nixers.net/Forum-BSD)
+--- Thread: [SOLVED - FreeBSD] cannot mount ext4 partition (/Thread-SOLVED-FreeBSD-cannot-mount-ext4-partition)


[SOLVED - FreeBSD] cannot mount ext4 partition - berk - 03-07-2013

I have a 238.4 GB SAMSUNG HD251HJ ATA-7 SATA2 hard disk which I used as a home partition for my Linux installation. Yesterday I migrated to FreeBSD and I have not been able to recover my data since. I have tried to mount the filesystem, but I keep getting an error. Here's a transcript of my terminal session:

Code:
$ gpart show
=>       34  156301421  ada0  GPT  (74G)
         34        128     1  freebsd-boot  (64k)
        162  155189120     2  freebsd-ufs  (74G)
  155189282    1112173        - free -  (543M)

=>       63  488397105  ada1  MBR  (232G)
         63  488397105     1  linux-data  (232G)

$ du /dev/ada*
0    /dev/ada0
0    /dev/ada0p1
0    /dev/ada0p2
0    /dev/ada1
0    /dev/ada1s1

$ sudo mount /dev/ada1 /mnt/
mount: /dev/ada1: Invalid argument
$ sudo mount /dev/ada1s1 /mnt/
mount: /dev/ada1s1: Invalid argument

Please help me mount /dev/ada1s1, thanks in advance :)


RE: <FreeBSD> cannot mount ext4 partition - yrmt - 03-07-2013

There is limited read only support for ext4 filesystems.
You can mount them by:
``# mount -t ext2fs -o ro /dev/name /mountpoint``


RE: <FreeBSD> cannot mount ext4 partition - venam - 03-07-2013

Since when BSD is able to mount ext4?


RE: <FreeBSD> cannot mount ext4 partition - yrmt - 03-07-2013

You can but in read only mode.


RE: <FreeBSD> cannot mount ext4 partition - berk - 03-07-2013

Code:
> sudo mount -t ext2fs -o ro /dev/ada1s1 /mnt
mount: /dev/ada1s1: Invalid argument
> sudo mount -t ext2fs -o ro /dev/ada1 /mnt
mount: /dev/ada1: Invalid argument

Thanks for your answers, but it didn't work. :(


RE: <FreeBSD> cannot mount ext4 partition - venam - 03-07-2013

I thought it worked with ext2 in r/w and ext3 in r only.
theconjuring, you can still mount it with a rescue disk.


RE: <FreeBSD> cannot mount ext4 partition - berk - 03-07-2013

(03-07-2013, 09:15 AM)venam Wrote: theconjuring, you can still mount it with a rescue disk.

Yes I know I can mount them with a rescue disk, maybe I will need to back them up in a hard disk and reformat it to UFS so FreeBSD plays nicely.

Thanks for the help. :)


RE: <FreeBSD> cannot mount ext4 partition - yrmt - 03-07-2013

Oops, I confused ext4 for ext3, sorry.


RE: <FreeBSD> cannot mount ext4 partition - berk - 03-07-2013

"rescue disk", I don't have one. I downloaded ttylinux (65 MB) and tried to dd it to an USB, but it doesn't just work. :/

Code:
$ sudo dd if=ttylinux-pc_i686-16.1.iso of=/dev/da0
134764+0 records in
134764+0 records out
68999168 bytes transferred in 466.936130 secs (147770 bytes/sec)

Doesn't boot. :/


RE: <FreeBSD> cannot mount ext4 partition - venam - 03-07-2013

Slitaz is also a solution and it comes with a GUI already installed (openbox).


RE: <FreeBSD> cannot mount ext4 partition - berk - 03-07-2013

Installed ext4fuse and ntfs-3g and I can read ext4 partitions. I can write on NTFS partitions, too.

Thank you, guys, problem solved.


RE: <SOLVED - FreeBSD> cannot mount ext4 partition - yrmt - 03-07-2013

Great, instead of putting <solved>, could you use [solved] for the future posts? Thanks


RE: <SOLVED - FreeBSD> cannot mount ext4 partition - berk - 03-07-2013

(03-07-2013, 02:35 PM)Beastie Wrote: Great, instead of putting <solved>, could you use [solved] for the future posts? Thanks

Roger that, wilco.