From: "Владимир Гусев" <vova1971@narod.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: [Comm] parted и ext3 - изменение размера раздела
Date: Mon, 2 Jun 2008 16:48:01 +0400
Message-ID: <20080602164801.5499099d@book.gusev.ru> (raw)
Здравствуйте!
Так как в моем ноуте нет встроенного CD-ROM, с которого можно
грузиться, то хотел воплотить в реальность свою идею размещения образа
дистрибутива в отдельный раздел (скопировать при помощи dd, чтобы и
загрузочный сектор записался куда нужно, хотя не факт, что это
получится.. или syslinux), занести раздел в lilo, чтобы в случае
какого-либо краха можно было переустановить систему, загрузившись в
приглашении lilo с этого раздела и начать установку системы.
Для этого я решил откусить 710 мб от конца самого последнего
раздела /dev/hda8 (home). Следовательно, нужно просто измениь размер
этого /dev/hda8, не меняя месторасположения начала раздела (условие для
ext2/3 у parted), что и я попытался сделать.
- изменил временно в inittab run level на 3
- перегрузил комп, загрузился в чистую консоль
- зашел рутом
- сделал:
umount /dev/dha8
tune2fs -O ^has_journal /dev/hda8
parted /dev/hda8
(parted) print
Model: IC25N020ATCS04-0 (ide)
Disk /dev/hda: 20.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 806MB 806MB primary linux-swap boot
4 806MB 20.0GB 19.2GB extended
5 806MB 1884MB 1077MB logical ext3
6 1884MB 5133MB 3249MB logical ext3
7 5133MB 6210MB 1077MB logical ext3
8 6210MB 20.0GB 13.8GB logical ext2
8 - это нужный раздел, сейчас он определяется как ext2 (иб я отключил
журнал)
Далее:
(parted) resize 8
Start [6210MB] здесь просто жму Enter, начало должно быть таким
End [20.0GB] 19.2GB здесь пишу где должен заканчиваться
новый /dev/hda8, чтобы освободить чуть больше 700 мб.
Жму Enter и читаю:
Error: File system has an incompatible feature enabled.
Что за .... несовместимая "с жизнью" функция такая?
P.S. насчет потери данных при resize.. Вроде успокоили из разных
источников в Сети, если буду соблюдать чтобы начала старого и нового
разделов совпадали. А там, бог его знает.. Home все-таки, жалко :-)
--
С уважением,
Владимир Гусев
next reply other threads:[~2008-06-02 12:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-02 12:48 Владимир Гусев [this message]
2008-06-02 14:03 ` Andriy Dobrovol`s`kii
2008-06-02 14:34 ` Serge
2008-06-02 16:01 ` Владимир Гусев
2008-06-03 4:48 ` Serge
2008-06-03 7:40 ` Владимир Гусев
2008-06-03 12:09 ` Хихин Руслан
2008-06-03 14:42 ` Владимир Гусев
2008-06-04 21:15 ` Владимир Гусев
2008-06-02 16:00 ` Владимир Гусев
2008-06-03 3:41 ` Evgeny Yugov
2008-06-03 7:41 ` Владимир Гусев
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080602164801.5499099d@book.gusev.ru \
--to=vova1971@narod.ru \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git