SilverWav's Journal

The best is yet to come…

Archive for May 2011

Notes – Full Info On Your SATA drive – hdparm -I /dev/sdb

leave a comment »

sudo hdparm -I /dev/sdb

/dev/sdb:

ATA device, with non-removable media
	Model Number:       WDC WD5000AAKS-22TMA0                   
	Serial Number:      WD-WCAPW2780866
	Firmware Revision:  12.01C01
Standards:
	Supported: 7 6 5 4 
	Likely used: 8
Configuration:
	Logical		max	current
	cylinders	16383	16383
	heads		16	16
	sectors/track	63	63
	--
	CHS current addressable sectors:   16514064
	LBA    user addressable sectors:  268435455
	LBA48  user addressable sectors:  976773168
	Logical/Physical Sector size:           512 bytes
	device size with M = 1024*1024:      476940 MBytes
	device size with M = 1000*1000:      500107 MBytes (500 GB)
	cache/buffer size  = 16384 KBytes
Capabilities:
	LBA, IORDY(can be disabled)
	Queue depth: 32
	Standby timer values: spec'd by Standard, with device specific minimum
	R/W multiple sector transfer: Max = 16	Current = 16
	Recommended acoustic management value: 128, current value: 254
	DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 
	     Cycle time: min=120ns recommended=120ns
	PIO: pio0 pio1 pio2 pio3 pio4 
	     Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
	Enabled	Supported:
	   *	SMART feature set
	    	Security Mode feature set
	   *	Power Management feature set
	   *	Write cache
	   *	Look-ahead
	   *	Host Protected Area feature set
	   *	WRITE_BUFFER command
	   *	READ_BUFFER command
	   *	NOP cmd
	   *	DOWNLOAD_MICROCODE
	    	Power-Up In Standby feature set
	   *	SET_FEATURES required to spinup after power up
	    	SET_MAX security extension
	    	Automatic Acoustic Management feature set
	   *	48-bit Address feature set
	   *	Device Configuration Overlay feature set
	   *	Mandatory FLUSH_CACHE
	   *	FLUSH_CACHE_EXT
	   *	SMART error logging
	   *	SMART self-test
	   *	General Purpose Logging feature set
	   *	64-bit World wide name
	   *	Segmented DOWNLOAD_MICROCODE
	   *	Gen1 signaling speed (1.5Gb/s)
	   *	Gen2 signaling speed (3.0Gb/s)
	   *	Native Command Queueing (NCQ)
	   *	Host-initiated interface power management
	   *	Phy event counters
	   *	DMA Setup Auto-Activate optimization
	   *	Software settings preservation
	   *	SMART Command Transport (SCT) feature set
	   *	SCT Long Sector Access (AC1)
	   *	SCT LBA Segment Access (AC2)
	   *	SCT Error Recovery Control (AC3)
	   *	SCT Features Control (AC4)
	   *	SCT Data Tables (AC5)
	    	unknown 206[12] (vendor specific)
	    	unknown 206[13] (vendor specific)
Security: 
	Master password revision code = 65534
		supported
	not	enabled
	not	locked
	not	frozen
	not	expired: security count
	not	supported: enhanced erase
	128min for SECURITY ERASE UNIT. 
Logical Unit WWN Device Identifier: 50014ee100313fda
	NAA		: 5
	IEEE OUI	: 0014ee
	Unique ID	: 100313fda
Checksum: correct

Written by SilverWav

May 30, 2011 at 10:47 pm

Posted in Notes

Tagged with , , ,

Fix Ubuntu Boot After Windows Install – Reinstall Grub In 5min – 11.04 Natty

with 2 comments

The Quick Answer:

[Update: you may want to take a look at this first]

For version 1.99 (Ubuntu 11.04):

At a terminal in a LiveCD Desktop.

sudo grub-install --boot-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444/boot /dev/sda

Warning! This will not be the correct information for your PC!

You will need to replace ‘0d104aff-ec8c-44c8-b811-92b993823444’ and possibly ‘/dev/sda’ see below for details:

________________________________________

Overwriting the Master Boot Record

Note: The existing MBR will be lost. In order to dual-boot your computer, we will be creating a new Master Boot Record to include all operating systems, including Ubuntu Linux and Microsoft Windows.

1. Download the latest version of Ubuntu Desktop edition from http://www.ubuntu.com/GetUbuntu/download and burn your Ubuntu CD.

2. Reboot your computer and boot into a live session.

________________________________________

Find your Ubuntu boot partition

You need to mount the partition with the ‘/boot’ folder in it.

1. Mount your Ubuntu partition from the Places menu.
Open “Home” and click an unmounted partition from the bar to the left.

2. As an example: I clicked on a 16G partition to mount it, then I went into the boot/grub directory to check for grub.cfg

________________________________________

Note the partition details.

Run this command:

mount | tail -1

You should see output similar to this:

/dev/sda2 on /media/0d104aff-ec8c-44c8-b811-92b993823444 type ext4 (rw,nosuid,nodev,uhelper=devkit)

Note the designation for the disk /dev/sda which you will be using later, and the directory in /media.

Hint: Use Tab Completion in Terminal to complete the path.
This automatically finishes file names, directory locations, and other long or hard to type file names.

________________________________________

Verify that your partition is the Ubuntu boot partition.

Run this command:

ls /media/0d104aff-ec8c-44c8-b811-92b993823444/boot

or

ls /media/0d104aff-ec8c-44c8-b811-92b993823444

But substitute the example’s UUID, 0d104aff-ec8c-44c8-b811-92b993823444, with your volume’s UUID which you found earlier.

In either case, the output should be something like this:

abi-2.6.38-8-generic         memtest86+_multiboot.bin
config-2.6.38-8-generic      System.map-2.6.38-8-generic
grub                         vmcoreinfo-2.6.38-8-generic
initrd.img-2.6.38-8-generic  vmlinuz-2.6.38-8-generic
memtest86+.bin

If what you have is not similar, unmount it and try another partition.

________________________________________

Reinstall GRUB

Now that everything is mounted, we just need to reinstall GRUB by specifying the correct directory and the correct drive name:

For version 1.99 (Ubuntu 11.04):

sudo grub-install --boot-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444/boot /dev/sda

If you get BIOS warnings try:

sudo grub-install --boot-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444/boot /dev/sda --recheck

Warning: 

Substitute /dev/sda with the location you want to install GRUB on.

Substitute the example’s UUID, 0d104aff-ec8c-44c8-b811-92b993823444, with your volume’s UUID which you found earlier

If all went well, you should see something like this:

“Installation finished. No error reported”

________________________________________

Reboot and Test

Reboot, making sure to boot to your hard drive and not to the live CD.

Grub should be installed and both Ubuntu and Windows should have been automatically detected and listed in the menu.

The Master Boot Record will execute Grub as the initial boot-loader.

The Windows boot-loader is contained within the Windows partition and will then be chain-loaded by the Grub boot-loader.

If your GRUB Boot Menu is out of date, run this command:

sudo update-grub

________________________________________

Notes:

Prior to version 1.99:

sudo grub-install --root-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444 /dev/sda

If you get BIOS warnings try:

sudo grub-install --root-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444 /dev/sda --recheck

Warning: 

Substitute /dev/sda with the location you want to install GRUB on.

Substitute the example’s UUID, 0d104aff-ec8c-44c8-b811-92b993823444, with your volume’s UUID which you found earlier

________________________________________

Based on RecoveringUbuntuAfterInstallingWindows.

Written by SilverWav

May 28, 2011 at 11:01 am

11.04 Natty – Panel Indicators

leave a comment »

Panel Indicators
Start via Alt + F2 “AppName” and enter.

Pastie
sudo add-apt-repository ppa:hel-sheep/pastie
sudo apt-get update
sudo apt-get install pastie

Weather Indicator (Memory Leak!)
sudo add-apt-repository ppa:weather-indicator-team/ppa
sudo apt-get update
sudo apt-get install indicator-weather

Indicator Workspaces
sudo add-apt-repository ppa:geod/ppa-geod
sudo apt-get update
sudo apt-get install indicator-workspaces

Indicator Multiload Bug #751409 (Memory Leak!)
sudo add-apt-repository ppa:indicator-multiload/stable-daily
sudo apt-get update
sudo apt-get install indicator-multiload

Indicator Syspeek
sudo add-apt-repository ppa:vicox/syspeek
sudo apt-get update
sudo apt-get install syspeek

Written by SilverWav

May 10, 2011 at 6:38 pm

11.04 Natty – Enable Parcellite In System Tray

leave a comment »

[Update]Note: I’m going with ClipIt in place of Parcellite.

sudo apt-get install parcellite

sudo apt-get install dconf-tools

Press Alt + F2 and type ‘dconf-editor’ go to:

com.canonical.Unity.Panel

Change:

systray-whitelist

Add:

, 'parcellite'

Log out and log back in for the changes to take effect.

Written by SilverWav

May 8, 2011 at 5:11 pm

11.04 Natty – Show The Month, Date & Locations In The Indicator

with 2 comments

Update:

Click on the clock and choose “Time & Date Settings” → “Clock”.

Thanks to Matthew Paul Thomas for the comment.

___

Old:

sudo apt-get install dconf-tools

Press Alt + F2 and type 'dconf-editor'.

com.canonical.indicator.datetime

show-day
show-date
show-locations

Written by SilverWav

May 8, 2011 at 4:48 pm

Posted in Notes

Tagged with , , , ,

11.04 Natty – Mouse & Keyboard Tips

leave a comment »

Keyboard Shortcuts

Launcher

  • Hold Super – Invoke the Launcher.
  • Hold Super, then 1 or 2 or 3 and so on until 0– Open or focus an application. The number corresponds to the location of the icon on the launcher from top to bottom.
    • Adding Shift will open a new instance of the application if it’s already open.
    • Holding the key is also useful when you want to get to the Launcher but do not want to invoke the Dash.
  • SuperT – Open the rubbish bin/trash can.
  • AltF1 – Put keyboard focus on the Launcher, use arrow keys to navigate, Enter launches an application, Right arrow exposes the quicklists if an application has them.
  • CtrlAltT – Launch a terminal window.
  • SuperA – Open Applications place
  • SuperF – Open Files & Folders place

Dash

  • Tap Super – Opens the Dash
  • AltF2 – Invoke the Dash in a “special mode” to run a command. Typing in a Folder Name will find that folder in Nautilus, you can also use ~ as a shortcut in the field.
  • The Dash opens with focus on the search box to find applications and files. Using the arrow keys will navigate the results, use Enter to launch.

Panel

  • F10– Open the first menu on the panel, use the arrows keys to “scrub” across the menus. (There is no shortcut for the session menu, so hitting F10 and left arrow is a quick way to get there)
    • Press Esc to close the menus without choosing anything.

Window Management

  • SuperW – Spread mode, zoom out on all windows in all workspaces.
  • SuperD – Minimize all windows; hitting it again restores them.

Window Placement

If you cycle through the same key Unity will cycle through different placement widths, so experiment by hitting the numkey multiple times, for example Ctrl-Alt-numpad 5 5 5:

  • CtrlAltNumpad 7 – Place window in top left corner of screen.
  • CtrlAltNumpad 8 – Place window in top half of screen.
  • CtrlAltNumpad 9 – Place window in top right corner of screen.
  • CtrlAltNumpad 4 – Place window on the left side of the screen.
  • CtrlAltNumpad 5 – Center/Maximize the window in the middle of the screen.
  • CtrlAltNumpad 6 – Place window on the right side of the screen.
  • CtrlAltNumpad 1 – Place window in the bottom left corner of the screen.
  • CtrlAltNumpad 2 – Place window in the bottom half of the screen.
  • CtrlAltNumpad 3 – Place window in the bottom right corner of the screen.
  • CtrlAltNumpad 0 – Maximize window.

Workspace Management

  • SuperS – Expo mode (for everything), zooms out on all the workspaces and lets you manage windows.
  • ShiftAlt – Expo mode for all windows in the current workspace only.
  • CtrlAlt / / / – Change to a new workspace.
  • CtrlAltShift / / / – Place window to a new workspace.
  • CtrlAltL – Lock the screen.

Screenshots

  • PrtScn – Take a screenshot of the current workspace
  • AltPrtScn – Take a screenshot of the current window

Mouse Tricks

Launcher

  • Clicking and holding an icon and then dragging it around will allow you to reorder it on the launcher. You can also drag it off to the right of the launcher to move it around. Note that you need to make an explicit movement to the right to move the icon off the launcher before you can move it around.
  • Dragging and Dropping an icon into the trash can will remove it from the Launcher. The program itself will remain installed and accessible through the dash.
  • Scrolling the mouse wheel while over the Launcher scrolls the icons if you have too many and need to move around quickly.

Window Management

  • Maximizing – Dragging a window to the top panel will maximize it.
  • Restore – There are two ways to restore, or unmaximize, the topmost maximized window of the current monitor for this workspace (not using the window controls)
    • Double clicking on the top panel (but not in the application’s menu)
    • Dragging the top panel down.
  • Middle click on Maximize – Maximize Window Vertically.
  • Right click on Maximize – Maximize Window Horizontally
  • Focus the topmost maximized window of the current monitor for this workspace: Left click on the top panel (but not in the application’s menu)
  • Cycle between maximized windows of the current monitor for this workspace: Middle click on the top panel (but not in the application’s menu)
  • Tiling – Dragging a Window to the left/right border will auto tile it to that side of the screen.
  • Middle click on an application’s launcher icon – Open a new instance of the application in a new window. If the application isn’t running it will just open it normally.
  • Middle click on the top panel (but not the menu) – send the current window behind all other windows.
From: askubuntu.
Licensed: under cc-wiki with attribution required.

Written by SilverWav

May 8, 2011 at 1:43 pm

Posted in Notes

Tagged with , , , ,

11.04 Natty – VirtualBox 4.0 – Add Oracle Repository

with one comment

gksudo gedit /etc/apt/sources.list

Add:

deb http://download.virtualbox.org/virtualbox/debian natty contrib

Then:

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

Update and Install:

sudo apt-get update && sudo apt-get install virtualbox-4.0

VirtualBox 4.0.6 Oracle VM VirtualBox Extension Pack All platforms

Written by SilverWav

May 8, 2011 at 9:29 am

Posted in Notes

Tagged with , , ,