* Re: [devel] mkimage/spt
2010-09-28 7:01 ` Alexey I. Froloff
@ 2010-09-28 7:07 ` sbolshakov
2010-09-28 7:19 ` Denis Kuznetsov
` (2 more replies)
2010-09-28 7:09 ` Timur Batyrshin
` (2 subsequent siblings)
3 siblings, 3 replies; 30+ messages in thread
From: sbolshakov @ 2010-09-28 7:07 UTC (permalink / raw)
To: devel
>>>>> "Alexey" == Alexey I Froloff <raorn-u2l5PoMzF/Vg9hUCZPvPmw@public.gmane.org> writes:
> On Tue, Sep 28, 2010 at 06:28:22AM +0400, Денис Смирнов wrote:
>> Можно ли с помощью mkimage или spt или еще чего-нибудь делать образ не
>> squashfs, а ext3 или xfs?
> Нет, потому что "ext3 или xfs" можно создать только на блочном
> устройстве и только заранее известного размера. Это всё требует
> дополнительных действий и повышенных привилегий.
Впрочем, существует e2fsimage.
--
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [devel] mkimage/spt
2010-09-28 7:07 ` sbolshakov
@ 2010-09-28 7:19 ` Denis Kuznetsov
2010-09-28 8:53 ` Anton Farygin
2010-09-28 7:51 ` Денис Смирнов
2010-09-28 7:57 ` Mykola S. Grechukh
2 siblings, 1 reply; 30+ messages in thread
From: Denis Kuznetsov @ 2010-09-28 7:19 UTC (permalink / raw)
To: ALT Linux Team development discussions
On Tuesday 28 September 2010 10:07:31 sbolshakov@altlinux.ru wrote:
>
> Впрочем, существует e2fsimage.
Ура!!! работает!
$ e2fsimage -f test.ext2 -d tmp -g 1000 -u 1000 -s 256M
e2fsimage - Version: 0.2.2
mke2fs 1.41.12 (17-May-2010)
Copied 128 Directorys, 337 regular files, 2 symlinks
43 hard links and 0 special files - total 510
ЗЫ: Спасибо за подсказку.
--
Denis E. Kuznetsov
e-mail: kde{at}kde.kiev.ua
jabber: denis.e.kuznetsov{at}gmail.com
--------------------------------------
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [devel] mkimage/spt
2010-09-28 7:19 ` Denis Kuznetsov
@ 2010-09-28 8:53 ` Anton Farygin
2010-09-28 21:35 ` Денис Смирнов
0 siblings, 1 reply; 30+ messages in thread
From: Anton Farygin @ 2010-09-28 8:53 UTC (permalink / raw)
To: devel
28.09.2010 11:19, Denis Kuznetsov пишет:
> On Tuesday 28 September 2010 10:07:31 sbolshakov@altlinux.ru wrote:
>>
>> Впрочем, существует e2fsimage.
> Ура!!! работает!
>
> $ e2fsimage -f test.ext2 -d tmp -g 1000 -u 1000 -s 256M
> e2fsimage - Version: 0.2.2
> mke2fs 1.41.12 (17-May-2010)
> Copied 128 Directorys, 337 regular files, 2 symlinks
> 43 hard links and 0 special files - total 510
>
> ЗЫ: Спасибо за подсказку.
Рано радуешься. у этой утилиты масса проблем.. проверь содержимое
созданного раздела, например, через rpm -V
Кстати, исправить её было бы интересно, IMHO.
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [devel] mkimage/spt
2010-09-28 8:53 ` Anton Farygin
@ 2010-09-28 21:35 ` Денис Смирнов
2010-09-29 6:55 ` Anton Farygin
0 siblings, 1 reply; 30+ messages in thread
From: Денис Смирнов @ 2010-09-28 21:35 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 393 bytes --]
On Tue, Sep 28, 2010 at 12:53:05PM +0400, Anton Farygin wrote:
AF> Рано радуешься. у этой утилиты масса проблем.. проверь содержимое
AF> созданного раздела, например, через rpm -V
AF> Кстати, исправить её было бы интересно, IMHO.
И как же это сделать? :)
--
С уважением, Денис
http://mithraen.ru/
----------------------------------------------------------------------------
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [devel] mkimage/spt
2010-09-28 21:35 ` Денис Смирнов
@ 2010-09-29 6:55 ` Anton Farygin
2010-09-29 7:32 ` Денис Смирнов
0 siblings, 1 reply; 30+ messages in thread
From: Anton Farygin @ 2010-09-29 6:55 UTC (permalink / raw)
To: devel
29.09.2010 01:35, Денис Смирнов пишет:
> On Tue, Sep 28, 2010 at 12:53:05PM +0400, Anton Farygin wrote:
>
> AF> Рано радуешься. у этой утилиты масса проблем.. проверь содержимое
> AF> созданного раздела, например, через rpm -V
> AF> Кстати, исправить её было бы интересно, IMHO.
>
> И как же это сделать? :)
Как исправить или как проверить ?
Проверить просто - сделать образ live системы, смонтировать через loop,
зайти в чрут и внутри выполнить rpm -Va
А вот как исправить...
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [devel] mkimage/spt
2010-09-28 7:07 ` sbolshakov
2010-09-28 7:19 ` Denis Kuznetsov
@ 2010-09-28 7:51 ` Денис Смирнов
2010-09-28 7:57 ` Mykola S. Grechukh
2 siblings, 0 replies; 30+ messages in thread
From: Денис Смирнов @ 2010-09-28 7:51 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 251 bytes --]
On Tue, Sep 28, 2010 at 11:07:31AM +0400, sbolshakov@altlinux.ru wrote:
> Впрочем, существует e2fsimage.
Гениально!
--
С уважением, Денис
http://mithraen.ru/
----------------------------------------------------------------------------
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [devel] mkimage/spt
2010-09-28 7:07 ` sbolshakov
2010-09-28 7:19 ` Denis Kuznetsov
2010-09-28 7:51 ` Денис Смирнов
@ 2010-09-28 7:57 ` Mykola S. Grechukh
2010-09-28 13:00 ` Anton V. Boyarshinov
2 siblings, 1 reply; 30+ messages in thread
From: Mykola S. Grechukh @ 2010-09-28 7:57 UTC (permalink / raw)
To: ALT Linux Team development discussions
> > Нет, потому что "ext3 или xfs" можно создать только на блочном
> > устройстве и только заранее известного размера. Это всё требует
> > дополнительных действий и повышенных привилегий.
> Впрочем, существует e2fsimage.
А давайте кстати научимся делать не только iso, но и fat ? Примерно вот так:
size=$(du -csm "\$imgdir/" | awk '{print $1+5}' )
dd if=/dev/zero of="$outdir/$outname" bs=1M count=$size
makebootfat -v -L EEELIVE -m /usr/lib/syslinux/mbr.bin -b
/usr/lib/makebootfat/x86/ldlinux.bss -c
/usr/lib/makebootfat/x86/ldlinux.sys -Y -Z -o "$outdir/$outname"
"\$imgdir/"
--
Mykola Grechukh
RISC Group IT Solutions
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [devel] mkimage/spt
2010-09-28 7:57 ` Mykola S. Grechukh
@ 2010-09-28 13:00 ` Anton V. Boyarshinov
2010-09-28 13:15 ` Sergey Y. Afonin
2010-09-28 13:17 ` Mykola S. Grechukh
0 siblings, 2 replies; 30+ messages in thread
From: Anton V. Boyarshinov @ 2010-09-28 13:00 UTC (permalink / raw)
To: ALT Linux Team development discussions; +Cc: gns
On Tue, 28 Sep 2010 10:57:55 +0300 Mykola S. Grechukh wrote:
> > > Нет, потому что "ext3 или xfs" можно создать только на блочном
> > > устройстве и только заранее известного размера. Это всё требует
> > > дополнительных действий и повышенных привилегий.
> > Впрочем, существует e2fsimage.
>
> А давайте кстати научимся делать не только iso, но и fat ? Примерно вот так:
А зачем, если есть hybrid iso?
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [devel] mkimage/spt
2010-09-28 13:00 ` Anton V. Boyarshinov
@ 2010-09-28 13:15 ` Sergey Y. Afonin
2010-09-28 13:36 ` Denis Kuznetsov
2010-09-28 13:17 ` Mykola S. Grechukh
1 sibling, 1 reply; 30+ messages in thread
From: Sergey Y. Afonin @ 2010-09-28 13:15 UTC (permalink / raw)
To: ALT Linux Team development discussions
On Tuesday 28 September 2010, Anton V. Boyarshinov wrote:
> > А давайте кстати научимся делать не только iso, но и fat ?
> > Примерно вот так:
> А зачем, если есть hybrid iso?
Флешка r/o становится. Не очень удобно с этой точки зрения.
В хвост бы писать не плохо.
--
С уважением, Сергей Афонин
asy@altlinux.ru
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [devel] mkimage/spt
2010-09-28 13:15 ` Sergey Y. Afonin
@ 2010-09-28 13:36 ` Denis Kuznetsov
0 siblings, 0 replies; 30+ messages in thread
From: Denis Kuznetsov @ 2010-09-28 13:36 UTC (permalink / raw)
To: devel
On Tuesday 28 September 2010 16:15:19 Sergey Y. Afonin wrote:
> On Tuesday 28 September 2010, Anton V. Boyarshinov wrote:
> > > А давайте кстати научимся делать не только iso, но и fat ?
> > > Примерно вот так:
> >
> > А зачем, если есть hybrid iso?
>
> Флешка r/o становится. Не очень удобно с этой точки зрения.
> В хвост бы писать не плохо.
А что если попробовать для флешек UDF ????
--
Denis E. Kuznetsov
e-mail: kde{at}kde.kiev.ua
jabber: denis.e.kuznetsov{at}gmail.com
--------------------------------------
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [devel] mkimage/spt
2010-09-28 13:00 ` Anton V. Boyarshinov
2010-09-28 13:15 ` Sergey Y. Afonin
@ 2010-09-28 13:17 ` Mykola S. Grechukh
1 sibling, 0 replies; 30+ messages in thread
From: Mykola S. Grechukh @ 2010-09-28 13:17 UTC (permalink / raw)
To: Anton V. Boyarshinov; +Cc: ALT Linux Team development discussions
2010/9/28 Anton V. Boyarshinov <>:
> On Tue, 28 Sep 2010 10:57:55 +0300 Mykola S. Grechukh wrote:
>
>> > > Нет, потому что "ext3 или xfs" можно создать только на блочном
>> > > устройстве и только заранее известного размера. Это всё требует
>> > > дополнительных действий и повышенных привилегий.
>> > Впрочем, существует e2fsimage.
>>
>> А давайте кстати научимся делать не только iso, но и fat ? Примерно вот так:
> А зачем, если есть hybrid iso?
Если я правильно помню, hybrid iso всё ещё ридонли. Это подходит для
юзкейса "скачать новый дистрибутив на посмотреть".
На fat, с другой стороны, end user может класть разные там хуки,
выполняемые при загрузке, и вообще данные сохраняющиеся между
сеансами.
--
Mykola Grechukh
RISC Group IT Solutions
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [devel] mkimage/spt
2010-09-28 7:01 ` Alexey I. Froloff
2010-09-28 7:07 ` sbolshakov
@ 2010-09-28 7:09 ` Timur Batyrshin
2010-09-28 7:13 ` Andrey Rahmatullin
2010-09-28 7:25 ` Anton Farygin
2010-09-28 7:49 ` Денис Смирнов
3 siblings, 1 reply; 30+ messages in thread
From: Timur Batyrshin @ 2010-09-28 7:09 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 1085 bytes --]
On Tue, 28 Sep 2010 11:01:52 +0400
Alexey I. Froloff wrote:
> On Tue, Sep 28, 2010 at 06:28:22AM +0400, Денис Смирнов wrote:
> > Можно ли с помощью mkimage или spt или еще чего-нибудь делать образ
> > не squashfs, а ext3 или xfs?
> Нет, потому что "ext3 или xfs" можно создать только на блочном
> устройстве и только заранее известного размера. Это всё требует
> дополнительных действий и повышенных привилегий.
Что я делаю не так?
erthad@batyrshin /tmp $ dd if=/dev/zero of=ext3.img count=100 bs=1M
100+0 записей считано
100+0 записей написано
скопировано 104857600 байт (105 MB), 0,118133 c, 888 MB/c
erthad@batyrshin /tmp $ /sbin/mkfs.ext3 -Fq ext3.img
erthad@batyrshin /tmp $ file ext3.img
ext3.img: Linux rev 1.0 ext3 filesystem data,
UUID=7b8b1d3e-31a1-49d9-9de6-ed0e5f4b1b3f
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [devel] mkimage/spt
2010-09-28 7:09 ` Timur Batyrshin
@ 2010-09-28 7:13 ` Andrey Rahmatullin
0 siblings, 0 replies; 30+ messages in thread
From: Andrey Rahmatullin @ 2010-09-28 7:13 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 1082 bytes --]
On Tue, Sep 28, 2010 at 11:09:40AM +0400, Timur Batyrshin wrote:
> > > Можно ли с помощью mkimage или spt или еще чего-нибудь делать образ
> > > не squashfs, а ext3 или xfs?
> > Нет, потому что "ext3 или xfs" можно создать только на блочном
> > устройстве и только заранее известного размера. Это всё требует
> > дополнительных действий и повышенных привилегий.
> Что я делаю не так?
> erthad@batyrshin /tmp $ dd if=/dev/zero of=ext3.img count=100 bs=1M
> 100+0 записей считано
> 100+0 записей написано
> скопировано 104857600 байт (105 MB), 0,118133 c, 888 MB/c
> erthad@batyrshin /tmp $ /sbin/mkfs.ext3 -Fq ext3.img
> erthad@batyrshin /tmp $ file ext3.img
> ext3.img: Linux rev 1.0 ext3 filesystem data,
> UUID=7b8b1d3e-31a1-49d9-9de6-ed0e5f4b1b3f
А теперь запиши туда файл.
--
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(6):
<thresh> К сожалению, Ричарду пришлось удалить несвободный файл прошивки WiFi,
так что эта функция у него, увы, не работает.
* thresh ржот
<wRAR> thresh: рмсу?
<thresh> wRAR: ну :)
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [devel] mkimage/spt
2010-09-28 7:01 ` Alexey I. Froloff
2010-09-28 7:07 ` sbolshakov
2010-09-28 7:09 ` Timur Batyrshin
@ 2010-09-28 7:25 ` Anton Farygin
2010-09-28 7:51 ` Денис Смирнов
2010-09-28 9:12 ` Ivan Fedorov
2010-09-28 7:49 ` Денис Смирнов
3 siblings, 2 replies; 30+ messages in thread
From: Anton Farygin @ 2010-09-28 7:25 UTC (permalink / raw)
To: devel
28.09.2010 11:01, Alexey I. Froloff пишет:
> On Tue, Sep 28, 2010 at 06:28:22AM +0400, Денис Смирнов wrote:
>> Можно ли с помощью mkimage или spt или еще чего-нибудь делать образ не
>> squashfs, а ext3 или xfs?
> Нет, потому что "ext3 или xfs" можно создать только на блочном
> устройстве и только заранее известного размера. Это всё требует
> дополнительных действий и повышенных привилегий.
Это не правда. Практически любую FS можно сделать на файле.
Основная проблема в том, что этот файл нужно будет монтировать через -o
loop
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [devel] mkimage/spt
2010-09-28 7:25 ` Anton Farygin
@ 2010-09-28 7:51 ` Денис Смирнов
2010-09-28 8:54 ` Anton Farygin
2010-09-28 9:12 ` Ivan Fedorov
1 sibling, 1 reply; 30+ messages in thread
From: Денис Смирнов @ 2010-09-28 7:51 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 446 bytes --]
On Tue, Sep 28, 2010 at 11:25:42AM +0400, Anton Farygin wrote:
AF> Это не правда. Практически любую FS можно сделать на файле.
AF> Основная проблема в том, что этот файл нужно будет монтировать через -o
AF> loop
Что является по сути созданием блочного устройства /dev/loopX с
последующим его монтированием.
--
С уважением, Денис
http://mithraen.ru/
----------------------------------------------------------------------------
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [devel] mkimage/spt
2010-09-28 7:51 ` Денис Смирнов
@ 2010-09-28 8:54 ` Anton Farygin
0 siblings, 0 replies; 30+ messages in thread
From: Anton Farygin @ 2010-09-28 8:54 UTC (permalink / raw)
To: devel
28.09.2010 11:51, Денис Смирнов пишет:
> On Tue, Sep 28, 2010 at 11:25:42AM +0400, Anton Farygin wrote:
>
> AF> Это не правда. Практически любую FS можно сделать на файле.
> AF> Основная проблема в том, что этот файл нужно будет монтировать через -o
> AF> loop
>
> Что является по сути созданием блочного устройства /dev/loopX с
> последующим его монтированием.
Да, но никто при этом не запрещает из userspace поработать с этим
файлом, верно ?
Впрочем, уже вроде как со всем разобрались...
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [devel] mkimage/spt
2010-09-28 7:25 ` Anton Farygin
2010-09-28 7:51 ` Денис Смирнов
@ 2010-09-28 9:12 ` Ivan Fedorov
2010-09-28 21:35 ` Денис Смирнов
1 sibling, 1 reply; 30+ messages in thread
From: Ivan Fedorov @ 2010-09-28 9:12 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]
Anton Farygin <rider-u2l5PoMzF/VWk0Htik3J/w@public.gmane.org> writes:
> 28.09.2010 11:01, Alexey I. Froloff пишет:
>> On Tue, Sep 28, 2010 at 06:28:22AM +0400, Денис Смирнов wrote:
>>> Можно ли с помощью mkimage или spt или еще чего-нибудь делать образ не
>>> squashfs, а ext3 или xfs?
>> Нет, потому что "ext3 или xfs" можно создать только на блочном
>> устройстве и только заранее известного размера. Это всё требует
>> дополнительных действий и повышенных привилегий.
>
> Это не правда. Практически любую FS можно сделать на файле.
>
> Основная проблема в том, что этот файл нужно будет монтировать через
> -o
> loop
А http://sourceforge.net/projects/fuse-ext2/ не поможет?
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [devel] mkimage/spt
2010-09-28 7:01 ` Alexey I. Froloff
` (2 preceding siblings ...)
2010-09-28 7:25 ` Anton Farygin
@ 2010-09-28 7:49 ` Денис Смирнов
3 siblings, 0 replies; 30+ messages in thread
From: Денис Смирнов @ 2010-09-28 7:49 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 431 bytes --]
On Tue, Sep 28, 2010 at 11:01:52AM +0400, Alexey I. Froloff wrote:
AIF> Нет, потому что "ext3 или xfs" можно создать только на блочном
AIF> устройстве и только заранее известного размера. Это всё требует
AIF> дополнительных действий и повышенных привилегий.
man mkfs.xfs на предмет protofile.
--
С уважением, Денис
http://mithraen.ru/
----------------------------------------------------------------------------
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 30+ messages in thread