Gigabyte F2A85XM-HD3 - Xubuntu

Hardware info on main page.

The machine runs xxx of Xubuntu.

The first sata hard drive (ad4) is sliced up as follows:

 slice 1 - 116 GB - a FreeBSD install - RELENG_7 - currently 7.4-stable
 slice 2 - 116 GB - a FreeBSD install - RELENG_8 - currently 8.4-stable
 slice 3 - 112 GB - NetBSD (currently 6.1.2)
 slice 4 - 121 GB - Xubuntu (currently 10.04.4)

Because of Xubuntu, grub is used as the main bootloader.

Work log

2013-11-18: sda5 - try to mount a FreeBSD ufs partition. identify:

tingo@kg-v2:~/work/v2$ sudo fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8f8000b1

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       15273   122680341   a5  FreeBSD
/dev/sda2           15274       30415   121628115   a5  FreeBSD
/dev/sda3           30416       45306   119611957+  a9  NetBSD
/dev/sda4           45307       60801   124463587+   5  Extended
/dev/sda5           45307       60166   119362918+  83  Linux
/dev/sda6           60167       60801     5100606   82  Linux swap / Solaris

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/sdb doesn't contain a valid partition table

I want sda2, but I want a bsd subpartition:

tingo@kg-v2:~/work/v2$ dmesg | grep sda | grep bsd
[    1.820834]  sda1: <bsd: sda7 sda8 sda9 sda10 sda11 >
[    1.829655]  sda2: <bsd: sda12 sda13 sda14 sda15 >
[    1.845458]  sda3: <netbsd:bad subpartition - ignored

So, sda12, sda13, sda14 or sda15. Try sda12 first:

tingo@kg-v2:~/work/v2$ sudo mount -r -t ufs -o ufstype=ufs2 /dev/sda12 /mnt

check:

tingo@kg-v2:~/work/v2$ l /mnt/etc/ssh
./      ssh_config        ssh_host_dsa_key.pub    ssh_host_key      ssh_host_rsa_key.pub
../     sshd_config       ssh_host_ecdsa_key      ssh_host_key.pub
moduli  ssh_host_dsa_key  ssh_host_ecdsa_key.pub  ssh_host_rsa_key

Yep, that's it. Fixing ssh keys: move the original ones out of the way:

tingo@kg-v2:~/work/v2$ sudo su -
root@kg-v2:~# cd /etc/ssh
root@kg-v2:/etc/ssh# mkdir org
root@kg-v2:/etc/ssh# mv *key* ./org

copy in the BSD ones:

root@kg-v2:/etc/ssh# cp -pv /mnt/etc/ssh/ssh_host_dsa* .
`/mnt/etc/ssh/ssh_host_dsa_key' -> `./ssh_host_dsa_key'
`/mnt/etc/ssh/ssh_host_dsa_key.pub' -> `./ssh_host_dsa_key.pub'
root@kg-v2:/etc/ssh# cp -pv /mnt/etc/ssh/ssh_host_rsa* .
`/mnt/etc/ssh/ssh_host_rsa_key' -> `./ssh_host_rsa_key'
`/mnt/etc/ssh/ssh_host_rsa_key.pub' -> `./ssh_host_rsa_key.pub'

done. Restart machine and check. Yes, it works. Good.

2013-11-18: sda5 - usb card reader: I verified that the card reader works. Here are relevant lines from /var/log/messages:

Nov 18 20:51:18 kg-v2 kernel: [ 1006.670879] sd 2:0:0:1: [sdd] 7829504 512-byte logical blocks: (4.00 GB/3.73 GiB)
Nov 18 20:51:18 kg-v2 kernel: [ 1006.674235]  sdd: sdd1
Nov 18 20:51:56 kg-v2 kernel: [ 1044.508641] sd 2:0:0:1: [sdd] 15759360 512-byte logical blocks: (8.06 GB/7.51 GiB)
Nov 18 20:51:56 kg-v2 kernel: [ 1044.511996]  sdd: sdd1
Nov 18 20:52:28 kg-v2 kernel: [ 1076.874950] sd 2:0:0:0: [sdc] 7806960 512-byte logical blocks: (3.99 GB/3.72 GiB)
Nov 18 20:52:28 kg-v2 kernel: [ 1076.880311]  sdc: sdc1

(first two SD cards, then a CF card).

2013-11-18: sda5 - upgraded to Xubuntu 10.04.4 LTS via update-manager. dmesg output:

tingo@kg-v2:~/work/v2$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 10.04.4 LTS
Release:    10.04
Codename:    lucid
tingo@kg-v2:~/work/v2$ uname -a
Linux kg-v2 2.6.32-53-generic #115-Ubuntu SMP Wed Oct 23 07:40:14 UTC 2013 x86_64 GNU/Linux

disk and swap info:

tingo@kg-v2:~/work/v2$ df -h;swapon -sh
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5             113G  5.6G  101G   6% /
none                  2.0G  340K  2.0G   1% /dev
none                  2.0G  124K  2.0G   1% /dev/shm
none                  2.0G   88K  2.0G   1% /var/run
none                  2.0G     0  2.0G   0% /var/lock
none                  2.0G     0  2.0G   0% /lib/init/rw
none                  113G  5.6G  101G   6% /var/lib/ureadahead/debugfs
Filename                Type        Size    Used    Priority
/dev/sda6                               partition    5100596    0    -1

pci info

tingo@kg-v2:~/work/v2$ lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] Device 1410
00:00.2 Generic system peripheral [0806]: Advanced Micro Devices [AMD] Device 1419
00:02.0 PCI bridge: Advanced Micro Devices [AMD] Device 1412
00:04.0 PCI bridge: Advanced Micro Devices [AMD] Device 1414
00:10.0 USB Controller: Advanced Micro Devices [AMD] Device 7812 (rev 03)
00:10.1 USB Controller: Advanced Micro Devices [AMD] Device 7812 (rev 03)
00:11.0 SATA controller: Advanced Micro Devices [AMD] Device 7801 (rev 40)
00:12.0 USB Controller: Advanced Micro Devices [AMD] Device 7807 (rev 11)
00:12.2 USB Controller: Advanced Micro Devices [AMD] Device 7808 (rev 11)
00:13.0 USB Controller: Advanced Micro Devices [AMD] Device 7807 (rev 11)
00:13.2 USB Controller: Advanced Micro Devices [AMD] Device 7808 (rev 11)
00:14.0 SMBus: Advanced Micro Devices [AMD] Device 780b (rev 14)
00:14.2 Audio device: Advanced Micro Devices [AMD] Device 780d (rev 01)
00:14.3 ISA bridge: Advanced Micro Devices [AMD] Device 780e (rev 11)
00:14.4 PCI bridge: Advanced Micro Devices [AMD] Device 780f (rev 40)
00:14.5 USB Controller: Advanced Micro Devices [AMD] Device 7809 (rev 11)
00:18.0 Host bridge: Advanced Micro Devices [AMD] Device 1400
00:18.1 Host bridge: Advanced Micro Devices [AMD] Device 1401
00:18.2 Host bridge: Advanced Micro Devices [AMD] Device 1402
00:18.3 Host bridge: Advanced Micro Devices [AMD] Device 1403
00:18.4 Host bridge: Advanced Micro Devices [AMD] Device 1404
00:18.5 Host bridge: Advanced Micro Devices [AMD] Device 1405
01:00.0 VGA compatible controller: nVidia Corporation G86 [GeForce 8500 GT] (rev a1)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)

usb info

tingo@kg-v2:~/work/v2$ lsusb
Bus 007 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0a81:0205 Chesen Electronics Corp. PS/2 Keyboard+Mouse Adapter
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 076b:3021 OmniKey AG CardMan 3121
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0bda:0111 Realtek Semiconductor Corp. Card Reader
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

xrandr info:

tingo@kg-v2:~/work/v2$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 1920 x 1920
VGA1 disconnected
DVI0 disconnected
VGA2 connected 1920x1080+0+0 531mm x 298mm
   1920x1080      60.0*+   60.0 
   1680x1050      60.0 
   1600x900       60.0 
   1280x1024      75.0     60.0 
   1280x800       59.8 
   1152x864       75.0 
   1280x720       60.0 
   1024x768       75.0     60.0 
   832x624        74.6 
   800x600        75.0     60.3 
   640x480        75.0     59.9 
   720x400        70.1 

That is all.

2013-11-18: I managed to get Xubuntu 9.10 (dmesg output) up by booting into recovery mode, messing about with sudo dpkg-reconfigure xserver-org and sudo dpkg-reconfigure gdm, and then starting gdm with sudo start gdm. I verified that the card reader is working. Next, upgrade Xubuntu.