1000Mhz пишет:Не надо брать tar.
ваше мнение очень важно для нас.
1000Mhz пишет:Хотя бы потому, что он не сможет сжать корневой раздел запущенной системы и вывалится с ошибкой, уже проходили-с.
dd сможет, вот только не факт, что такая система будет работать после восстановления. Мне такое УГ вместо бекапов не нужно. А вы делайте, я разрешаю. С условием, что потом плакать не будете.
И кстати, что за ошибка?
diablopc пишет:А вот с этого места поподробнее пожалуйста, такого никогда не приходилось делать
ну это initrd. Смысл прост: после загрузки ядра грузится в память файл /boot/initrd.gz (имя может быть другим), который является образом Linux. ОЧЕНЬ маленьким. 3,6M у меня сейчас. Там есть оболочка ash ну и минимум утилит. А уж этот Linux грузит основную систему. Мне он нужен для подключения модуля f2fs, ибо пересобирать ядро мне лень, а систем а у меня раньше на этой ФС стояла. Часто применяют initrd для шифрования _всего_ диска(кроме /boot конечно).
Fat-Zer пишет:пока я не полез в гугл, это кто такой? моя гента про него не слышала...
# mkinitrd --help
Usage: mkinitrd [OPTION]
mkinitrd creates an initial ramdisk (actually an initramfs cpio+gzip
archive) used to load kernel modules that are needed to mount the
root filesystem, or other modules that might be needed before the
root filesystem is available. Other binaries may be added to the
initrd, and the script is easy to modify. Be creative. :-)
-F Use the contents of /etc/mkinitrd.conf (optional)
If this is used in conjunction with any other options passed
on the command line, the command-line options will override
the config file options. See mkinitrd.conf(5) for details.
-c Clear the existing initrd tree first
-f Filesystem to use for root partition (must be used with -r)
--help Display this message
-h Device to resume from hibernation. Needs to be the name of
the swap partition holding the hibernation image.
-k Kernel version to use
-l Custom keymap to load. Like, 'nl' or 'de-latin1-nodeadkeys'
-m A colon (:) delimited list of kernel modules to load.
Additional options may be added to use when loading the
kernel modules (but in this case the entire list must be
wrapped with double quotes). Any dependencies of requested
modules will also be added to the initrd.
-o Output image (default /boot/initrd.gz)
-r Root partition device (must be used with -f)
-s Initrd source tree (default /boot/initrd-tree/)
-u Include udev in the initrd
-w Time to wait until all disks are detected
-C A colon (:) delimited list of luks encrypted block devices to be
unlocked by the initrd using cryptsetup. All devices that must
be unlocked in order to access the root filesystem must be
specified. (Use with '-r' parameter).
-L Add support for LVM partitions
-K Use a USB key (fat-formatted) to unlock the root LUKS volume
The parameter value is filename of a keyfile, as well as the label
(or uuid) of the partition this file is on. This way, you can unlock
your computer automatically if you have a USB stick with your LUKS
key inserted at boot. A passphrase will still be asked if the LUKS
key can not be found.
For example, if your USB thumb drive has a FAT partition with label
"TRAVELSTICK" and the actual keyfile is called "/keys/alien.luks",
then you need to pass: -K LABEL=TRAVELSTICK:/keys/alien.luks
-B Add /sbin/btrfs to enable scanning for a root filesystem that is
part of a Btrfs multi-device filesystem.
-M Add the files in /etc/modprobe.d/ and /lib/modprobe.d/ to the initrd
-R Add support for RAID partitions
-V Display version number
A simple example: Build an initrd for a reiserfs root partition:
mkinitrd -c -m reiserfs
Another example: Build an initrd image using Linux 2.6.35.4-smp kernel
modules for a system with an ext4 root partition on /dev/sdb3:
mkinitrd -c -k 2.6.35.4-smp -m mbcache:jbd:ext4 -f ext4 -r /dev/sdb3
Note that if you are already logged in with /dev/sdb3 as your /
partition, and it is running ext4, this command works just the same:
mkinitrd -c -m ext4
If run without options, mkinitrd will rebuild an initrd image using
the contents of the directory, or, if that directory
does not exist it will be created and populated, and then mkinitrd
will exit.
это в Slackware скрипт такой. На bash'е.
Fat-Zer пишет:не initrd, а болей-менее полноценный ramdisk... оговорился... собственно кроме busybox'а и fsarchiver'а нам ничего не надо...
ну у нас в слаке такой и есть.
Карусель разнесло по цепочке за час
Всех известий — конец
Да, весна началась!
(всё к лицу подлецу, как родному отцу, не рассказывай, батя, и так всё пройдёт)