On 01/28/2011 06:33 PM, hans...@gmail.com wrote: > But what scheme to use for the labels? My > answer - GRUB2's order, because it's relatively stable (BIOS order, > right?) It's nothing but. It depends on the factors like booted disk, enumeration order, disk latency and connected devices. It's also different from one mobo to another. It's probably by luck that it looked like relatively stable for you. Although one objective reason why it could seem stable is because you probably upgrade you BIOS less than Linux. There are orders of technical origin based on e.g. disk model and serial number, which might be more readable for you. But the target usercase is that user assigns the names based on the description of the contents that makes sense to him. > So here's my suggestion - please allow users to actually SET the > labels right from the grub CLI! I realize the different filesystems have > different label structures, > but if you were able to handle say dos/ntfs plus the top four Linux > filesystems that should cover 99% of the needs out there. > > Writing to a filesystem is always a potential risk. It has to be carefully evaluated to find out if it's justified. For some filesystems it's as easy as writing to a superblock, on the others it's more tricky because it has mirrored superblocks or handles label somewhere in the fs. Also if we write anything to fs metadata we have to carefully check the compatibility to avoid potentially corrupting the fs. It adds some new points of failure and complexity. Also including just one fs with such support creates an incencitive to make other fses do the same even if it's potentially risky. Filesystems modules are also size-critical so any write support was intentionally omitted to keep the complexity and risks down. So a priori I'd say it's a no. You can bring new arguments to persuade me though. > Just an idea, if it's a stupid one, please let me know why - and if > you've got a better suggestion than the above kludge for figuring out > which disk is which please fill me in! > Just name the disks after whatever makes sense t you, not whatever makes sense to GRUB, it's your disks after all.
-- Regards Vladimir 'φ-coder/phcoder' Serbinenko
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel