View previous topic :: View next topic |
Author |
Message |
fbcyborg Advocate
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
Posted: Sun Jun 04, 2006 4:25 pm Post subject: Problema con mkfs.ext3 |
|
|
Appena creo un file con il comando Code: | dd if=/dev/zero of=root bs=1M count=1 seek=1000 | per installarci un filesystem, intendo formattarlo come ext3.
Eseguo il comando:
e come output ho solo 3 righe e un file non formattato/funzionante:
Code: | mke2fs 1.38 (30-Jun-2005)
prova non è un device speciale a blocchi.
Procedere comunque? (y,n) y
|
Se eseguo un mkfs.ext3 sul mio portatile, anch'esso con gentoo, escono fuori molti più messaggi, descriventi le operazioni sulla formattazione e sicuramente un file ben funzionante e formattato come dico io.
Come faccio a rendere di nuovo funzionante mkfs.ext3 e tutti gli altri? Presuppongo di dover riemergere un pacchetto per fixare il problema. Facendo revdep-rebuild non viene rilevata alcuna anomalia. _________________ [HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered |
|
Back to top |
|
|
bender86 Guru
Joined: 18 Mar 2005 Posts: 484
|
Posted: Sun Jun 04, 2006 5:14 pm Post subject: |
|
|
Hai provato ad associarlo a un device /dev/loop# (man losetup) e formattare il device?
E poi perché passi il parametro seek a dd?
EDIT:
Hai controllato con ls -lh se il file ha la dimensione desiderata? |
|
Back to top |
|
|
fbcyborg Advocate
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
|
bender86 Guru
Joined: 18 Mar 2005 Posts: 484
|
Posted: Sun Jun 04, 2006 5:49 pm Post subject: |
|
|
fbcyborg wrote: | bender86 wrote: | Hai provato ad associarlo a un device /dev/loop# (man losetup) e formattare il device? | no, non so bene di cosa stai parlando |
Code: | losetup /dev/loop0 /path/to/file # associa al device fasullo /dev/loop0 il file /path/to/file
mke2fs opzioni /dev/loop0 # crea il filesystem su /dev/loop0 (quindi su /path/to/file)
# ora il device /dev/loop0 contiene il filesystem
losetup -d /dev/loop0 # libera il device /dev/loop0 |
È lo stesso meccanismo del comando [b]mount -o loop /dev/device /mnt/mountpoint
fbcyborg wrote: | http://gentoo-wiki.com/HOWTO_User_Mode_Linux#Setting_up_a_Debian_UML_Guest punto 3. |
Ok, allora immagino non sia quello il problema. |
|
Back to top |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sun Jun 04, 2006 5:54 pm Post subject: Re: Problema con mkfs.ext3 |
|
|
immagino non ti sia venuto in mente di metterci un -v, dopo mkfs... |
|
Back to top |
|
|
fbcyborg Advocate
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
|
Luca89 Advocate
Joined: 27 Apr 2005 Posts: 2107 Location: Agrigento (Italy)
|
Posted: Mon Jun 05, 2006 6:47 pm Post subject: |
|
|
forse non riesce correttamente a gestire i file sparse. _________________ Running Fast! |
|
Back to top |
|
|
fbcyborg Advocate
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
|
Luca89 Advocate
Joined: 27 Apr 2005 Posts: 2107 Location: Agrigento (Italy)
|
Posted: Mon Jun 05, 2006 7:16 pm Post subject: |
|
|
fbcyborg wrote: | quindi è un bug relativo alla distro per amd64? |
non credo, anche da me su x86 non riesco a creare un filesystem ext3 su file sparse. _________________ Running Fast! |
|
Back to top |
|
|
fbcyborg Advocate
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
|
Luca89 Advocate
Joined: 27 Apr 2005 Posts: 2107 Location: Agrigento (Italy)
|
Posted: Mon Jun 05, 2006 8:01 pm Post subject: |
|
|
fbcyborg wrote: | Scusate la testardaggine,
però non è strano che su un pc funzioni e su un'altro no?
magari dipende anche dal pacchetto che contiene mkfs |
forse dipende da come hai creato il file, hai usato lo stesso comando anche nell'altro pc? _________________ Running Fast! |
|
Back to top |
|
|
fbcyborg Advocate
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
|
|