Saturday 28 May 2016

Install Epson driver for XP-335 on Fedora 23

Starting point is usually the Epson Drivers and Software download page

Took me here http://support.epson.net/linux/en/imagescanv3.php?version=1.1.6

Download and extract: imagescan-bundle-fedora-23-1.1.6.x64.rpm.tar.gz

[mochapenguin@tp300la imagescan-bundle-fedora-23-1.1.6.x64.rpm]$ su -c './install.sh' Password: Last metadata expiration check: 0:13:39 ago on Sat May 28 17:03:43 2016. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: GraphicsMagick-c++ x86_64 1.3.23-1.fc23 updates 110 k boost-filesystem x86_64 1.58.0-11.fc23 updates 75 k imagescan x86_64 3.16.0-1epson4fedora23 @commandline 1.5 M imagescan-plugin-networkscan x86_64 1.1.0-1epson4fedora23 @commandline 33 k imagescan-plugin-ocr-engine x86_64 1.0.0-1epson4fedora23 @commandline 8.6 M Transaction Summary ================================================================================ Install 5 Packages Total size: 10 M Total download size: 184 k Installed size: 21 M Downloading Packages: (1/2): GraphicsMagick-c++-1.3.23-1.fc23.x86_64. 147 kB/s | 110 kB 00:00 (2/2): boost-filesystem-1.58.0-11.fc23.x86_64.r 96 kB/s | 75 kB 00:00 -------------------------------------------------------------------------------- Total 42 kB/s | 184 kB 00:04 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Installing : boost-filesystem-1.58.0-11.fc23.x86_64 1/5 Installing : GraphicsMagick-c++-1.3.23-1.fc23.x86_64 2/5 Installing : imagescan-3.16.0-1epson4fedora23.x86_64 3/5 Installing : imagescan-plugin-ocr-engine-1.0.0-1epson4fedora23.x86_64 4/5 Installing : imagescan-plugin-networkscan-1.1.0-1epson4fedora23.x86_64 5/5 Verifying : imagescan-plugin-ocr-engine-1.0.0-1epson4fedora23.x86_64 1/5 Verifying : imagescan-plugin-networkscan-1.1.0-1epson4fedora23.x86_64 2/5 Verifying : imagescan-3.16.0-1epson4fedora23.x86_64 3/5 Verifying : GraphicsMagick-c++-1.3.23-1.fc23.x86_64 4/5 Verifying : boost-filesystem-1.58.0-11.fc23.x86_64 5/5 Installed: GraphicsMagick-c++.x86_64 1.3.23-1.fc23 boost-filesystem.x86_64 1.58.0-11.fc23 imagescan.x86_64 3.16.0-1epson4fedora23 imagescan-plugin-networkscan.x86_64 1.1.0-1epson4fedora23 imagescan-plugin-ocr-engine.x86_64 1.0.0-1epson4fedora23 Complete!

Thursday 5 May 2016

grub rescue after fixing partition order

Windows 10 (from Windows 7) upgrade on my HP dv6tqe left it with partition table entries not in the disk order. Windows 10 itself took out ~800 MB from the end of the C drive to create a new Windows RE partition.

When I used fdisk (dv6tqe has MBR) to lisk partitions [fdisk -lu] the output showed included the following:

Partition table entries are not in disk order. 

Although it wasn't causing any problems, I decided to tidy it up.

Fix partition table entry order using fdisk (on MBR discs)
sudo fdisk /dev/sda
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): x (extra functionality)
f (for fix partition order)
r (return to main menu)
w (write table to disk and exit)

After this on rebooting grub threw me to the rescue prompt.

Code
error: file '/grub2/i386-pc/normal.mod' not found. Entering rescue mode .... grub rescue >

Because the partition table order had changed, grub could no longer locate the /boot partition

commands typed at grub rescue
# List partitions
grub rescue> ls
(hd0,msdos1)(hd0,msdos2)...
# After a bit of trial and error the following command listed out the contents of the grub folder, thus identifying the correct partition to use
grub rescue> ls (hd0,msdos5)/grub
# to view the existing values
grub rescue> set 

Next, set the partition for grub to use.

Code
set prefix=(hd0,msdos5)/grub set root=(hd0,msdos5) insmod normal normal

This should bring up the familiar grub menu. Boot into Linux and fix the grub installation as below.

Code
grub2-install /dev/sda grub2-install /dev/sda

References



https://www.howtoforge.com/tutorial/repair-linux-boot-with-grub-rescue/