R: Converting ext2 filesystem image to ext3

Andrea Paterniani a.paterniani at swapp-eng.it
Fri Feb 24 14:48:23 UTC 2006


I have verified the status of /dev/loop0 then I did the following:

losetup /dev/loop0 root_fs_arm_nofpu.ext2
tune2fs -j /dev/loop0

I got the following error:

	tune2fs: Cannot allocate block in ext2 filesystem

The message arises when tune2fs attempt to create the journal inode.

Any idea?

-Andrea



-----Messaggio originale-----
Da: uclibc-bounces at uclibc.org [mailto:uclibc-bounces at uclibc.org]Per
conto di Jan-Benedict Glaw
Inviato: venerdì 24 febbraio 2006 15.20
A: uclibc at uclibc.org
Oggetto: Re: Converting ext2 filesystem image to ext3


On Fri, 2006-02-24 15:03:08 +0100, Andrea Paterniani <a.paterniani at swapp-eng.it> wrote:
> I have obtained my ext2 root filesystem image with Buildroot.
> How can I convert root_fs_arm_nofpu.ext2 to ext3 image?
> 
> In general I should unmount the filesystem then type 'tune2fs -j /dev/xxx'
> and so on.
> But I have an image and not a real disk.

That should work with an image as well; if tunefs refuses to use the
image, then first manually attach it to to a loop device (using the
`losetup' tool.)

MfG, JBG

-- 
Jan-Benedict Glaw       jbglaw at lug-owl.de    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 für einen Freien Staat voll Freier Bürger"  | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));




More information about the uClibc mailing list