Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Missing an OpenBSD partition when trying to mount in gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
SiErRaZ
n00b
n00b


Joined: 04 Nov 2003
Posts: 1

PostPosted: Tue Nov 04, 2003 9:43 am    Post subject: Missing an OpenBSD partition when trying to mount in gentoo Reply with quote

Here is my situation:

Switched from OpenBSD to Gentoo yesterday on a system with 2 harddrives, hda with the OS and hdb with the data. I installed Gentoo on hda (so no more UFS partitions there) but now I want to access my data that is on hdb which is in 3 different partitions within the OpenBSD slice.

I can mount 2 of them with:
mount -t ufs -o ufstype=44bsd,ro /dev/hdb5 /mnt/bsdpartion

I can mount hdb4,5,6 (but 4 and 5 are the same partition) so I'm missing my 65GB data partition.

dmesg output show questionmarks where the last partition should be.
Code:

blk: queue c0173ec4, I/O limit 4095Mb (mask 0xffffffff)
hda: 16514064 sectors (8455 MB) w/512KiB Cache, CHS=1027/255/63, (U)DMA
blk: queue c0174004, I/O limit 4095Mb (mask 0xffffffff)
hdb: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=9729/255/63, UDMA(66)
hdc: ATAPI 32X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
Partition check:
 /dev/ide/host0/bus0/target0/lun0: p1 p2 p3
 /dev/ide/host0/bus0/target1/lun0: p4
 p4: <openbsd: p5 p6??? >


I turned on BSD disklabels and UFS in the kernel btw.

So I wonder how can I access this last partition
Back to top
View user's profile Send private message
CorenMajere
n00b
n00b


Joined: 14 Mar 2003
Posts: 7

PostPosted: Tue Sep 20, 2005 2:15 am    Post subject: Reply with quote

I'm having a similar problem. I just lost a machine (OpenBSD) and I wanted to recover data from the hard-drives, so I put them in my gentoo box and set up the kernel to support UFS and BSD disklabels. This is the gentoo 2.6.7-gentoo-r11 kernel btw. I have two hard-drives plugged in, one with 2 partitions in the slice and one with 3 partitions in the slice. On the drive with 2 partitions, I see 2 partitions, /dev/hde4 & /dev/hde5, which both show only the 1st partition's files when mounted. On the drive with 3 partitions, I see 4 partitions, /dev/hdf4, /dev/hdf5, /dev/hdf6, /dev/hdf7. 4 and 5 both show the 1st partition's files when mounted, 7 shows the 3rd partition's files when mounted. 6 gives 'mount: wrong fs type, bad option, bad superblock on /dev/hdf6 or too many mounted file systems' error when I try to mount it.

The appropriate dmesg output:
Code:

PDC20268: IDE controller at PCI slot 0000:00:06.0
PDC20268: chipset revision 2
PDC20268: 100% native mode on irq 17
    ide2: BM-DMA at 0xa000-0xa007, BIOS settings: hde:pio, hdf:pio
    ide3: BM-DMA at 0xa008-0xa00f, BIOS settings: hdg:pio, hdh:pio
hde: WDC WD2500JB-00EVA0, ATA DISK drive
hdf: Maxtor 90845D4, ATA DISK drive
ide2 at 0x9000-0x9007,0x9402 on irq 17
VP_IDE: IDE controller at PCI slot 0000:00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci0000:00:11.1
    ide0: BM-DMA at 0xb400-0xb407, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xb408-0xb40f, BIOS settings: hdc:DMA, hdd:DMA
hda: QUANTUM FIREBALLP AS40.0, ATA DISK drive
hdb: MAXTOR 6L040J2, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: DVD-ROM DDU1621, ATAPI CD/DVD-ROM drive
hdd: SONY CD-RW CRX195E1, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hde: max request size: 1024KiB
hde: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63, UDMA(100)
 /dev/ide/host2/bus0/target0/lun0: p4
 p4: <openbsd: p5bad subpartition - ignored
 >
hdf: max request size: 128KiB
hdf: 16514064 sectors (8455 MB) w/256KiB Cache, CHS=16383/16/63, UDMA(33)
 /dev/ide/host2/bus0/target1/lun0: p4
 p4: <openbsd: p5 p6 p7bad subpartition - ignored
 >
hda: max request size: 128KiB
hda: 78177792 sectors (40027 MB) w/1902KiB Cache, CHS=65535/16/63, UDMA(100)
 /dev/ide/host0/bus0/target0/lun0: p1 p2 p3 p4 < p5 p6 p7 p8 >
hdb: max request size: 128KiB
hdb: 78177792 sectors (40027 MB) w/1819KiB Cache, CHS=65535/16/63, UDMA(133)
 /dev/ide/host0/bus0/target1/lun0: p1
hdc: ATAPI 40X DVD-ROM drive, 512kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
hdd: ATAPI 40X CD-ROM CD-R/RW drive, 1984kB Cache, UDMA(33)


The machine was running OpenBSD 3.3. If there is any other information that might be useful, I'll see what I can do to get it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum