Ask Your Question

zimon's profile - activity

2016-09-08 07:03:20 -0600 received badge  Famous Question (source)
2016-08-25 19:17:19 -0600 received badge  Taxonomist
2015-12-04 13:14:02 -0600 received badge  Popular Question (source)
2015-12-04 13:14:02 -0600 received badge  Notable Question (source)
2015-09-22 11:57:03 -0600 commented answer Howto rescue Fedora 22 LXDE x86_64 system with LUKS with corrupt boot sector?

After upgrading new kernel and rebooting, the system still asks LUKS password in GRUB stage and won't show the menu. So needed to remove "GRUB_ENABLE_CRYPTOSYSTEM=y" from /etc/default/grub and then

grub2-install --no-floppy --recheck /dev/sda
grub2-mkconfig -o /boot/grub2/grub.cfg

Now it shows Grub menu nicely when rebooted. I cannot guess why when fixing it in chroot environment it needed that GRUB_ENABLE_CRYPTOSYSTEM then.

2015-09-21 10:25:10 -0600 received badge  Good Answer (source)
2015-09-21 10:24:55 -0600 received badge  Good Question (source)
2015-09-20 04:44:37 -0600 received badge  Scholar (source)
2015-09-19 21:24:49 -0600 received badge  Nice Answer (source)
2015-09-19 20:10:18 -0600 received badge  Teacher (source)
2015-09-19 20:10:18 -0600 received badge  Self-Learner (source)
2015-09-19 17:14:32 -0600 answered a question Howto rescue Fedora 22 LXDE x86_64 system with LUKS with corrupt boot sector?

What I did to get the F22 system booted:

Boot with USB-stick, which had F22 LXDE Live. Open Command Window.

su -
fdisk -l /dev/sda
# Noticed the LUKS partition was /dev/sda6 and /boot partition /dev/sda1
cryptsetup luksOpen /dev/sda6 fedora
password: <gave the LUKS password>
mkdir /mnt/root
mount /dev/mapper/fedora_hostname-root /mnt/root
mount /dev/sda1 /mnt/root/boot/
mount -o bind /dev /mnt/root/dev
mount -o bind /proc /mnt/root/proc
mount -o bind /sys /mnt/root/sys
mount -o bind /run /mnt/root/run
chroot /mnt/root
grub2-install --no-floppy --recheck /dev/sda
# Complained, there should be GRUB_ENABLE_CRYPTOSYSTEM=y in /etc/default/grub
echo "GRUB_ENABLE_CRYPTOSYSTEM=y" >>/etc/default/grub
grub2-install --no-floppy --recheck /dev/sda
grub2-mkconfig -o /boot/grub2/grub.cfg
exit
/sbin/shutdown -r now
# Booted (But not to the Fedora system, but just to Grub prompt.)
# Asked LUKS password already in this stage.
# Went to the GRUB2 normal prompt. (not just Grub2 rescue prompt anymore)
grub> ls
# shows also LVM partitions inside LUKS-partition
set root=(hd0,msdos1)
configfile /grub2/grub.cfg

Now I got the normal Grub boot menu, where also were Linux kernels, Linux-rescue kernel and Windows 7.

2015-09-19 17:14:22 -0600 commented answer Howto rescue Fedora 22 LXDE x86_64 system with LUKS with corrupt boot sector?

Thanks. Those helped. I've fiddled with Grub and Grub2 and ALOT with Grub-EFI before, but it seems always a fresh new ball game when something goes broken.

Also, before Fedora used LUKS so first was LVM and undernearth were possible LUKS-partitions. Now it was one big LUKS-partition and under that were LVM-system.

2015-09-19 17:14:15 -0600 commented question Howto rescue Fedora 22 LXDE x86_64 system with LUKS with corrupt boot sector?

Yes. It was an empty SSD (500G). II only intended to have and use Linux in it. But just in case, I had reserved 50 GB partition if I ever need to install something else. Then later, I wanted to upgrade RAM to this laptop, and because of that BIOS needed to be upgraded and HP provided only an .exe program which needed Windows underneath, so I then installed Windows. Yes, stupid me not to preserve MBR before that. I wrongly assumed Fedora22 install media would know how to rescue the system.

2015-09-19 14:56:28 -0600 received badge  Supporter (source)
2015-09-18 14:49:14 -0600 received badge  Nice Question (source)
2015-09-18 13:17:50 -0600 asked a question Howto rescue Fedora 22 LXDE x86_64 system with LUKS with corrupt boot sector?

The PC has Fedora 22 LXDE x86_64 installed from F22 LXDE Live usb-stick. The system was installed with LUKS encryption enabled. Otherwise the installation was automatic by the LXDE Live system install.

Needed to upgrade BIOS. Only way to do it was from Windows. Windows was now installed on extra partition. It overwrote MBR.

After this only Windows 7 boot.

How to rescue the Fedora 22 LXDE system now?

Booting with the install media, F22 LXDE Live-usb stick doesn't seem to have any rescue mode or selection.

Doing just "grub2-install /dev/sda" on the Live-usb system does not rescue the F22 system on the local hard drive. Now when booted from the hard drive: ". error: no such device: 05xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. Entering rescue mode... grub rescue>"

I thought the install media, in this case F22 LXDE x86_64 Live usb-stick, would have tools and methods to easily rescue installs. It should have.

The /dev/sda1 has /boot (ext2) the /dev/sda6 has swap and /, but it is with LVM and LUKS-encryption. The system does not use UEFI.

2015-03-16 03:04:38 -0600 received badge  Popular Question (source)
2015-03-16 03:04:38 -0600 received badge  Famous Question (source)
2015-03-16 03:04:38 -0600 received badge  Notable Question (source)
2014-08-30 05:49:11 -0600 commented answer How to use Bluetooth networking now when pand is removed in Fedora 20?
2014-08-29 05:20:44 -0600 commented answer How to use Bluetooth networking now when pand is removed in Fedora 20?

Actually both have stopped working when upgraded from Fedora 19 to Fedora 20. Bluetooth tethering to a phone and bluetooth tethering from a phone. So Fedora PC acting either as a GN/NAP server or as PANU. http://bluez.sourceforge.net/contrib/HOWTO-PAN Even network-manager lets to try a Bluetooth network connection (Fedora as PANU) to an Android device where Bluetooth tethering is enabled, but it fails. But the other way around is what I am missing most. Using Android tablet (PANU) and phone (PANU) at home via using fast Internet on a Fedora PC (NAP).

2014-08-28 10:59:24 -0600 received badge  Nice Question (source)
2014-08-28 10:54:39 -0600 received badge  Student (source)
2014-08-28 04:58:44 -0600 asked a question How to use Bluetooth networking now when pand is removed in Fedora 20?

Seems like in Fedora 20 there is no longer pand available. Fedora 20 started to use Bluez 5.x and either they are not interested to support Bluetooth networking, or Fedora just ignored the whole functionality (QA?).

How to get Bluetooth networking working now in F20? http://bluez.sourceforge.net/contrib/HOWTO-PAN http://forums.fedoraforum.org/showthread.php?t=241300

no bluez-pand.rpm, no bluez-compat.rpm /sbin/pand used to be in bluez-compat.rpm http://www.rpmfind.net/linux/RPM/fedora/19/x86_64/b/bluez-compat-4.101-6.fc19.x86_64.html