Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th September 2021
marietto2021 marietto2021 is offline
New User
Join Date: Jul 2021
Posts: 8
Default How to mount a Linux / Ubuntu ext4 partition on NetBSD

Hello to everyone.

I'm a new netBSD user. I'm trying to understand how to mount my Ubuntu / ext4 partitions directly in NetBSD. We are talking about this disk :

dmesg :

[ 3.081318] wd0 at atabus1 drive 0

[ 3.081318] wd0: <CT500MX500SSD4>

[ 3.081318] wd0: drive supports 1-sector PIO transfers, LBA48 addressing

[ 3.081318] wd0: 465 GB, 969021 cyl, 16 head, 63 sec, 512 bytes/sect x 976773168 sectors (0 bytes/physsect; first aligned sector: 8)

[ 3.081318] wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133), WRITE DMA FUA, NCQ (32 tags)

[ 3.081318] wd0(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA), NCQ (31 tags)
netbsd-marietto# gpt show wd0

GPT not found, displaying data from MBR.

start size index contents

0 1 MBR

1 2047 Unused

2048 976765625 1 MBR part 131 (active)

976767673 5495 Unused

netbsd-marietto# disklabel wd0

# /dev/rwd0:

type: ESDI

disk: wd0

label: fictitious


bytes/sector: 512

sectors/track: 63

tracks/cylinder: 16

sectors/cylinder: 1008

cylinders: 969021

total sectors: 976773168

rpm: 3600

interleave: 1

trackskew: 0

cylinderskew: 0

headswitch: 0 # microseconds

track-to-track seek: 0 # microseconds

drivedata: 0

5 partitions:

# size offset fstype [fsize bsize cpg/sgs]

d: 976773168 0 unused 0 0 # (Cyl. 0 - 969020)

e: 976765625 2048 Linux Ext2 0 0 # (Cyl. 2*- 969015*)

disklabel: boot block size 0

disklabel: super block size 0
I tried to mount it in two ways but none of them worked :

netbsd-marietto# mount -r -t ext2fs /dev/rwd0e /mnt/CT500-wd0-ext4

mount_ext2fs: /dev/rwd0e on /mnt/CT500-wd0-ext4: Block device required

netbsd-marietto# mount -r -t ext2fs /dev/wd0e /mnt/CT500-wd0-ext4

mount_ext2fs: /dev/wd0e on /mnt/CT500-wd0-ext4: incorrect super block

netbsd-marietto# mount -r -t ext4fs /dev/wd0e /mnt/CT500-wd0-ext4

mount: exec mount_ext4fs for /mnt/CT500-wd0-ext4: mount_ext4fs: No such file or directory

netbsd-marietto# mount -r -t ext4fs /dev/rwd0e /mnt/CT500-wd0-ext4

mount: exec mount_ext4fs for /mnt/CT500-wd0-ext4: mount_ext4fs: No such file or directory

Last edited by marietto2021; 15th September 2021 at 07:13 PM.
Reply With Quote
  #2   (View Single Post)  
Old 17th September 2021
Sehnsucht94's Avatar
Sehnsucht94 Sehnsucht94 is offline
Real Name: Paolo Vincenzo Olivo
Package Pilot
Join Date: Oct 2017
Location: Rome
Posts: 169

Originally Posted by marietto2021 View Post
 netbsd-marietto# mount -r -t ext4fs /dev/rwd0e /mnt/CT500-wd0-ext4

mount: exec mount_ext4fs for /mnt/CT500-wd0-ext4: mount_ext4fs: No such file or directory
Don't know where you found this, but there's no such a filesystem type option for mount(8) as ext4fs on NetBSD; as far as I know, there's no in-kernel support for ext4.

You're rather going to need a userspace solution like fuse-ext2, which also includes support for ext4 and relies on the puffs subsystem.
“Mi casa tendrá dos piernas y mis sueños no tendrán fronteras„
Reply With Quote

ext2fs, filesystem, mount options, partitioning

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
create and mount partition on image file niks007 OpenBSD General 9 28th January 2021 10:57 PM
About to install NetBSD in system which is already XP/Ubuntu/FreeBSD triple boot. velikij NetBSD Installation and Upgrading 5 15th June 2012 07:36 AM
cant mount 16th partition because of disklabel limitation thereisopenbsd OpenBSD General 2 3rd June 2011 09:10 AM
mount ufs from linux kanonmat FreeBSD General 8 2nd December 2008 06:13 AM
Convertin A Ubuntu ssh/ Samba server to NetBSd FloridaBSD FreeBSD General 6 24th May 2008 09:35 AM

All times are GMT. The time now is 05:52 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick