Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problema con mkfs.ext3
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Sun Jun 04, 2006 4:25 pm    Post subject: Problema con mkfs.ext3 Reply with quote

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:
Code:
mkfs.ext3 root
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
View user's profile Send private message
bender86
Guru
Guru


Joined: 18 Mar 2005
Posts: 484

PostPosted: Sun Jun 04, 2006 5:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Sun Jun 04, 2006 5:19 pm    Post subject: Reply with quote

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
Quote:

E poi perché passi il parametro seek a dd?
http://gentoo-wiki.com/HOWTO_User_Mode_Linux#Setting_up_a_Debian_UML_Guest punto 3.
Quote:



EDIT:
Hai controllato con ls -lh se il file ha la dimensione desiderata?
pare di si! :D
_________________
[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
View user's profile Send private message
bender86
Guru
Guru


Joined: 18 Mar 2005
Posts: 484

PostPosted: Sun Jun 04, 2006 5:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sun Jun 04, 2006 5:54 pm    Post subject: Re: Problema con mkfs.ext3 Reply with quote

immagino non ti sia venuto in mente di metterci un -v, dopo mkfs...
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Mon Jun 05, 2006 5:49 pm    Post subject: Re: Problema con mkfs.ext3 Reply with quote

k.gothmog wrote:
immagino non ti sia venuto in mente di metterci un -v, dopo mkfs...

ecco cosa accade...
Code:
# mkfs.ext3 -v root
mke2fs 1.38 (30-Jun-2005)
rootfs non è un device speciale a blocchi.
Procedere comunque? (y,n) y
#


Effettivamente come dice bender86 con losetup riesco a formattare. TnX.
Ma mi chiedo perchè non debba funzionare il metodo classico.
Sul mio portatile funziona!
_________________
[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
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Mon Jun 05, 2006 6:47 pm    Post subject: Reply with quote

forse non riesce correttamente a gestire i file sparse.
_________________
Running Fast!
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Mon Jun 05, 2006 7:02 pm    Post subject: Reply with quote

quindi è un bug relativo alla distro per amd64?
_________________
[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
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Mon Jun 05, 2006 7:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Mon Jun 05, 2006 7:18 pm    Post subject: Reply with quote

Scusate la testardaggine,
però non è strano che su un pc funzioni e su un'altro no?
magari dipende anche dal pacchetto che contiene mkfs
_________________
[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
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Mon Jun 05, 2006 8:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Mon Jun 05, 2006 8:55 pm    Post subject: Reply with quote

Si ho usato lo stesso comando.

Ah, prima ho provato a fare
Code:
mke2fs -F nome_file

ed ha formattato il file.
_________________
[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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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