Как включить полное журналирование корневого раздела? (что-то в этом мире изменилось...)

Knoppix

Модераторы: Warderer, Модераторы разделов

devis
Сообщения: 37

Как включить полное журналирование корневого раздела?

Сообщение devis »

http://www.gnu.org/software/grub/manual/ht...002fLinux.html:
If you need to specify some kernel parameters, just append them to the command. For example, to set vga to `ext', do this:
grub> kernel /vmlinuz root=/dev/hda1 vga=ext

man mount:
Specifies the journalling mode for file data. Metadata is
always journaled. To use modes other than ordered on the root
file system, pass the mode to the kernel as boot parameter, e.g.
rootflags=data=journal.

uname -a:
Linux devis 2.6.15-1-686-smp #2 SMP Mon Mar 6 15:34:50 UTC 2006 i686 GNU/Linux
/boot/grub/menu.lst:
title Debian GNU/Linux, kernel 2.6.15-1-686-smp
root (hd0,4)
kernel /boot/vmlinuz-2.6.15-1-686-smp root=/dev/sda5 ro rootflags=data=journal
initrd /boot/initrd.img-2.6.15-1-686-smp
savedefault
boot
dmesg:
scsi1 : ata_piix
Vendor: ATA Model: HDS722580VLSA80 Rev: V32O
Type: Direct-Access ANSI SCSI revision: 05
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SCSI device sda: 160834367 512-byte hdwr sectors (82347 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 160834367 512-byte hdwr sectors (82347 MB)
SCSI device sda: drive cache: write back
sda: sda1 sda2 < sda5 sda6 sda7 >
sd 0:0:0:0: Attached scsi disk sda
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.


Как включить полное журналирование корневого раздела? Что я делаю неправильно?
Спасибо сказали:
virens
Сообщения: 125
ОС: Debian GNU/Linux

Re: Как включить полное журналирование корневого раздела?

Сообщение virens »

devis писал(а):
16.08.2006 22:53
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.

Как включить полное журналирование корневого раздела? Что я делаю неправильно?

Судя по логам, журналирование включено. Чего же боле?
Спасибо сказали:
devis
Сообщения: 37

Re: Как включить полное журналирование корневого раздела?

Сообщение devis »

Теоритически должно быть следующие:
EXT3-fs: mounted filesystem with journal data mode.
Спасибо сказали:
Аватара пользователя
chitatel
Сообщения: 2098

Re: Как включить полное журналирование корневого раздела?

Сообщение chitatel »

А это не в /etc/fstab нужно указать, например:

Код: Выделить всё

/что/монтируем /куда/монтируем ext3 data=journal 0 0
Спасибо сказали:
devis
Сообщения: 37

Re: Как включить полное журналирование корневого раздела?

Сообщение devis »

Это указывается для НЕ КОРНЕВЫХ разделов.
Спасибо сказали:
Аватара пользователя
sash-kan
Администратор
Сообщения: 13939
Статус: oel ngati kameie
ОС: GNU

Re: Как включить полное журналирование корневого раздела?

Сообщение sash-kan »

devis
man tune2fs на предмет опции -j
Писать безграмотно - значит посягать на время людей, к которым мы адресуемся, а потому совершенно недопустимо в правильно организованном обществе. © Щерба Л. В., 1957
при сбоях форума см.блог
Спасибо сказали:
devis
Сообщения: 37

Re: Как включить полное журналирование корневого раздела?

Сообщение devis »

man tune2fs на предмет опции -j:
-j Add an ext3 journal to the filesystem. If the -J option is not specified, the default journal parameters
will be used to create an appropriately sized journal (given the size of the filesystem) stored within the
filesystem. Note that you must be using a kernel which has ext3 support in order to actually make use of
the journal.

If this option is used to create a journal on a mounted filesystem, an immutable file, .journal, will be
created in the top-level directory of the filesystem, as it is the only safe way to create the journal
inode while the filesystem is mounted. While the ext3 journal is visible, it is not safe to delete it, or
modify it while the filesystem is mounted; for this reason the file is marked immutable. While checking
unmounted filesystems, e2fsck(8) will automatically move .journal files to the invisible, reserved journal
inode. For all filesystems except for the root filesystem, this should happen automatically and natu-
rally during the next reboot cycle. Since the root filesystem is mounted read-only, e2fsck(8) must be run
from a rescue floppy in order to effect this transition.

On some distributions, such as Debian, if an initial ramdisk is used, the initrd scripts will automati-
cally convert an ext2 root filesystem to ext3 if the /etc/fstab file specifies the ext3 filesystem for the
root filesystem in order to avoid requiring the use of a rescue floppy to add an ext3 journal to the root
filesystem.


sash-kan, подскажите какое это имеет отношения к моей проблеме?
Задача проста. Раздел в ФС ext3 можно монтировать с разными оциями, в частности с опцией касаемой типа журналирования, цитаты из манов и чего хочу указал выше.
Спасибо сказали:
Аватара пользователя
sash-kan
Администратор
Сообщения: 13939
Статус: oel ngati kameie
ОС: GNU

Re: Как включить полное журналирование корневого раздела?

Сообщение sash-kan »

devis писал(а):
17.08.2006 20:07
Теоритически должно быть следующие:
EXT3-fs: mounted filesystem with journal data mode.


практически получается вот что:
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Adding 353388k swap on /dev/hda5. Priority:-1 extents:1
EXT3 FS on hda1, internal journal
Писать безграмотно - значит посягать на время людей, к которым мы адресуемся, а потому совершенно недопустимо в правильно организованном обществе. © Щерба Л. В., 1957
при сбоях форума см.блог
Спасибо сказали:
Аватара пользователя
qwerty
Сообщения: 72

Re: Как включить полное журналирование корневого раздела?

Сообщение qwerty »

вот здесь, мне кажется, есть ответ
https://wiki.archlinux.org/index.php/Ext3
Спасибо сказали:
RomanK
Сообщения: 17
ОС: Debian

Re: Как включить полное журналирование корневого раздела?

Сообщение RomanK »

(qwerty) писал(а):вот здесь, мне кажется, есть ответ
https://wiki.archlinux.org/index.php/Ext3

вы серьезно думаете, что спустя пять лет автору интересен ваш ответ
:)
Спасибо сказали: