On 10/29/2014 07:04 PM, Damiön la Bagh wrote:
> BTRFS is really easy to add or subtract a disk. Grub2 has no
> problem with it and I can still boot after the disk has been added
> and balanced.

Wow... last I saw they had trouble fitting code to do a simple single
disk case into 64k and were asking about increasing that size.  To
handle multiple disks and still fit in 64k is nothing short of miraculous.

> As for other operating systems. This is a moot point, the scenario
> is using Ubuntu+Btrfs with physical SSD's. If the disks need to be
> converted back to legacy partition table format it's as simple as
> writing a few 00's to the first 64kib with dd. dd if=/dev/zero
> of=/dev/sdX count=64

I meant sharing part of the drive, rather than blowing it all away.
With a partition table you can always fire up gparted and shrink down
the btrfs partition and make a new one if you need it.  I even patched
things to do this while the volume is mounted a while back ;)

> For UEFI, I've already complained to the UEFI bord that they are
> holding back technology by insisting on using a 1980's file system
> to hold UEFI. It's the most ridiculous 'invention' in computers in
> the last 10 years. I understand the want and need to kill the BIOS
> but there are much more graceful solutions then defaulting to 30+
> year old legacy tech.

It's about as simple as filesystems get, everyone already supports it
and it doesn't really have any drawbacks that matter in a pre boot
environment, so it was a no brainer rather than inventing a whole new
filesystem or mandating that different parties adopt an existing
filesystem of another.  Implementations are still free to support other
filesystems if they choose; it's just that fat was the lowest common
denominator and bios vendors never do any more than they absolutely have
to.  I've heard that macs can use hfs for the esp though.

> Parted is broken when it comes to btrfs, it doesn't handle it
> gracefully at all. See the screenshot: The top left corner shows
> that parted just defaults to MSDOS even though you can clearly see
> in the top right that there is no partition table written. The
> bottom terminal is the Ubuntu 14.10 Live USB stick for comparison.
> Commands used were sudo parted -l

Looking at your screen shots, it appears that there is something that at
least tries to look like it is an MBR there in the boot sector.  In
14.10, I fixed parted to correctly recognize filesystems on bare
devices, but had to take special steps to avoid confusing an ntfs/fat
boot sector for an MBR since they look very similar.  My guess is that
grub is trying to mimic an MBR and fooling parted into thinking that it
is one.  I probably just need to detect btrfs first and prefer that over
MBR like I did with fat and ntfs.

If you feel comfortable reinstalling grub ( and it sounds like you do ),
then you might conduct an experiment and zero out that first sector and
see if that fixes the problem, though obviously to boot you will then
need to reinstall grub.

> Should I bring this up with the parted developers as well?

You're talking to him ;)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1383948

Title:
  Ubiquity Installer doesn't recognize existing btrfs partitions

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/parted/+bug/1383948/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to