Sunday, September 14, 2008

Dual-Booting EeePC on Ubuntu and Debian

Hardware

My new Eee PC (I call it kpeeepb) came with a variant of Debian Linux installed, ASUS-branded Xandros. Two problems: I don't like branding, and if you follow the instructions on the EEE Wiki called "Pimp My EEE", you wind up with a brick that (while it can still read Word documents) hasn't got any disk space left for user modifications.

Unacceptable, I bought a memory card just so I could mod the thing out, now I've got Ubuntu installed on it but until recently I had mucked the thing up so I couldn't boot without using a USB Key. I don't know. I've got it fixed now so Grub is installed on the main system disk, and you can actually boot the XFS root on my memory card if you want to use the basic Ubuntu Netbook Remix.

I'd rather have Debian EeeOS on the main disk, so you can actually boot the system without a memory card. I was kind of hoping to use that memory card for carrying movies around with me, and if I could keep a backup of my own modifications with a pretty small footprint. The installation instructions call for an already working Linux system on the host computer, the backup Ubuntu System OS is on the memory card. I will need that if I turn it into a brick.

As long as I can boot GRUB, I should be able to enter these commands with the memory card in and expose a working Linux system:
grub> root (hd1,1)
grub> kernel (hd1,0)/vmlinuz-2.6.24-21-eeepc root=/dev/sdb2
grub> initrd (hd1,0)/initrd.img-2.6.24-21-eeepc
grub> boot
I've entered those commands and the wheels are turning... sdb has been recognized in only 731 jiffies... next my system is booted, and ready to overwrite the main system disk according to the instructions.

Oh no! I put the root filesystem specifier on the wrong line, initrd booted but the kernel couldn't find a root filesystem, and the grub process dumped me out to the busybox prompt. I thought I would mount my filesystems and poke around just to see what happened.

Well, I forgot to unmount them, and apparently ext2fs is just that fragile!
grub> kernel(hd1,0)/
Error 2: Bad file or directory type
So, I'm going to have to take a detour on these instructions. Ready to wipe my USB key completely, lets install eeeos_beta2 on the key and boot from that. There we can run e2fsck and find out what happened to my /boot partition on the memory card.

If that exercise was any indication of my luck, I'm going to need more than one solution for independent backup.

gunzip -dc eeeos_beta2.img.gz | sudo dd of=/dev/DEV

On IRIE, the DEV here is /dev/sdf1 for the first partition on my Kingston 4GB Data Traveler. Depending on phases of the moon (or, what device gets plugged in first) this is either (hd1):/dev/sdb or (hd2):/dev/sdc on the Eee. Once the system is up and running from the stick, I can copy the beta2.img file to the main system disk and complete the installation instructions normally.

Wait... I can still fix it without the stick! I had the foresight to copy the newer 2.6.24 kernel from Ubuntu system onto the Xandros root on sda1. My kernel is still hanging out somewhere I can get at it. I should still be able to boot. Phew!

Oh well, of course I will be overwriting it soon enough... don't forget to fsck sdb1 first chance you get, it really needs the cleanup after that mess.

Commentary

I surely won't need these instructions again. The machine is a rock. It's not going to need another reformat, once I installed Debian. Maybe a new set of menus... but that can wait until I learn some UI programming.
D'oh, so I really hosed that ext3 partition somehow. I think it's best to leave the booting to the system disk. Here's what you need to get strapped into Xandros, or whatever is the main system on disk sda1:
root (hd0,0)
kernel /vmlinuz root=/dev/sda1
initrd /initrd.img
boot


Looks like it's Ubuntu today.

Homework List

Today is C#/Haskell day. There is an assignment each from last week that needs review, and an assignment each for next week that needs new code. Systems Programming assignment was not completed, I think it's due this coming week... one Physics WebAssign each week and the first has already been lost to inattention.

Chemical Literature: the first submission of my Bibliography (using the Professor's template) is due TONIGHT at 11:59PM on RIT's myCourses website.

Sunday, September 7, 2008

lets jack mycourses

My annotations are in plain, unitalicized text.

<<<>>>
Authored by: Alexander Haruk
Authored on: Sep 4, 2008 10:01 PM
Subject: Once Again All The Talk of Academic "Integrity" Makes Me Want To Rant


  1. No

  2. Not Sure

  3. No

  4. No

  5. No

  6. Yes

  7. Not Sure

  8. No

  9. Not Sure

  10. Yes

  11. No

  12. Yes

I suppose I should explain myself and these answers. These talks are always the same repetitive thing, nothing new is ever said, and frankly the scenarios almost always piss me off.

"A student completes a paper and submits it for two courses, but each requires 'original work' prepared for this course." This one always pops up, and it's the same thing "This is a very bad thing to do, and uh if you do it your a Nazi!" Reusing something that you wrote should never be thought of as a bad thing. Suppose you wrote a report one year How the Color Red Makes People More Inclined to Defaecate, or some such nonsense, then the following year your boss (yes this was an employment setting) want's you to do it again, and he tells you to put in all the new stuff. After checking you find there is nothing new, so you give the same thing again. Or alternatively you retake the course. Understand my point

Timeshifting is good. Nobody should be able to monopolize your hours in your day, requiring you to tediously repeat something hour after hour or day after day. OK so maybe it's your livelihood (hey professor) but maybe you're not carrying the news that day? Nobody, least of whom should be the cable company! #kpb

"A student allows another to copy his or her work during an exam." This is rather ambiguous because it doesn't specifically state that the "work" has anything to do with the exam. If it's a French exam and the work being copied is homework for Anthropology then "No." Even if we assume it is for the same class it still isn't necessarily wrong. What if what's being copied isn't on the exam? There's really only a narrow circumstance where this is wrong, if and only if what's being copies actual pertains to the exam.

If the purpose of an exam is to test each student's individual knowledge of a subject domain, then it is rendered ineffective by two students sharing information inside the walls of the exam room. If the goal is to engage in discussion and present as many facts or viewpoints as possible, then to copy is to share and to enlighten. The test is really about your note taking ability, one way or another. #kpb

"A student uses copies of previous exams to study, but the instructor does not return exams to keep." This isn't wrong for one of two reasons, either the instructor is an idiot and doesn't notice that he's short a graded exam, in which case shame on the instructor, or the student is able to transcribe an entire exam without being noticed, in which case the student deserves to keep the exam.

"A student obtains information from someone who has taken the same exam in an earlier secion (anyone notice that spelling error before?); the instructor requires all exam takers to sign a vow of silence." Unless the instructor works for the Pakistani intelligence agency (or something like it) and the punishment for breaking the vow is death it's unreasonable to expect people to keep their mouths shut.

"After taking an exam, a student 'swipes' a copy that is not supposed to be 'out.'"

Note: The following is based on the assumption that "after" means immediately after and is confined to the testing area, and as such does not apply to any breaking and entering at a later time or date.

Again the scenario is left open to interpretation. This could be the way a person similar to the one in question 3 operates (technically can't be the one in question 3, because of the presence of the word "return" in the question) or the instructor brings copies of the next exam with him; making him an idiot and deserving of his exploitation.

Is nothing sacred? In the industry, we have what are called trade secrets. A degree (or lack of degree) is a sort of bar to entry into an industry. Professors should be expected to invest in their testing materials and to proffer grades accurately. How then if they must take extra care and invest in "safe" workspace and storage of their valuables to keep students from stealing them?

#kpb

"A student obtains a term paper, report, or homework from some source and turns it in as his or her original work." Well obviously it's wrong. It's like asking if counterfeiting is okay.

"A student uses a programmable calculator during an exam when such devices are expressly forbidden." Reasons why it could be okay: there's nothing programed into it, what is programed in it isn't relevant, it's open book, or complete formula sheets are provided.

"A student receives full credit on a team project on which he or she did little or no work." Don't hate the player hate the game. The student has no control over how the project is graded, so why this keeps on getting asked baffles me.

You can't crash the boat if you're not at the helm. What have you done for me lately?

"A student obtains an advance copy of the exact same exam he or she is going to take and uses it to study." Is this the same idiot instructor from question 5? Was this a review sheet passes out, by the instructor, to the class that happens to be the test? Or did the student break into an office and steal it? Can you guess which of the three is wrong?

"A student alters answers on a test returned for review and then gets credit for the 'mistake.'" Far far to cheap of a tactic for me to defend in any way shape or form, after all I have integrity.

I have seen professors who will grant credit for students after the fact if they show that they have learned the lesson. That's not what's being described here, but seriously, haven't you ever heard of extra credit?#kpb

"Teams agree to share information on a project/case after the instructor explicitly forbids doing so."

Note: The following assumes that the "project/case" is in an academic setting and is a graded assignment, and does not apply to research, legal proceedings, or anything else that has inherent competitiveness.

Information is different from answers. Information is how to do something, and telling/showing someone how they're supposed to do it is fine.

"A student uses crib sheets, notes, or similar materials during a closed book/closed note exam." Why. Why. Why. Why, do they have to ask this? Of course it wrong!