[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sintaxe EXT3



Então... Tiago..

Estou tentando usar a opção data=journal  no arquivo /etc/fstab
Estou tentando montar um sistema raiz, no meu caso todo o meu sistema está dentro uma única partição.

Grato,
Fábio


Em 14/10/2009 18:10, Tiago Saboga escreveu:
Olá Fábio,

Nâo sei nada do assunto, mas a sua mensagem não ajudou. Você está
alterando essa opção para seu sistema de arquivos raiz? Tentou passar
para o kernel a opção apontada pelo Gunther? Já fez algum outro teste,
com um sistema de arquivos que não o raiz?

Aqui, num sistema de arquivos num arquivo temporário, não tenho nenhum
problema para montar o dispositivo com a opção que você quer. Veja no
final da mensagem os testes rápidos que fiz.

Aliás, ao fazer isso, descobri que não lembro como fazer a mesma coisa
mas sem usar 100Mb do meu tmp, isto é, criando um arquivo com buracos.
Alguém lembra?

tiago@coruja:~$ dd if=/dev/zero of=/tmp/teste.img bs=100M count=1
1+0 registos dentro
1+0 registos fora
104857600 bytes (105 MB) copiados, 1,83123 s, 57,3 MB/s
tiago@coruja:~$ ls -l /tmp/teste.img
-rw-r--r-- 1 tiago tiago 104857600 Out 14 18:03 /tmp/teste.img
tiago@coruja:~$ /sbin/mke2fs -J /tmp/teste.img

Bad journal options specified.

Journal options are separated by commas, and may take an argument which
	is set off by an equals ('=') sign.

Valid journal options are:
	size=<journal size in megabytes>
	device=<journal device>

The journal size must be between 1024 and 10240000 filesystem blocks.

tiago@coruja:~$ /sbin/mke2fs -j /tmp/teste.img
mke2fs 1.41.3 (12-Oct-2008)
/tmp/teste.img is not a block special device.
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
25688 inodes, 102400 blocks
5120 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67371008
13 block groups
8192 blocks per group, 8192 fragments per group
1976 inodes per group
Superblock backups stored on blocks:
	8193, 24577, 40961, 57345, 73729

Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 20 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
tiago@coruja:~$ su
Senha:
coruja:/home/tiago# mount -o loop -o data=journal /tmp/teste.img /mnt
coruja:/home/tiago# mount | grep mnt
/tmp/teste.img on /mnt type ext3 (rw,loop=/dev/loop0,data=journal)
coruja:/home/tiago# ls /mnt
lost+found
coruja:/home/tiago# touch /mnt/arquivo1
coruja:/home/tiago# umount /mnt
coruja:/home/tiago# e2fsck -f /tmp/teste.img
e2fsck 1.41.3 (12-Oct-2008)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/tmp/teste.img: 12/25688 files (0.0% non-contiguous), 8913/102400 blocks




Reply to: