wie von debian aus freebsd slices finden + mounten?

milius.net

tail -f /var/log/nerd
hallo
versuche mit einem debian rescue system meine ufs (freebsd 4.9) platten zu mounten - habe rumprobiert und konnte mit:
mount -t ufs -o ro,ufstype=44bsd /dev/hda5 /mnt
eine partition mounten, weiss aber nicht welche und weiss auch nicht wie ich die anderen:
/ (ad0s1a)
/var
/usr
/tmp
/backup
/hsphere
einbinden könnte - kennt sich jemand aus?
könnte echt hilfe gebrauchen ....
 
danke für deine hilfe...

# ls /dev/hda*
Code:
/dev/hda    /dev/hda11  /dev/hda14  /dev/hda17  /dev/hda2   /dev/hda4  /dev/hda7
/dev/hda1   /dev/hda12  /dev/hda15  /dev/hda18  /dev/hda20  /dev/hda5  /dev/hda8
/dev/hda10  /dev/hda13  /dev/hda16  /dev/hda19  /dev/hda3   /dev/hda6  /dev/hda9

cat etc/fstab
Code:
# See the fstab(5) manual page for important information on automatic mounts
# of network filesystems before modifying this file.
#
# Device Mountpoint FStype Options Dump Pass#
/dev/ad0s1b none swap sw 0 0
/dev/ad0s1a / ufs rw 1 1
/dev/ad0s1h /backup ufs rw 2 2
/dev/ad0s1d /hsphere ufs rw,userquota 2 2
/dev/ad0s1e /tmp ufs rw,nosuid,nodev 2 2
/dev/ad0s1f /usr ufs rw 2 2
/dev/ad0s1g /var ufs rw 2 2
/dev/acd0c /cdrom cd9660 ro,noauto 0 0
 
beim starten des pcs sollte sowas stehen wie
Code:
hda4 < hda16 hda17 hda18 hda19 hda20 >
das zeigt welche partitionen "in anderen drin sind", also entweder extended partitionen oder freebsdslices.
wenn also ad0s1 deine freebsd slice ist, musst du gucken was hinter hda1 steht und diese partitionen dann mounten.
beachte auch dass linux nur 20 nods erstellen, wenn also deine freebsd partitionen bei hda21 hda22 liegen, musst du noch zusätzliche nodes erstellen (mit mknod).

p.s: beim ufstype solltest du ufs2 oder einfach nur 2 angeben
EDIT: natürlich nur wenns auch ufs2 platten sind
 
danke für deine hilfe soul_rebel,
soul_rebel schrieb:
beim starten des pcs sollte sowas stehen wie
Code:
hda4 < hda16 hda17 hda18 hda19 hda20 >[/quote] wo finde ich denn in debian die start messages?

[QUOTE]wenn also ad0s1 deine freebsd slice ist, musst du gucken was hinter hda1 steht und diese partitionen dann mounten.[/QUOTE] okay dann werde ich mal einfach n paar partitionen mounten und gucken was ich so erwische ...

[QUOTE]beachte auch dass linux nur 20 nods erstellen, wenn also deine freebsd partitionen bei hda21 hda22 liegen, musst du noch zusätzliche nodes erstellen (mit mknod). [/QUOTE] aha, gut zu wissen, danke, wollen wir mal hoffen das es nicht dazu kommt ...

[QUOTE]p.s: beim ufstype solltest du ufs2 oder einfach nur 2 angeben
EDIT: natürlich nur wenns auch ufs2 platten sind[/QUOTE]
sind nicht ufs2, sind ufs - weiss ich genau ...
 
# dmesg|less
Code:
Linux version 2.4.27-2-686 (horms@tabatha.lab.ultramonkey.org) (gcc version 3.3.5 (Debian 1
:3.3.5-13)) #1 Wed Aug 17 10:34:09 UTC 2005
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001eff0000 (usable)
 BIOS-e820: 000000001eff0000 - 000000001eff3000 (ACPI NVS)
 BIOS-e820: 000000001eff3000 - 000000001f000000 (ACPI data)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
495MB LOWMEM available.
found SMP MP-table at 000f6550
hm, page 000f6000 reserved twice.
hm, page 000f7000 reserved twice.
hm, page 000f1000 reserved twice.
hm, page 000f2000 reserved twice.
On node 0 totalpages: 126960
zone(0): 4096 pages.
zone(1): 122864 pages.
zone(2): 0 pages.
ACPI: RSDP (v000 KM400                                     ) @ 0x000f7f50
ACPI: RSDT (v001 KM400  AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1eff3000
ACPI: FADT (v001 KM400  AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1eff3040
ACPI: MADT (v001 KM400  AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1eff7580
ACPI: DSDT (v001 KM400  AWRDACPI 0x00001000 MSFT 0x0100000e) @ 0x00000000
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 Pentium(tm) Pro APIC version 16
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
Using ACPI for processor (LAPIC) configuration information
Intel MultiProcessor Specification v1.4
    Virtual Wire compatibility mode.
OEM ID: OEM00000 Product ID: PROD00000000 APIC at: 0xFEE00000
I/O APIC #2 Version 17 at 0xFEC00000.
Enabling APIC mode: Flat.       Using 1 I/O APICs
Processors: 1
Kernel command line: nfsdir=213.239.210.27:/nfs root=/dev/ram0 RFILE=NFSROOT initrd=miniroo
t.cram init=/linuxrc HASH=$1$pBoO83SV$uKqZxG3Bijj6f1O18EQuQ1 lang=de nomce noapic BOOT_IMAG
E=vmlinuz.rescue 
Initializing CPU#0
Detected 1915.077 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 3814.19 BogoMIPS
Memory: 497368k/507840k available (1197k kernel code, 10088k reserved, 452k data, 116k init
, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU:     After generic, caps: 0383fbff c1c3fbff 00000000 00000000
CPU:             Common caps: 0383fbff c1c3fbff 00000000 00000000
CPU: AMD Athlon(tm) XP 2600+ stepping 00
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 1914.9638 MHz.
..... host bus clock speed is 333.0371 MHz.
cpu: 0, clocks: 3330371, slice: 1665185
CPU0<T0:3330368,T1:1665168,D:15,S:1665185,C:3330371>
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
ACPI: Subsystem revision 20040326
ACPI: Interpreter disabled.
PCI: PCI BIOS revision 2.10 entry at 0xfbcb0, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: ACPI tables contain no PCI IRQ routing entries
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router VIA [1106/3177] at 00:11.0
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
Detected PS/2 Mouse Port.
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_P
CI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
COMX: driver version 0.85 (C) 1995-1999 ITConsult-Pro Co. <info@itc.hu>
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
Linux IP multicast router 0.06 plus PIM-SM
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 2044 blocks [1 disk] into ram disk... done.
Freeing initrd memory: 2044k freed
VFS: Mounted root (cramfs filesystem) readonly.
Freeing unused kernel memory: 116k freed
8139too Fast Ethernet driver 0.9.26
Intel(R) PRO/1000 Network Driver - version 5.2.52-k3
Copyright (c) 1999-2004 Intel Corporation.
loop: loaded (max 8 devices)
Linux Tulip driver version 0.9.15-pre12 (Aug 9, 2002)
Registering unionfs version $Id: main.c,v 1.98 2005/05/13 15:58:50 cwright Exp $
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
via-rhine.c:v1.10-LK1.1.19  July-12-2003  Written by Donald Becker
  http://www.scyld.com/network/via-rhine.html
PCI: Found IRQ 11 for device 00:12.0
eth0: VIA VT6102 Rhine-II at 0xe000, 00:0c:76:59:ac:30, IRQ 11.
eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 45e1.
kmod: failed to exec /sbin/modprobe -s -k net-pf-10, errno = 2
eth0: Setting full-duplex based on MII #1 link partner capability of 45e1.
eth0: Setting full-duplex based on MII #1 link partner capability of 45e1.
kmod: failed to exec /sbin/modprobe -s -k net-pf-10, errno = 2
spurious 8259A interrupt: IRQ7.
Real Time Clock Driver v1.10f
device-mapper: 4.1.1-ioctl (2004-04-07) initialised: dm-devel@redhat.com
LVM version 1.0.8(17/11/2003) module loaded
irda_init()
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: acpi_shpchprm:get_device PCI ROOT HID fail=0x1001
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: acpi_pciehprm:get_device PCI ROOT HID fail=0x1001
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
uhci.c: USB Universal Host Controller Interface driver v1.1
usb-uhci.c: $Revision: 1.275 $ time 10:51:33 Aug 17 2005
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci00:11.1
    ide0: BM-DMA at 0xdc00-0xdc07, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xdc08-0xdc0f, BIOS settings: hdc:pio, hdd:pio
[B][SIZE="5"]hda: SAMSUNG SP1614N, ATA DISK drive[/SIZE][/B]
blk: queue df8cacc0, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
SCSI subsystem driver Revision: 1.00
3ware Storage Controller device driver for Linux v1.02.00.037.
3w-xxxx: No cards found.
[B]hda: attached ide-disk driver.
hda: 312581808 sectors (160042 MB) w/8192KiB Cache, CHS=19457/255/63, UDMA(100)
Partition check:
 /dev/ide/host0/bus0/target0/lun0: p1
 p1: <bsd: p5 p6 p7 p8 p9 p10 p11 >
SCSI subsystem driver Revision: 1.00
ufs_read_super: fs is active
hda4: bad access: block=16, count=1
end_request: I/O error, dev 03:04 (hda), sector 16
ufs_read_super: bad magic number
hda3: bad access: block=16, count=1
end_request: I/O error, dev 03:03 (hda), sector 16[/B]
ganz unten steht:
hda: attached ide-disk driver.
hda: 312581808 sectors (160042 MB) w/8192KiB Cache, CHS=19457/255/63, UDMA(100)
Partition check:
/dev/ide/host0/bus0/target0/lun0: p1
p1: <bsd: p5 p6 p7 p8 p9 p10 p11 >
SCSI subsystem driver Revision: 1.00
ufs_read_super: fs is active
hda4: bad access: block=16, count=1
end_request: I/O error, dev 03:04 (hda), sector 16
ufs_read_super: bad magic number
hda3: bad access: block=16, count=1
end_request: I/O error, dev 03:03 (hda), sector 16



check fdisk/disklabel to see your slices on hda.
jemand ne ahnung wie ich das anstellen soll?
 
Wenn fdisk das nicht anzeigt, sollte auch folgender Weg gehen.
Grub installieren und die grub shell unter Linux starten, dann kannst mittels Tab Vervollstaendigung die Partionen/Slices auflisten.

Code:
grub> root (hd0,<tab>

Du brauchst den Befehl ja nicht ausfuehren, siehst dann aber zumindest schon mal die Liste der Partionen.

HTH
 
@milius.net

1. fdisk /dev/hda
2. "b"
3. "p"

PS: die Gänsefüßchen natürlich nicht eingeben
 
gute idee, xbit, den tipp merke ich mir - aber mit grub stehe ich etwas auf dem kriegsfuss :) ...

danke maus, ergebniss ist:
Code:
8 partitions:
#       start       end      size     fstype   [fsize bsize   cpg]
  a:        1*      392*      391*    4.2BSD     2048 16384    89 
  b:      392*      653*      261*      swap                      
  c:        1*    19457     19456*    unused        0     0       
  d:    12663*    19457      6794*    4.2BSD     2048 16384    89 
  e:      653*      784*      130*    4.2BSD     2048 16384    89 
  f:      784*     1436*      652*    4.2BSD     2048 16384    89 
  g:     1436*     2220*      783*    4.2BSD     2048 16384    89 
  h:     2220*    12663*    10443*    4.2BSD     2048 16384    89
das könnte glatt wirklich meine partitionierung sein - aber wie setzt man das nun um? wie erkennt man daraus mountingpoints?

a=hda1
b=hda2
c=hda3 oder wie?
 
Aus Deiner dmesg
p1: <bsd: p5 p6 p7 p8 p9 p10 p11 >

p1 = hda1 = BSD-slice

a = hda5
b = hda6
d = hda7
usw.
Die BSD-Partitionen (a, b...) werden von Linux wie logische behandelt.
 
habs gepackt - hab einfach alle möglichkeiten gemountet:
# mount -t ufs -o ro,ufstype=44bsd /dev/hda[0 bis 20] /mnt/test

und dann im test-ordner geguckt welche daten drin waren und die dann entsprechend richtig gemountet ...

simple aber effektiv :D

VIELEN DANK an euch alle!
ohne euch wäre ich nicht auf diesen weg gekommen!
 
maus schrieb:
Aus Deiner dmesg
p1: <bsd: p5 p6 p7 p8 p9 p10 p11 >

p1 = hda1 = BSD-slice

a = hda5
b = hda6
d = hda7
usw.
Die BSD-Partitionen (a, b...) werden von Linux wie logische behandelt.

cool, maus, danke!
das ist natürlich besser als raten :D

hab's gleich ausprobiert:
in hda5 war nichts drin ??
und mounting hda6 bringt fehler:
wrong fs type, bad option, bad superblock on /dev/hda6

alle anderen (hda7-11) hatte ich einwandfrei mounten können ...
 
mount -t ufs -o ro,ufstype=44bsd /dev/hda5 /mnt

Seit einiger Zeit kann Linux auch UFS2 mounten, afaik ab 2.6.12 oder so. Das würde bezogen auf obere Zeile so aussehen:

Code:
mount -t ufs -o ro,ufstype=ufs2 /dev/hda5 /mnt
 
ja, danke für den tipp, aber in diesem fall ist meine platte ufs formatiert (freebsd 4.9 hatte noch kein ufs2) und ausserdem ist ufs2 nicht im kernel von dem debian rescue system ...
 
Zurück
Oben