You are not logged in.

#1 2013-08-18 11:28:42

Rudolph007
Member
Registered: 2013-08-18
Posts: 3

[Solved]'cp437: invalid argument' during first boot (UEFI with refind)

Hi All,

So finally my first post on the forums!

I installed Arch (May iso) along Win7 on my Sony Vaio S13. The Laptop has a SSD and a HDD.
Here is my output from LSBLK after mounting and before arch-chroot /mnt:

NAME                  MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                     8:0    0 238.5G  0 disk
├─sda1                  8:1    0     1G  0 part /boot
├─sda2                  8:2    0   180G  0 part
└─sda3                  8:3    0  57.5G  0 part
  ├─archvgrp1-rootvol 254:1    0    40G  0 lvm  /
  └─archvgrp1-homevol 254:2    0  17.5G  0 lvm  /home
sdb                     8:16   0 465.8G  0 disk
├─sdb1                  8:17   0   375G  0 part
│ ├─archgrp2-varvol   254:3    0    30G  0 lvm  /var
│ └─archgrp2-datavol  254:4    0   345G  0 lvm  /data
└─sdb2                  8:18   0  90.8G  0 part
sdc                     8:32   1   1.9G  0 disk
└─sdc1                  8:33   1   1.9G  0 part
loop0                   7:0    0 226.9M  1 loop
loop1                   7:1    0   1.5G  1 loop
└─arch_root-image     254:0    0   1.5G  0 dm   /etc/resolv.conf
loop2                   7:2    0   1.5G  0 loop
└─arch_root-image     254:0    0   1.5G  0 dm   /etc/resolv.conf

You can see that I do this by using an Arch live USB on sdc.
And here my FSTAB:

#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# UUID=c25ba840-dfaf-4a65-93d7-68c1d826fd96
/dev/mapper/archvgrp1-rootvol   /               ext4            rw,relatime,data=ordered        0 1
 
# UUID=2ab49917-1d10-4cdb-bd2d-ee1205362a06
/dev/mapper/archvgrp1-homevol   /home           ext4            rw,relatime,data=ordered        0 2
 
# UUID=11225f2b-43dd-4997-af41-2b98325ddcbb
/dev/mapper/archgrp2-varvol     /var            ext4            rw,relatime,data=ordered        0 2
 
# UUID=da64b716-b21e-46cf-9aa7-ba010834ca35
/dev/mapper/archgrp2-datavol    /data           ext4            rw,relatime,data=ordered        0 2
 
# UUID=2771-137B LABEL=/BOOT
/dev/sda1               /boot           vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro    0 0

Installation went flawless (followed wiki guide).
Reboot resulted in refind being ignored so Win7 was booted.
efimgr and UEFI shell didn't help as the bloody Sony Bios reset all UEFI entries with every reboot.
After searching the Inet I was able to boot into refind by moving the Win7 .efi file to a new location and saving refind .efi file as /boot/efi/Boot/bootx64.efi
Now when launching linux via refind I get an error saying that:

fsck.vfat: not found
fsck: error 2 while executing fsck.vfat for /dev/sda1

I tried the following (unsucessfully):
1. Upgrade system with respecting:
https://www.archlinux.org/news/binaries … ervention/
2. Changed FSTAB (all but sda1 had double entries so I removed them; also changed sda1 from 0 2 to 0 0)
3. Added /sbin/fsck.vfat to BINARIES of mkinitcpio.conf file (manually)
4. Ran fsck.vfat -r /dev/sda1 (was telling me Bad bit wass reset (this is due to me having to hard shut off the system after the error message when booting)

Any idea what I can try next?
As this is my first post please tell me which files you would need additionally.

Cheers,
Rudolph

Last edited by Rudolph007 (2013-08-23 11:34:25)

Offline

#2 2013-08-18 13:00:59

Rudolph007
Member
Registered: 2013-08-18
Posts: 3

Re: [Solved]'cp437: invalid argument' during first boot (UEFI with refind)

Hi again,

Little update from my side:
I forgot to run mkinitcpio -p linux after editing mkinitcpio.conf....
After rebooting I get the following NEW error:

performing fsck on '/dev/sda1'
CP437: invalid argument
fsck.fat 3.0.22 ...
/dev/sda1: 214 files, 11313/261628 clusters

I removed cp437 entry from /dev/sda1 in fstab and rebooted.
Unfortunately I still get the same error.

Ideas?

Thanks,
Rudolph

Offline

#3 2013-08-23 11:39:40

Rudolph007
Member
Registered: 2013-08-18
Posts: 3

Re: [Solved]'cp437: invalid argument' during first boot (UEFI with refind)

Hi All,

I was able to solve this finally. As stated in the UEFI Bootloader Wiki entry (https://wiki.archlinux.org/index.php/UE … ing_rEFInd) I edited the refind_linux.conf file to define the partuid of the root partition. Apparently this isn't working when using a LVM. I simply put in the path to my root partition instead and it worked

Cheers,
Rudolph

Offline

Board footer

Powered by FluxBB