Score:0

Cannot reinstall grub on newly created boot partitiion

dk flag
12. Reinstall grub on the newly boot partition:
# grub-install --recheck /dev/xvdg
# sed -i 's/sdg/xvdg/g' /boot/grub/device.map
# grub-install /dev/xvdg

Running first line gives:

Probing devices to guess BIOS drives. This may take a long time.
No suitable drive was found in the generated device map.
Reverting to backed up copy.

It seems to create device.map, so I continue, the second command works, but the third gives me:

expr: non-numeric argument
Could not find device for /boot

lblsk gives me:

[root@ip-111-111-111-111 grub]# lsblk
NAME    MAJ:MIN RM    SIZE RO TYPE MOUNTPOINT
xvda    202:0    0      8G  0 disk 
└─xvda1 202:1    0      8G  0 part 
xvdf    202:80   0      2T  0 disk 
└─xvdf1 202:81   0    1.6T  0 part 
xvdg    202:96   0      1G  0 disk 
└─xvdg1 202:97   0 1019.7M  0 part /boot
djdomi avatar
za flag
i would use wipefs and recreate the filesystem with ext2/3/4 depending what you use
dk flag
any tutorial or resource for doing this?
djdomi avatar
za flag
wipefs and mkfs should be known. So this interprets me that you are an Enduser which makes the question off topic. Superuser.com have to be used for this kind of question. Personally i would only split the boot partition only if its a non usually bootable FS for grub, but zfs as example doesn't need this
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.