Subject: Re: [Ext2 Mount] Newbie Question
To: None <netbsd-help@netbsd.org>
From: Webmaster Jim <jspath@bcpl.net>
List: netbsd-help
Date: 04/21/2001 17:16:38
> On Sat, Apr 18, 2020 at 10:40:53AM +0200, William Pomian wrote:
> > Hello, I'm new user and I have a little pbm to mount an existing
> > ext2 partition
I've had the same question for a long time (and am not a new user :-)
I cannot find the correct formula for what to put into the disklabel.
Here's what SuSE fdisk says about IDE drive 1:
Disk /dev/hdb: 255 heads, 63 sectors, 2489 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 1024 8225248+ c Win95 FAT32 (LBA)
/dev/hdb2 1025 1793 6176991+ a9 Unknown
/dev/hdb3 1794 2489 5590620 5 Extended
/dev/hdb5 1794 1796 24066 83 Linux
/dev/hdb6 1797 1813 136521 82 Linux swap
/dev/hdb7 1814 2489 5429938+ 83 Linux
NetBSD has a partition on the disk which can be seen (but not written)
from SuSE. Both SuSE and NetBSD can write to the DOS partition. As I
understand it, the 1st Linux partition is "boot" which doesn't have user
fies that I care about, nor does swap. I think I need to mount the last
partition "/dev/hdb7".
I've tried to add it to the NetBSD disk label, as /dev/wd1h, like
this:
...
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 40000464
...
# size offset fstype [fsize bsize cpg]
c: 12353983 16450561 unused 0 0 # (Cyl. 16320*- 28575*)
d: 40000464 0 unused 0 0 # (Cyl. 0 - 39682)
e: 16450497 63 MSDOS # (Cyl. 0*- 16319)
f: 12353983 16450561 4.2BSD 1024 8192 16 # (Cyl. 16320*- 28575*)
g: 11181240 28804545 unused 0 0 # (Cyl. 28575*- 39668*)
h: 10744272 29256192 Linux Ext2 0 0 # (Cyl. 29024 - 39682)
But, when trying to use it, I get this:
netman2# mount -rt ext2fs /dev/wd1h /mnt
mount_ext2fs: /dev/wd1h on /mnt: Input/output error
Someone can correct my math?
------
<http://www.cs.indiana.edu/picons/db/users/net/bcpl/jspath/face.xbm>
<http://www.altavista.com/cgi-bin/query?q=%22web+home+for+jim+spath%22>
Marvin the Paranoid Android says:
It's the people you meet in this job that really get you down.