ciao,
ho appena installato opendarwin su qemu, creando un filesystem in:
darwing.img (darwin UFS)
volevo montarlo in loop con:
mount -o loop,offset=32256 /mnt/hdb5/darwin.img /mnt/darwin
ma non lo riconosce.....
come posso fare?
ciao,
ho appena installato opendarwin su qemu, creando un filesystem in:
darwing.img (darwin UFS)
volevo montarlo in loop con:
mount -o loop,offset=32256 /mnt/hdb5/darwin.img /mnt/darwin
ma non lo riconosce.....
come posso fare?
loop=/dev/loop0 ?
E poi, ce l'hai il supporto all'UFS nel kernel? ovviamente solo se hai già formattato il disco virtuale..
«Non sono uno sciocco, Plissken» «Chiamami Iena»
from John Carpenter's "Fuga da New York", 1981.
ho eseguito quel comando perche' per un altro tipo di filesystem (ext2) mi funziona, esempio:
mount -o loop,offset=32256 /mnt/hdb5/hurd.img /mnt/hurd
mentre con l'immagine di darwin es:
mount -o loop,offset=32256 /mnt/hdb5/darwin.img /mnt/darwin
mi da:
ioctl: LOOP_CLR_FD: Dispositivo o risorsa occupata
mount: si deve specificare il tipo di filesystem
p.s.
ho controllato il kernel, ha inserito UFS.......... e ho caricato anche HFS
Ultima modifica di sacarde; 17-01-2006 alle 21.39.20
prova con
mount -o loop=/dev/loop0,offset=32256 -t ufs /mnt/quellocheè /mnt/quellocheè
«Non sono uno sciocco, Plissken» «Chiamami Iena»
from John Carpenter's "Fuga da New York", 1981.
ho:
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
nel frattempo ho scoperto che il filesystem e': "darwin ufs", ID=A8....
vediamo un
dmesg|tail -n 20
«Non sono uno sciocco, Plissken» «Chiamami Iena»
from John Carpenter's "Fuga da New York", 1981.
che significa questo comando ?
agpgart: Putting AGP V2 device at 0000:01:00.0 into 1x mode
ACPI: PCI Interrupt 0000:00:10.4[C] -> GSI 21 (level, low) -> IRQ 21
PCI: Via IRQ fixup for 0000:00:10.4, from 3 to 5
ehci_hcd 0000:00:10.4: VIA Technologies, Inc. USB 2.0
ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 5
ehci_hcd 0000:00:10.4: irq 21, io mem 0xdfffbe00
ehci_hcd 0000:00:10.4: USB 2.0 initialized, EHCI 1.00, driver 10 Dec 2004
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 8 ports detected
usb 1-1: USB disconnect, address 2
drivers/usb/class/usblp.c: usblp0: removed
usb 1-1: new full speed USB device using uhci_hcd and address 3
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x043D pid 0x009F
eth0: no IPv6 routers present
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE,EPP]
gameport: NS558 PnP Gameport is pnp00:03/gameport0, io 0x200, speed 1011kHz
Real Time Clock Driver v1.12
input: PC Speaker
ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
Nono, lo devi dare subito dopo che provi a montare..
comunque significa: dammi i messaggi del kernel (dmesg), e prendi le ultime 20 righe (tail -n 20)
«Non sono uno sciocco, Plissken» «Chiamami Iena»
from John Carpenter's "Fuga da New York", 1981.
l'abbiamo beccato ?
ufs was compiled with read-only support, can't be mounted as read-write
Esatto, sia benedetto dmesg.. dovrebbe bastare
mount -o loop=/dev/loop0,offset=32256,ro -t ufs /mnt/quellocheè /mnt/quellocheè
«Non sono uno sciocco, Plissken» «Chiamami Iena»
from John Carpenter's "Fuga da New York", 1981.
ok ci siamo
il mount lo fa
/mnt/hdb5/darwin.img 2032085 836602 1093883 44% /mnt/darwin
ma entro nella directory montata..............
ls -la
total 0
vuota !!!!!
mi sfugge qualcosa .........
Anche a me.. non è che l'immagine è fatta in modo da non poter essere montata? non conosco molto bene qemu..
E poi, sei sicuro che serva offset?
«Non sono uno sciocco, Plissken» «Chiamami Iena»
from John Carpenter's "Fuga da New York", 1981.
un'immagine che mi monta correttamente e' quella di HURD, sempre fatta con qemu......su questa l'offset occorre.......
ho provato a togliere l'offset per darwin.....
mount -o loop=/dev/loop0,ro -t ufs /mnt/hdb5/darwin.img /mnt/darwin
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
e come mi hai insegnato ecco dmesg....
You didn't specify the type of your ufs filesystem
mount -t ufs -o ufstype=sun|sunx86|44bsd|ufs2|5xbsd|old|hp|nextste p|netxstep-cd|openstep ...
>>>WARNING<<< Wrong ufstype may corrupt your filesystem, default is ufstype=old
ufs_read_super: bad magic number
Si vede che le immagini di qemu sono fatte così, iniziano da un certo punto..
Comunque qui ti chiede di specificare ulteriormente il filesystem, ma qui proprio non so aiutarti, l'UFS l'ho scoperto ora.. occhio al warning!
«Non sono uno sciocco, Plissken» «Chiamami Iena»
from John Carpenter's "Fuga da New York", 1981.
Segnalibri