Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • xfs grub2-install

    Posted on

    Hi,
    I wish to make new disk /dev/sdb bootable.Is grub2-install unsupported on xfs?
    How can I make an xfs disk bootable?
    I have centos 7 with /dev/sda1 and /dev/sda2 for /boot and /.

    [root@localhost ~]# mkfs.xfs /dev/sdb
    meta-data=/dev/sdb isize=512 agcount=4, agsize=1310720 blks
    = sectsz=512 attr=2, projid32bit=1
    = crc=1 finobt=0, sparse=0
    data = bsize=4096 blocks=5242880, imaxpct=25
    = sunit=0 swidth=0 blks
    naming =version 2 bsize=4096 ascii-ci=0 ftype=1
    log =internal log bsize=4096 blocks=2560, version=2
    = sectsz=512 sunit=0 blks, lazy-count=1
    realtime =none extsz=4096 blocks=0, rtextents=0
    [root@localhost ~]# grub2-install /dev/sdb
    Installing for i386-pc platform.
    grub2-install: error: hostdisk//dev/sdb appears to contain a xfs filesystem whic h isn't known to reserve space for DOS-style boot. Installing GRUB there could result in FILESYSTEM DESTRUCTION if valuable data is overwritten by grub-setup (

    by

    points

    Responses

    Red Hat

    Quick Links

    Help

    Site Info

    Related Sites

    © 2025 Red Hat, Inc.