mkfs command in grub
Can someone please comment if adding filesystem creation support to grub is reasonable.
Please see the rationale at http://www.geocities.com/technologypages/grub-mkfs.txt
Will the developers consider adding this feature? It is rather easy to implement as far as I can see -- only glue for external filesystem creation code needs to be added.
Although the swap sharing use case discussed in the rationale is trivial, it is a common problem that may bring many multi-OS users over to GRUB 2 and create positive "media coverage" (if that feature will be added).
Quoted 9 lines · [email protected] writes:
Can someone please comment if adding filesystem creation support to grub is reasonable.
Please see the rationale at
http://www.geocities.com/technologypages/grub-mkfs.txtWill the developers consider adding this feature? It is rather easy to implement as far as I can see -- only glue for external filesystem creation code needs to be added.
Personally I do not like glue code at all. And creating the filesystems like fat and swap is quite trivial, I think.
Quoted 4 lines
Although the swap sharing use case discussed in the rationale is trivial, it is a common problem that may bring many multi-OS users over to GRUB 2 and create positive "media coverage" (if that feature will be added).
Right...
I think it is easy to implement this feature, and agree it might be useful in the cases you described. I wonder how the other developers think about including such feature.
--
Marco
Quoted 20 lines · Marco Gerards
Quoted 9 lines · [email protected] writes:
Can someone please comment if adding filesystem creation support to grub is reasonable.
Please see the rationale at
http://www.geocities.com/technologypages/grub-mkfs.txtWill the developers consider adding this feature? It is rather easy to implement as far as I can see -- only glue for external filesystem creation code needs to be added.
Personally I do not like glue code at all. And creating the filesystems like fat and swap is quite trivial, I think.
Quoted 4 lines
Although the swap sharing use case discussed in the rationale is trivial, it is a common problem that may bring many multi-OS users over to GRUB 2 and create positive "media coverage" (if that feature will be added).
Quoted 5 lines
Right...
I think it is easy to implement this feature, and agree it might be useful in the cases you described. I wonder how the other developers think about including such feature.
Well, GRUB2 supports modules. I do not see anything wrong on supplying mkfs<fs> module, but I would keep this out of normal file system code as it might cause some problems with "normal" users breaking their HD accidently.
If we one day have a GRUB rescue CD image we could include this and perhaps other file system modification modules there.
Quoted 3 lines · Marco Gerards
I think it is easy to implement this feature, and agree it might be useful in the cases you described. I wonder how the other developers think about including such feature.
For me, this kind of feature is an OS's task rather than a boot loader's. Boot loaders should concentrate on booting up operation systems, and the other tasks should be left to each operation system. Making a filesystem is not related to booting, since newly created filesystems contain no boot information.
Okuji
Quoted 10 lines · Yoshinori K. Okuji
Quoted 3 lines · Marco Gerards
I think it is easy to implement this feature, and agree it might be useful in the cases you described. I wonder how the other developers think about including such feature.
For me, this kind of feature is an OS's task rather than a boot loader's. Boot loaders should concentrate on booting up operation systems, and the other tasks should be left to each operation system. Making a filesystem is not related to booting, since newly created filesystems contain no boot information.
Unfortunately the rationale behind this idea was not in the original email.
The main reason for this feature request was that swap space can be shared between windows and GNU/Linux this way. So you can make a fat filesystem when booting windows and a swap filesystem when booting GNU/Linux. Although this is not something really important for us, I do see the use of such feature.
--
Marco
Quoted 2 lines · Marco Gerards
Unfortunately the rationale behind this idea was not in the original email.
I know.
Quoted 5 lines
The main reason for this feature request was that swap space can be shared between windows and GNU/Linux this way. So you can make a fat filesystem when booting windows and a swap filesystem when booting GNU/Linux. Although this is not something really important for us, I do see the use of such feature.
So? Why does a boot loader have to deal with that? Is a swap partition creation critical for booting? Why don't you just make a swap partition in the boot process of each operation system and activate it? I really don't see this as a task for a boot loader.
Okuji
Quoted 10 lines · Yoshinori K. Okuji
Quoted 5 lines
The main reason for this feature request was that swap space can be shared between windows and GNU/Linux this way. So you can make a fat filesystem when booting windows and a swap filesystem when booting GNU/Linux. Although this is not something really important for us, I do see the use of such feature.
So? Why does a boot loader have to deal with that? Is a swap partition creation critical for booting? Why don't you just make a swap partition in the boot process of each operation system and activate it? I really don't see this as a task for a boot loader.
Heh, now I am defending a feature I don't really want, need or care about myself. It's just that the idea is not that bad, not that I want it or so.
The problem of the person who proposed this, is that he can not change some of his operating systems. Which of course is a problem of non-free software.
--
Marco
On 11 Březen 2006, 21:46, Marco Gerards napsal(a):
Quoted 19 lines
Quoted 6 lines · Yoshinori K. Okuji
Quoted 5 lines
The main reason for this feature request was that swap space can be shared between windows and GNU/Linux this way. So you can make a fat filesystem when booting windows and a swap filesystem when booting GNU/Linux. Although this is not something really important for us, I do see the use of such feature.
Quoted 6 lines
So? Why does a boot loader have to deal with that? Is a swap partition creation critical for booting? Why don't you just make a swap partition in
the boot process of each operation system and activate it? I really don't see
this as a task for a boot loader.Heh, now I am defending a feature I don't really want, need or care about myself. It's just that the idea is not that bad, not that I want it or so.
Quoted 6 lines
The problem of the person who proposed this, is that he can not change some of his operating systems. Which of course is a problem of non-free software.
--
Marco
But he can use swapfile that is already created on that filesystem for linux. As windoze need no checksum or magic identifying a swapfile, he needs only to run mkswap on that file on each boot. (This is the way I solved this problem. But I think that windoze should support swap partition, because I can't make them to stop displaying warnings about small amount of free space on partition with swap file. Or I have lot of unused space on that partition.)
Signature · 2 lines
Tomas 'Ebi' Ebenlendr
http://get.to/ebikQuoted 3 lines · Marco Gerards
Heh, now I am defending a feature I don't really want, need or care about myself. It's just that the idea is not that bad, not that I want it or so.
Interesting. :)
BTW, if one really wants to implement fancy partition manipulation features, the right way would be to use libparted. This was discussed for GRUB Legacy in the past, but I don't remember the conclusion.
Okuji