The Treehouse Blog

Fedora 9 to 12 – Disk Partitions Issue?

on Dec.06, 2009, under Linux

Fedora 9 to 12

Over the past few days I’ve been upgrading my file/media server from Fedora 9 to Fedora 12.  I did this with yum, upgrading from 9 to 10, 10 to 11, and 11 to 12 incrementally, removing conflicts as necessary.  This actually went surprisingly well, and at the end, with just one reboot, I had gone from 9 to 12.

It may have booted, but there were a number of things I had to fix afterwards:

  • The kernel video mode setting had to be disabled to not break the NVIDIA binary driver (“blacklist nouveau” somewhere in /etc/modprobe.d/).  Apparently this is supposed to be handled by installing rpmfusion’s kmod package, but that wasn’t the case for me.
  • The X server would crash immediately upon a login.  I eventually figured this out to be a missing gnome-session-xsession package.  I’m not sure if this is something I had removed for dependency reasons earlier, or if it was split from another package at some point and yum missed it.  Either way, it was a real pain to debug, but easy to fix.
  • The kernel would not recognize the partitions on three of my disks.  This was a major pain, and the main focus of this article.
  • I don’t like MythTV 0.22′s new video gallery

Fedora 12 (2.6.31.6-145.fc12.x86_64) Disk Partitions Issue?

So… sdb, sdc, and sde each have a single partition on them, but the kernel (per /proc/partitions and other means) would only report block devices for sdb, sdc, and sde not sdb1, sdc1, and sde1 as should have additionally existed.  Naturally, the first thing to consult would be dmesg:

sda: sda1 sda2 sda3
sdb:
sdc: sdb1
sdc1
sdd:
sde:
sdd1 sdd2 sdd3
sde1
sdf:
sdf1

At first glance, this looks really, really bad.  sdb1 existing on sdc?  That’s not supposed to happen.  But after looking at it further, and having had some experience debugging multi-threaded things, I became convinced this was the mangled output of multiple parallel partition discovery processes.  If that were the case, it looked like it should have been successful, but was not.

So, is this what happened?  Googling turned up a bit on the so-called “fastboot” patches to the Linux kernel, at least portions of which have been accepted into recent mainline kernels.  Supposedly these would only be enabled with the “fastboot” kernel parameter, but searching the source and docs for the latest kernel didn’t turn up this option.  The async libata device discovery does indeed appear to be in 2.6.31 mainline, and I was unable to find a knob to turn it off.  There were also references to this interfering with partition discovery.  I started the process of rebuilding the kernel to disable this, to see if it fixed the problem, but gave up in favor of a workaround.  I’m not fond of maintaining custom kernels – I think the last I did this was to support a boca card.

The workaround.  I had noticed that the kernel could be instructed to reread the partition tables (partprobe, for instance) and the missing partitions would appear.  I threw in a quick init script to do this and assemble the array early in the startup process:

mdadm --stop /dev/md2
sleep 1
partprobe
sleep 2
mdadm --assemble --scan /dev/md2
vgchange -ay
mount /storage

So… if I have time, I should complete that kernel rebuild and report this somewhere.  In the meantime, I’m posting this for the benefit of others.  Lucky for me the partitions affected did not contain my root partition, or this could have been less-work-aroundable.

Comments Off : more...

Florida Expedition

on Nov.21, 2009, under Happenings

The Florida expedition was from 11/11 to the early morning of 11/17 and was very successful.  Here’s a summary.  Some people want photos, so I’ll give that a try.

Wednesday. The PA turnpike had next to no traffic from Blue Mountain to Harrisburg East, though had ludicrous 40 mph speed limits posted for much of the distance.  Airport security at Harrisburg was relatively speedy, though they did decide to perform some kind of chemical test on my shoes.  We had an expensive and slow lunch before our flight to Charlotte, NC.   We were a bit late arriving in CLT, it was raining, and there wasn’t much waiting around for the next flight.  The flight to Orlando was uneventful.  We were above the cloud deck much of the time during both flights.  I was only able to get GPS lock very briefly after leaving MDT.  I’d very much like it if GPS worked better inside of aircraft.  The shuttle to the off-site Hertz location was speedy, we got our car, and made our way on the Beachline Express to Cocoa Beach at which point it was dark.  Checked in, got food, and walked the beach a bit.

Atlantis with the STS-129 stack, viewed from Cape Canaveral National Seashore

Thursday.  It was only in the 60s today, and after just having had some Indian Summer in PA, it didn’t feel like we were anywhere tropical.  We walked Cocoa Beach from the pier to Jetty Park in the morning.  We then drove around the Merrit Island Wildlife Refuge.  Had our first view of the shuttle on the pad from the Cape Canaveral Seashore.

Atlantis with the STS-129 stack and pad 39B viewed from camera tracking station

Friday. We were at the KSC visitors complex when it opened, walked around the shuttle Explorer and then boarded our bus for the “NASA Close Up” tour.  The tour took us to the causeway where the lucky 3000 people with the best tickets can watch a launch from the closest allowed distance.  We drove past one of the massive crawler transporters and approached pad 39B which is undergoing modifications to accommodate the Ares rockets.  We parked at a camera tracking station which provided the closest view of the shuttle we had the entire trip.  I was able to get some closer though less clear pictures via binoculars.

Saturn V - S-IC-T

Saturn V - S-IC-T

Our next stop was the Apollo / Saturn V Center where we walked under and around a real Saturn V rocket laid over horizontally.  It’s crazy huge – really amazing to see the thing in person.  We then took the bus to the ISS building and were able to look down on the clean room used for processing space station modules – though it was difficult to tell what one was looking at.  Back to the main visitors center, we watched a 3D IMAX film, “rode” the Space Shuttle Launch Experience, and called it a day.

Friday night we drove out to Port Canaveral and parked along the road (where many others were also parked) to see the launch of an Atlas V rocket containing a commercial satellite payload.  I had my radio scanner with me, listening to the Coast Guard announcing the area restricted from boats, and also aircraft dispatched to patrol the area.  We heard that the launch was scrubbed via the scanner, due to technical issues with the rocket.  We headed back to the hotel, not sure how this scrub would affect our chances of seeing a shuttle launch.  The shuttle launch had already been moved from Thursday to Monday because of this rocket, and if this rocket would be ready for another attempt on Saturday or Sunday, the shuttle would again wait.  Fortunately, this launch was put off for more than a week as announced the next day.

Blockhouse Console

Blockhouse Console

Saturday. We returned to the KSC visitor’s center touring more of the exhibits there and watching the other 3D IMAX movie, and had the launch experience again.  After lunch we again boarded a bus for the “Cape Canaveral: Then & Now” tour, for which we had to have our photo IDs checked and recorded, presumably since the tour is largely on the US Air Force’s Cape Canaveral Air Force Station.  We walked through the blockhouse used to control some of the early manned flights, complete with its Burroughs computer, wiring, consoles, blast doors, etc.  This was the one facility we toured that had the appearance of being frozen in time and not a reconstructed prop from a museum.

We also walked around the site of the launch tower where the Apollo 1 fire occurred.  The memorial was very simple compared with the elaborate displays elsewhere, and the tower is gone, with only concrete remaining.

We then went to the Astronaut Hall of Fame and toured its exhibits.  Katelyn and I took a ride on the centrifuge flight simulator.  I wondered why they opened the doors with the ride still spinning, but later figured out it wasn’t.  Pretty cool though.

Kayak Trail

Kayak Trail

Sunday. We went kayaking on the waters of the Banana River.  We could see dolphins and manatees, but no alligators as it was salt water.  The most interesting part were the “kayak trails” that were essentially tunnels of foliage that you pulled your kayak through by hand.  Really cool, and nothing like we have around home.  In the afternoon we stayed around the hotel, getting in the ocean for a bit (long enough for me to lose my glasses, go figure, but at least I had packed spares).

Launch of STS-129, viewed from Titusville

Launch of STS-129, viewed from Titusville

Monday. This was launch and return trip day.  After escalating concerns about traffic, especially around the visitors center (it sounded as if they would hold us for an hour after launch… by which time who knows how many of the 3k causeway viewers would have been brought back to jam things up) we elected to view the launch from another location.  We checked out and went to the Space View Park in Titusville.  After fooling around with finding a non-towed place to park we waited while the park filled up and then the launch.  It was distant, but very cool to see Atlantis rolling after it left the tower by binoculars.  The pictures don’t do it justice.  After about a minute we could hear the tremendous noise of the launch.

We waited around a few minutes then dashed for the car, and made excellent time without traffic on a highway that is less impacted by launch traffic.  We were able to get home without incident.

Overall, it was an excellent trip.  I’m glad to have had the opportunity to see a Space Shuttle launch before the impending retirement.  I really do want to see one of the real shuttles in person some day, but it may take awhile before they are turned into museum exhibits.

Comments Off :, , more...

The Plan

on Nov.10, 2009, under SciFi

After having watched The Plan, I’ve become convinced that the Cylons were actually just following the leadership of one Bender Bending Rodriguez: “Kill all humans” followed by the occasional “I love you, meatbag.”

Comments Off : more...

Freedom

on Nov.06, 2009, under Politics

Our country is supposed to be the shining light of freedom and liberty in the world, something for which we should be proud and work to honor and defend.  Incredibly, the United States Congress is poised to trample our freedoms in its efforts to improve the country’s health care system.

HR3962 calls for the punishment of those choosing to go without health insurance with a fine (assessed as an increase in taxes).  A government mandate of this  nature is contrary to the personal freedom to exercise one’s means as they will.

The bill also calls for the creation of the “public health insurance option” which will be a government alternative to private insurance.  Reducing the cost of health care is a primary goal of the current reform effort.  This goal, combined with a government health care option, would further open the already unlatched door to government regulation of personal behaviors, such as what we eat and what we do, in order to promote health and cost savings.  Such regulations would represent an incredible loss of liberty in the interest of the fiscal responsibility of government-funded health care.

When considering the inherent aspects of this bill that undermine our freedoms, it seems clear that the bill must be opposed in its current form.  The congress should set its sights on fixing the problems that exist in ways that do not erode our liberties.

As always, I hope that everyone takes the time to really consider the implications of proposed legislation, regardless of their affiliations and preconceptions.  As technology and communications open our government process further, we’re given the opportunity to be more democratic, with voiced opinions on individual issues and not just which representative has the least objectionable set of opinions.

Comments Off : more...

Blu-Ray

on Nov.04, 2009, under Technology

With the quickly approaching release of Star Trek XI to DVD and Blu-Ray, I’ve finally completed the current iteration of my HD project.  I had been putting off doing anything with Blu-Ray due to the lack of support for it in MythTV and other open-source projects.  Since it seems that such things will lack such support for the foreseeable future, the remaining options consisted of building an HTPC that could be booted into Windows for video playback, buying a standalone Blu-Ray player, or a PS3.  Reading CNET and other reviews on Blu-Ray players, the general sentiment seemed to be that the PS3 was as good as, or better than, standalone players in the same price range.  As a result, I now have a PS3 Slim.  This is the first Sony product I can remember buying, and also the first “game console” I’ve owned since I sold my Atari 2600.  Naturally one downside to the PS3 is a lack of IR remote control support, necessitating the purchase of a Logitech Bluetooth/IR bridge to allow the use of a Harmony remote.  Fortunately this product works very well.

For now, the only Blu-Ray title I’ve watched on it is Dark Knight. The IMAX sequences in 1080p are unbeatable, pushing my LCD to the point where some of its weaknesses can be observed.  Amazingly sharp visuals.  The non-IMAX portions of Dark Knight look substantially better than DVD, and a clear but sometimes subtle improvement over recorded 720p content.  It does seem that film fuzziness is actually visible at the 1080p resolution.  One complaint (and I’m not sure where this should really be addressed) is the slowness in transitioning between the special feature menus and the special feature content.  The menu seems to be an overlay on the main feature playback, which is presented in 1080p24, while the special content is in 1080i60.  The LCD will lose and reacquire signal with the PS3 during the mode switch, and there is a several second lag overall.  The Blu-ray menu interface is much cleaner and sharper than DVD – but then again considering how much of a hack DVD menus are, this shouldn’t be surprising.

It remains to be seen whether the PS3 will drag me into gaming.  I’m sure it could handle such things much better than my PC at this point.

2 Comments : more...

 

May 2012
S M T W T F S
« Mar    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Archives



Content Copyright © 2004 - 2011 Brady Alleman.
All Rights Reserved.