Menu

can't save screenshots to rEFind USB key

kent
2014-08-08
2014-08-11
  • kent

    kent - 2014-08-08

    I'm using a old 256MB flashdrive as a rEFind USB key. I created it by dd-ing the refind-flashdrive-0.8.3.img file (extracted from the refind-flashdrive-0.8.3.zip download) to it.

    It boots my system just fine.

    I would like to be able to use the F10 key to save some screenshots, it creates a screenshot_001.bmp file, but it's 0 bytes in size.

    $ ls -l /media/ElTorito/
    total 1592
    drwx------ 3 kent kent 2048 Jul 6 12:31 EFI
    -rw------- 1 kent kent 0 Aug 8 09:29 screenshot_001.bmp
    -rw------- 1 kent kent 683904 Jul 6 12:31 shellia32.efi
    -rw------- 1 kent kent 943552 Jul 6 12:31 shellx64.efi

    I suspect the reason the screenshot isn't getting saved is because the EFI partition on the usb key is too small. It's approx. 4.5M and the bmp image is probably quite a bit larger than that.

    $ sudo lsblk -lno NAME,LABEL,UUID,SIZE,FSTYPE,TYPE,MOUNTPOINT
    sdc 250M disk
    sdc1 ElTorito 9D89-1D22 4.5M vfat part /media/ElTorito

    The df command shows it to be even smaller, and shows only 502K available

    $ df -h /dev/sdc1
    Filesystem Size Used Avail Use% Mounted on
    /dev/sdc1 3.5M 3.0M 502K 86% /media/ElTorito

    Is it possible to resize the EFI partition? I tried using gparted. After using gparted the lsblk command listed sdc1 as 200M in size, but the df command still shows what's shown above.

     

    Last edit: kent 2014-08-08
  • Roderick W. Smith

    I recommend you simply copy all the files off the rEFInd flash drive, create a fresh partition table and a big enough FAT partition (marked as type EF00 in gdisk or with its "boot flag" set in parted or GParted), and copy the files back.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.