2001-07-03 17:16:11

by Admin Mailing Lists

[permalink] [raw]
Subject: ufs on linux question/problem


Trying to mount a solaris x86 drive under linux.
kernel 2.4.5, ufs support and x86 partition support compiled in (no
module)
On boot, linux recognizes the drive, but shows no solaris partitions on
it.
Below, linux drive is hda, solaris is hdb.

Jul 2 19:57:56 stevenjude2 kernel: PIIX4: chipset revision 2
Jul 2 19:57:56 stevenjude2 kernel: PIIX4: not 100%% native mode: will
probe irqs later
Jul 2 19:57:56 stevenjude2 kernel: ide0: BM-DMA at 0xffa0-0xffa7,
BIOS settings: hda:DMA, hdb:pio
Jul 2 19:57:56 stevenjude2 kernel: ide1: BM-DMA at 0xffa8-0xffaf,
BIOS settings: hdc:DMA, hdd:pio
Jul 2 19:57:56 stevenjude2 kernel: hda: WDC AC26400B, ATA DISK drive
Jul 2 19:57:56 stevenjude2 kernel: hdb: QUANTUM FIREBALL ST3.2A, ATA DISK
driveJul 2 19:57:56 stevenjude2 kernel: hdc: SAMSUNG SC-140B, ATAPI
CD/DVD-ROM driveJul 2 19:57:56 stevenjude2 kernel: ide0 at
0x1f0-0x1f7,0x3f6 on irq 14
Jul 2 19:57:56 stevenjude2 kernel: ide1 at 0x170-0x177,0x376 on irq 15
Jul 2 19:57:56 stevenjude2 kernel: hda: 12594960 sectors (6449 MB)
w/512KiB Cache, CHS=784/255/63, UDMA(33)
Jul 2 19:57:56 stevenjude2 kernel: hdb: 6306048 sectors (3229 MB) w/81KiB
Cache, CHS=6256/16/63, UDMA(33)
Jul 2 19:57:56 stevenjude2 kernel: Partition check:
Jul 2 19:57:56 stevenjude2 kernel: hda: hda1 hda2 hda3 < hda5 >
Jul 2 19:57:56 stevenjude2 kernel: hdb:


Tried to mount from the command line with:
mount -r -t ufs -o ufstype=sunx86,ro /dev/hdb /mnt
mount -r -t ufs -o ufstype=sunx86,ro /dev/hdb1 /mnt
All failed.

Only relevant log message i saw was:
Jul 2 22:04:02 stevenjude2 kernel: ufs_read_super: bad magic number

a fdisk on /dev/hdb shows no partitions. could the drive or partitions be
corrupted or something? if so, is data salvage likely?

Thanx,

-Tony
.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-.
Anthony J. Biacco Network Administrator/Engineer
[email protected] Intergrafix Internet Services

"Dream as if you'll live forever, live as if you'll die today"
http://www.asteroid-b612.org http://www.intergrafix.net
.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-.


2001-07-03 17:23:12

by Alexander Viro

[permalink] [raw]
Subject: Re: ufs on linux question/problem



On Tue, 3 Jul 2001, Admin Mailing Lists wrote:

>
> Trying to mount a solaris x86 drive under linux.
> kernel 2.4.5, ufs support and x86 partition support compiled in (no
> module)
> On boot, linux recognizes the drive, but shows no solaris partitions on
> it.
> Below, linux drive is hda, solaris is hdb.

You need support of Solaris disklabels. And UFS patches that are in
-ac. Then you can get more or less safe r/o mounts. r/w is hopeless
at that stage.

2001-07-03 18:09:18

by Admin Mailing Lists

[permalink] [raw]
Subject: Re: ufs on linux question/problem



>
> You need support of Solaris disklabels.

isn't that what CONFIG_SOLARIS_X86_PARTITION is?

> And UFS patches that are in
> -ac. Then you can get more or less safe r/o mounts. r/w is hopeless
> at that stage.

that's ok, i only need to read.

-Tony
.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-.
Anthony J. Biacco Network Administrator/Engineer
[email protected] Intergrafix Internet Services

"Dream as if you'll live forever, live as if you'll die today"
http://www.asteroid-b612.org http://www.intergrafix.net
.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-.