DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 19th October 2015
notooth notooth is offline
Shell Scout
 
Join Date: Jul 2015
Posts: 125
Red face Cannot mount Linux ext2 partitions

Hi,

I got an error when mounting a Linux partition. Please help:

Quote:
# mount -t ext2fs /dev/wd1a /mnt/Storage1
mount_ext2fs: /dev/wd1a on /mnt/Storage1: Device not configured
Reply With Quote
  #2   (View Single Post)  
Old 19th October 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

I don't use NetBSD, but in the NetBSD Guide I found a discussion of provisioning disklabels for foreign filesystems. While this guide is for i386 and discusses Microsoft, the same information should apply to other MBR architecture platforms and to Linux MBR partitions

https://www.netbsd.org/ports/i386/faq.html#ms_partition
Reply With Quote
  #3   (View Single Post)  
Old 19th October 2015
notooth notooth is offline
Shell Scout
 
Join Date: Jul 2015
Posts: 125
Default

I followed the NetBSD Guide and got the error:

Quote:
# disklabel wd1
# /dev/rwd1d:
type: ESDI
disk: ST2000LM003 HN-M
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 3876021
total sectors: 3907029168
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0

6 partitions:
# size offset fstype [fsize bsize cpg/sgs]
d: 3907029168 0 unused 0 0 # (Cyl. 0 - 3876020)
e: 1999997953 2048 Linux Ext2 0 0 # (Cyl. 2*- 1984126*)
f: 1907028144 2000001024 Linux Ext2 0 0 # (Cyl. 1984128 - 3876020)
disklabel: boot block size 0
disklabel: super block size 0

# mount -t ext2fs /dev/wd1e /mnt/Storage1
mount_ext2fs: /dev/wd1e on /mnt/Storage1: incorrect super block
# mount -t ext2fs /dev/wd1f /mnt/Storage1
mount_ext2fs: /dev/wd1f on /mnt/Storage1: incorrect super block
Reply With Quote
  #4   (View Single Post)  
Old 19th October 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

You've gotten further. Excellent! It appears that the mount is now failing because of incorrect (or unexpected) metadata in the two filesystems

Are you sure these are EXT2 filesystems? The MBR partition type does not always align with the underlying filesystem.
Reply With Quote
  #5   (View Single Post)  
Old 25th October 2015
classicmanpro's Avatar
classicmanpro classicmanpro is offline
Real Name: Turea Alexandru Teodor
Fdisk Soldier
 
Join Date: Oct 2010
Location: Sinaia, Romania
Posts: 51
Post Create an EXT2 filesystem and use revision 0 (aka GOOD_OLD_REV) as the format

The best way to share a partition with Linux is to create an EXT2 filesystem and use revision 0 (aka GOOD_OLD_REV) as the filesystem format.

By using the GOOD_OLD_REV (revision 0) format you can avoid the ''dir_index'' and ''large_file'' issues encountered with DYNAMIC_REV (revision 1).

Here is an example of how you can create, format and check an EXT2 filesystem using the Linux native tools:

Code:
 # mkfs -t ext2 -r 0 /dev/hda3
 # fsck -C -t ext2 /dev/hda3
 # tune2fs -c 20 -i 6m -L Share /dev/hda3
 # fsck -C -t ext2 /dev/hda3
 # tune2fs -l /dev/hda3
If you want or have a dual boot system, I suggest using GParted Live to prepare the partitions with EXT2-rev0, then install Linux, but without formatting the partitions.

This will ensure 100% compatibility with Linux.
__________________
A daemon in need is a daemon indeed.
Reply With Quote
Reply

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
Can you mount logical ntfs partitions? Broodjegehaktmetmayo FreeBSD General 10 11th April 2010 07:47 PM
Mounting ext2 partitions seems to fail Sunsawe FreeBSD Installation and Upgrading 2 17th June 2009 01:38 PM
Moving linux partitions out of the BSD disklabel/slice fbsduser NetBSD Installation and Upgrading 5 4th March 2009 07:07 AM
mount ufs from linux kanonmat FreeBSD General 8 2nd December 2008 06:13 AM
Mounting ext2 in fstab latorion FreeBSD General 3 6th August 2008 04:56 PM


All times are GMT. The time now is 05:24 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