View Single Post
  #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 :


Code:
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


Code:
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


Code:
# /dev/rwd0:

type: ESDI

disk: wd0

label: fictitious

flags:

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 :


Code:
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