Raven: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
Brian Wilson (talk | contribs)
mNo edit summary
Line 6: Line 6:


Fall 2010 upgrade with RevoDrive 120GB SSD and 2TB Caviar Black
Fall 2010 upgrade with RevoDrive 120GB SSD and 2TB Caviar Black
2010 Nov 17 -- OH! Raven changed so MUCH today. 3 way boot setup; Windows 7 Ultimate, Ubuntu 10.10 Desktop, and Ubuntu 10.10 Server on SSD
Fall 2009 upgrade with Patriot 32GB SSD
Fall 2009 upgrade with Patriot 32GB SSD
Spring 2009 - initial build
Spring 2009 - initial build
Line 38: Line 41:
RevoDrive is at /dev/sda and /dev/sdb
RevoDrive is at /dev/sda and /dev/sdb


  /dev/md0 is the / partition
  /dev/md0 is the / partition for Ubuntu 10.10 Server; I used the Server edition and then added the desktop software, it was the easiest way to get it to install on a software RAID 0 configuration.
  /dev/md1 will be a RAW partition for a virtual machine.
 
  /dev/sdc (Velociraptor 300GB)
1 Windows 7 boot
2 Windows 7
3 /boot (cant boot directly to revodrive)
4 ext
5 swap
6 Ubuntu 10.10 Desktop edition


  /dev/sdc (Caviar Black)
  /dev/sdc (Caviar Black)
Line 47: Line 57:
  5 swap
  5 swap
  6 /home
  6 /home
/dev/sdd (Velociraptor 300GB)
1 /boot (cant boot directly to revodrive)
2 spare /
3 ext
5 swap
6 spare


<pre>
<pre>
root@raven:~# fdisk -l -u -c
root@raven:~# fdisk -l -u -c
Disk /dev/sda: 60.0 GB, 60022480896 bytes
Disk /dev/sda: 60.0 GB, 60022480896 bytes
81 heads, 63 sectors/track, 22973 cylinders, total 117231408 sectors
255 heads, 63 sectors/track, 7297 cylinders, total 117231408 sectors
Units = sectors of 1 * 512 = 512 bytes
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd1ef8767
Disk identifier: 0xee864337


   Device Boot      Start        End      Blocks  Id  System
   Device Boot      Start        End      Blocks  Id  System
/dev/sda1             63   76539896    38269917  fd Linux raid autodetect
/dev/sda1           2048  117226304   58612128+ fd  Linux raid autodetect
/dev/sda2        76539897  117231218    20345661  fd  Linux raid autodetect


Disk /dev/sdb: 60.0 GB, 60022480896 bytes
Disk /dev/sdb: 60.0 GB, 60022480896 bytes
81 heads, 63 sectors/track, 22973 cylinders, total 117231408 sectors
255 heads, 63 sectors/track, 7297 cylinders, total 117231408 sectors
Units = sectors of 1 * 512 = 512 bytes
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7877c50a
Disk identifier: 0x53634d5c


   Device Boot      Start        End      Blocks  Id  System
   Device Boot      Start        End      Blocks  Id  System
/dev/sdb1             63    76539896    38269917   fd  Linux raid autodetect
/dev/sdb1  *       2048   117226304   58612128+  fd  Linux raid autodetect
/dev/sdb2       76539897   117231218   20345661  fd  Linux raid autodetect


Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
Disk /dev/sdc: 300.1 GB, 300069052416 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
255 heads, 63 sectors/track, 36481 cylinders, total 586072368 sectors
Units = sectors of 1 * 512 = 512 bytes
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xabb5e669
Disk identifier: 0x00017b2c


   Device Boot      Start        End      Blocks  Id  System
   Device Boot      Start        End      Blocks  Id  System
/dev/sdc1           2048      417688     207820+ 83  Linux
/dev/sdc1   *        2048      206847     102400    7 HPFS/NTFS
/dev/sdc2          417689   67521193    33551752+  83  Linux
/dev/sdc2          206848  515123199  257458176   7  HPFS/NTFS
/dev/sdc3        67521194  3907024064  1919751435+   5  Extended
/dev/sdc3      515124225  516168449      522112+  83  Linux
/dev/sdc5       67523242   101097043    16786901   82  Linux swap / Solaris
/dev/sdc4      516168511   586067264    34949377    5  Extended
/dev/sdc6      101099092  3907024064  1902962486+  83  Linux
/dev/sdc5       516168513   532956374    8393931   82  Linux swap / Solaris
/dev/sdc6      532956438  586067264    26555413+  83  Linux


Disk /dev/sdd: 300.1 GB, 300069052416 bytes
Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 36481 cylinders, total 586072368 sectors
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00017b2c
Disk identifier: 0x00074249


   Device Boot      Start        End      Blocks  Id  System
   Device Boot      Start        End      Blocks  Id  System
/dev/sdd1   *        2048      976895     487424  83  Linux
/dev/sdd1           2048      417688     207820+  83  Linux
/dev/sdd2          976896   34531327   16777216  83  Linux
/dev/sdd2          417689   67521193   33551752+  83  Linux
/dev/sdd3        34531328  586072367  275770520   5  Extended
/dev/sdd3        67521194  3907029167  1919753987   5  Extended
/dev/sdd5        34533376    68087807   16777216   82  Linux swap / Solaris
/dev/sdd5        67523242  101097043   16786901   82  Linux swap / Solaris
/dev/sdd6       68089856  586072367  258991256   83  Linux
/dev/sdd6       101099092  3907029167  1902965038   83  Linux


Disk /dev/md1: 41.7 GB, 41667657728 bytes
Disk /dev/md0: 120.0 GB, 120037441536 bytes
2 heads, 4 sectors/track, 10172768 cylinders, total 81382144 sectors
2 heads, 4 sectors/track, 29306016 cylinders, total 234448128 sectors
Units = sectors of 1 * 512 = 512 bytes
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Line 115: Line 116:
Disk identifier: 0x00000000
Disk identifier: 0x00000000


Disk /dev/md0: 78.4 GB, 78376599552 bytes
2 heads, 4 sectors/track, 19134912 cylinders, total 153079296 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 131072 bytes
Disk identifier: 0x00000000
root@raven:~# blkid
/dev/sda1: UUID="4dd7605e-f27c-4021-1fc5-fe0e7751cfd7" TYPE="linux_raid_member"
/dev/sda2: UUID="a915d4f4-db70-972a-1fc5-fe0e7751cfd7" TYPE="linux_raid_member"
/dev/sdb1: UUID="4dd7605e-f27c-4021-1fc5-fe0e7751cfd7" TYPE="linux_raid_member"
/dev/sdb2: UUID="a915d4f4-db70-972a-1fc5-fe0e7751cfd7" TYPE="linux_raid_member"
/dev/sdc1: UUID="a6063880-62a8-41c2-a218-cdcf8830dc49" TYPE="ext4"
/dev/sdc2: UUID="d83391a1-a31d-4347-98f7-96f0b2c78e11" TYPE="ext4"
/dev/sdc5: UUID="897a3454-b8d6-403a-94b0-635cabaf7614" TYPE="swap"
/dev/sdc6: UUID="77db2d48-a11a-478a-ac18-066b9bddbfbc" TYPE="ext4"
/dev/sdd1: UUID="d6fe6d7b-e5fa-459c-9e52-12fb872f475d" TYPE="ext4"
/dev/sdd2: UUID="7d02b504-4d04-43f8-bd44-47f0b55158b6" TYPE="ext4"
/dev/sdd5: UUID="4f5ff582-91a7-44cd-a0ea-0d0f0fafcf3e" TYPE="swap"
/dev/sdd6: UUID="a092c2dd-b9e2-4512-beef-99e3d8bd46b9" TYPE="ext4"
/dev/md0: UUID="adb1c3df-06f0-452a-bf50-8692db605000" TYPE="ext2"
</pre>
</pre>


== The wild dance of Windows 7 ==
== The wild dance of Windows 7 ==


Okay. So I have to install Windows 7 natively because performance of ESRI ArcGIS 10 under VirtualBox totally sucks. To work under Windows the RevoDrive would have to be configured in a fake raid (BIOS) configuration making it unusable in Linux and defeating TRIM. So I can't use the RevoDrive in Windows.
It took 3 or 4 tries to get both Windows 7 and Ubuntu living happily on the same system. It was a wild dance.  


I installed Windows7 on the Raptor drive, now I need to get Linux going again.
Okay. So I have to install Windows 7 natively because performance of ESRI ArcGIS 10 under VirtualBox sucks. To work under Windows the RevoDrive would have to be configured in a fake raid (BIOS) configuration making it unusable in Linux and defeating TRIM. So I can't (won't) use the RevoDrive in Windows.


Linux will be given the entire RevoDrive.
Linux will be given the entire RevoDrive.


I can't get the damn Ubuntu USB stick to boot any more. So I download and install VirtualBox and an Ubuntu image in Windows 7. Then I use commands to access to raw partitions (which still have Linux installed but are no longer accessible due to the miracle of Windows.)
At some point the system stopped booting from my Linux USB stick. It keeps stopping with an error and leaving me at the initramfs prompt. It turned out I had to type 'exit' (twice) and then it would boot just fine.


'''I must run the command shell (cygwin bash) as Administrator to get access to the drives.'''
At another turn, someone (Windows 7 installer I think) overwrote the partition table on the 2.0 TB drive, effectively wiping my home partition. I was unhappy with this! When the operating systems were sorted out, I was VERY glad that I documented the partitions above, I was able to recreate the partition table and recover everything that I thought I had lost.
 
I tried using VirtualBox under Windows 7 to access raw partitions with limited success. Of note, '''I must run the command shell (cygwin bash) as Administrator to get access to the drives.'''


VBoxManage.exe internalcommands listpartitions -rawdisk '\\.\PhysicalDrive0'
VBoxManage.exe internalcommands listpartitions -rawdisk '\\.\PhysicalDrive0'


gives appropriate results. So I press on.
gives appropriate results (no sharing errors.)


  $ /cygdrive/c/Program\ Files/Oracle/VirtualBox/VBoxManage.exe internalcommands createrawvmdk -filename RawDisk0.vmdk -rawdisk '\\.\PhysicalDrive0'
  $ /cygdrive/c/Program\ Files/Oracle/VirtualBox/VBoxManage.exe internalcommands createrawvmdk -filename RawDisk0.vmdk -rawdisk '\\.\PhysicalDrive0'
Line 161: Line 142:
  RAW host disk access VMDK file RawDisk0.vmdk created successfully.
  RAW host disk access VMDK file RawDisk0.vmdk created successfully.


This gives me access to the raw partitions from a VirtualBox machine, in theory I can boot them directly. I can add the raw partitions to an existing Ubuntu machine to examine them. '''I have to run VirtualBox as Administrator.'''
Note also you have to run VirtualBox as Administrator too to use raw partitions.
 
It also took me many long hours of booting and adjusting settings in the Linux grub configuration trying to get the RevoDrive to work as / partition until I gave up and installed Ubuntu Server and it worked on first try.


I add the raw disk partitions via the Virtual Media Manager, then add the vmdk to the virtual machine Storage settings and start it. The drive is visible as /dev/sdb now. Ta-da!
Once again all is well in Linuxtown, for now...

Revision as of 05:07, 18 November 2010


Raven is a desktop computer.

History

Fall 2010 upgrade with RevoDrive 120GB SSD and 2TB Caviar Black

2010 Nov 17 -- OH! Raven changed so MUCH today. 3 way boot setup; Windows 7 Ultimate, Ubuntu 10.10 Desktop, and Ubuntu 10.10 Server on SSD

Fall 2009 upgrade with Patriot 32GB SSD Spring 2009 - initial build

Hardware

  • Shuttle SX48P2 Deluxe case and motherboard
  • Intel Core 2 Duo CPU E8500 @ 3.16GHz
  • 8GB DDR3 1066 memory

Drives

  • WD Velociraptor 300, WDC WD3000HLFS-01G6U3, FwRev=04.04V05, s/n WD-WXL608035725

(which replaced this one that died under warranty WD Raptor 10K RPM SATA, WDC WD3000HLFS-01G6U0, s/n WD-WXLY08084357)

  • OCZ REVODRIVE 120GB, FwRev=1.20, s/n OCZ-GYY134R2861260WR Nov 2010
  • Caviar Black 2TB, WDC WD2001FASS-00W2B0, FwRev=05.01D05, s/n WD-WMAY00310595 Nov 2010

I used to use this, it's not installed anywhere right now.

  • Patriot "Warp V2" 32 GB SSD, SATA I/II, 2.5" s/n MK050943085B30039 Fall 2009

The case includes a fingerprint scanner, bluetooth and a wifi card. I pulled the wifi card (which has a USB interface) and use it somewhere else now.

Software

It is currently running 10.10 Ubuntu.
I often use it to run VirtualBox so that I can use ESRI ArcGIS.

Drive configuration

See also SSD optimizations

RevoDrive is at /dev/sda and /dev/sdb

/dev/md0 is the / partition for Ubuntu 10.10 Server; I used the Server edition and then added the desktop software, it was the easiest way to get it to install on a software RAID 0 configuration.
/dev/sdc (Velociraptor 300GB)
1 Windows 7 boot
2 Windows 7
3 /boot (cant boot directly to revodrive)
4 ext
5 swap
6 Ubuntu 10.10 Desktop edition
/dev/sdc (Caviar Black)
1 spare /boot
2 spare /
3 ext
5 swap
6 /home
root@raven:~# fdisk -l -u -c
Disk /dev/sda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders, total 117231408 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xee864337

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048   117226304    58612128+  fd  Linux raid autodetect

Disk /dev/sdb: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders, total 117231408 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x53634d5c

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048   117226304    58612128+  fd  Linux raid autodetect

Disk /dev/sdc: 300.1 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders, total 586072368 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00017b2c

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *        2048      206847      102400    7  HPFS/NTFS
/dev/sdc2          206848   515123199   257458176    7  HPFS/NTFS
/dev/sdc3       515124225   516168449      522112+  83  Linux
/dev/sdc4       516168511   586067264    34949377    5  Extended
/dev/sdc5       516168513   532956374     8393931   82  Linux swap / Solaris
/dev/sdc6       532956438   586067264    26555413+  83  Linux

Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00074249

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1            2048      417688      207820+  83  Linux
/dev/sdd2          417689    67521193    33551752+  83  Linux
/dev/sdd3        67521194  3907029167  1919753987    5  Extended
/dev/sdd5        67523242   101097043    16786901   82  Linux swap / Solaris
/dev/sdd6       101099092  3907029167  1902965038   83  Linux

Disk /dev/md0: 120.0 GB, 120037441536 bytes
2 heads, 4 sectors/track, 29306016 cylinders, total 234448128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 131072 bytes
Disk identifier: 0x00000000

The wild dance of Windows 7

It took 3 or 4 tries to get both Windows 7 and Ubuntu living happily on the same system. It was a wild dance.

Okay. So I have to install Windows 7 natively because performance of ESRI ArcGIS 10 under VirtualBox sucks. To work under Windows the RevoDrive would have to be configured in a fake raid (BIOS) configuration making it unusable in Linux and defeating TRIM. So I can't (won't) use the RevoDrive in Windows.

Linux will be given the entire RevoDrive.

At some point the system stopped booting from my Linux USB stick. It keeps stopping with an error and leaving me at the initramfs prompt. It turned out I had to type 'exit' (twice) and then it would boot just fine.

At another turn, someone (Windows 7 installer I think) overwrote the partition table on the 2.0 TB drive, effectively wiping my home partition. I was unhappy with this! When the operating systems were sorted out, I was VERY glad that I documented the partitions above, I was able to recreate the partition table and recover everything that I thought I had lost.

I tried using VirtualBox under Windows 7 to access raw partitions with limited success. Of note, I must run the command shell (cygwin bash) as Administrator to get access to the drives.

VBoxManage.exe internalcommands listpartitions -rawdisk '\\.\PhysicalDrive0'

gives appropriate results (no sharing errors.)

$ /cygdrive/c/Program\ Files/Oracle/VirtualBox/VBoxManage.exe internalcommands createrawvmdk -filename RawDisk0.vmdk -rawdisk '\\.\PhysicalDrive0'
Oracle VM VirtualBox Command Line Management Interface Version 3.2.10 (C) 2005-2010 Oracle Corporation
All rights reserved.

RAW host disk access VMDK file RawDisk0.vmdk created successfully.

Note also you have to run VirtualBox as Administrator too to use raw partitions.

It also took me many long hours of booting and adjusting settings in the Linux grub configuration trying to get the RevoDrive to work as / partition until I gave up and installed Ubuntu Server and it worked on first try.

Once again all is well in Linuxtown, for now...