Sunday, March 29, 2015

Default OS after Fedora installation


1.
grep menuentry /boot/grub2/grub.cfg
This will display all your grub entries

Highlight the entry you want to default to - for example Windows 7 (loader) (on /dev/sda1) Right click and choose copy

Type

2.
vi /etc/default/grub
Change the entry

GRUB_DEFAULT=0
to

GRUB_DEFAULT="Windows 7 (loader) (on /dev/sda1)"
i.e. paste the entry you want (including the quotes)

Save, then type

PS: Having this "Windows 7 (loader) (on /dev/sda1)" is enough.

2.
grub2-mkconfig -o /boot/grub2/grub.cfg

thats it and this worked for me.

Source: https://ask.fedoraproject.org/en/question/8885/how-can-i-change-default-operating-system-in-start-up-boot-menu/

Tuesday, March 17, 2015

32GB restriction on microsd cards

Why there is a restriction on smartphone saying that it support microsd of size upto 32 GB.

Because specs says so::

Currently, microSD cards have a maximum capacity of 32GB as this is a limitation imposed by version 2 of the SD Specifications: “High Capacity SD Memory Card: More than 2GB (This version of specification limits capacity up to and including 32GB)”.

console access to VM


On the virtual machine, add ‘console=ttyS0‘ at the end of the kernel lines in the /boot/grub2/grub.cfg file(by executing the following grubby command):

# grubby --update-kernel=ALL --args="console=ttyS0"
 
NOTE: ssh to VM (or) use virt-manager and run the
above command. 

Now, reboot the virtual machine:
# reboot

Now,

virsh create /etc/libvirt/qemu/YOUR_VM.xml

virsh list
// output
// say vm.example.com is the domain.

Now, connect to the virtual machine’s console (here vm.example.com):

# virsh console vm.example.com
(or)
#virsh console <ID number>