Thursday, January 19, 2012

Fedora 16 Linux D600 Clockspeed stuck at 600MHZ

Dell D600 laptop is reporting cpuMHz: 600MHz in /proc/cpuinfo. In order to set to appropriate speed(1600MHz) needed to:

- Install kernel-tools.
- nano /etc/sysconfig/cpupower and set both both options to performance.
- To set immediatly ran ' cpupower frequency-set -g performance'

Fan started spinning! 'cat /proc/cpuinfo' shows cpuMHz 1600!

Documentation and googling says something about 3rd Party power cords cause this and sometimes cpu gets stuck. System had been running slow at times when under load so not "ondemand" setting may have not been working.

Also,

Setting 'processor.ignore_ppc=1' as command line option on boot reduced fan spinup and allowed processor to set speed ondemand.

Notes/Acknowledgment:
"How Can I Disable CPUscaling In Fedora 16 - Post #3" - http://forums.fedoraforum.org/showthread.php?t=272109

"CPU Frequency Scaling In The Linux Kernel - CPU Throttled Down To 800 After 15-30 Mins" - http://comments.gmane.org/gmane.linux.kernel.cpufreq/6974

Wednesday, January 11, 2012

Resizing/Growing Encrypted BTRFS Root Partition

Installed Fedora 16 into 10GB KVM guest. Copied kvm img file to laptop with 110GB drive. Install created with 1MB BIOS boot partition, 500MB Grub boot (/boot) partition, 2GB encrypted swap partition and 10GB encrypted root (/) partition. Increased root partition with the following steps after install and 'yum update'.

- Booted livecd (Parted Magic, SystemRescueCD, etc).
- Used 'parted' to print partition table info. Noted Start location.
- Used 'parted' to delete partition. Ex. rm 4
- Used 'parted' to recreate partition. Set start to noted start location. Ex. 'mkpart 4 100%'
- Restarted system.
- Booted livecd again.
- Opened crypt with cryptsetup (cryptsetup luksOpen ). Crypt opened at /dev/mapper/ . Ex. 'cryptsetup luksOpen /dev/sda4 sda4'
- Resized crypt with cryptsetup (cryptsetup resize ). Crypt resized to 100% of partition space. Ex. 'cryptsetup resize sda4'
- Mounted BTRFS Filesystem (mount ). Ex.'mount /dev/mapper/sda4 /mnt/sda4'
- Resized BTRFS Filesystem (btrfs filesystem resize max ). Filesystem grew to size of crypt. Ex. 'btrfs filesystem resize max /mnt/sda4'
- Unmounted BTRFS Filesystem(umount ). Ex. 'umount /mnt/sda4'
- Closed crypt (cryptsetup luksClose ). Ex. 'cryptsetup luksClose sda4'
- Restarted system

The BTRFS partition resized to 100% of the free space.