Re: [wlug] The dog ate my bootloader!

Thanks for your link, Gregory. Turns out I didn't give enough information in my original post - and after thinking of the right terms, a Google search found the problem. I was affected by bug 477104, fix and cause here: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/477104 in case it will help someone. I was running Ubuntu Netbook Remix 9.10 via Wubi (critical missing info in my original email). Wubi + kernel update = broken grub2 & left at bootloader. In the future, I'll need to follow any major updates by running sudo update-grub2. If this happens to anyone else, I fixed it by running:
set root=(hd0,1) loopback loop0 /ubuntu/disks/root.disk set root=(loop0) linux /boot/vmlinuz-2.6.31-17-generic root=/dev/sda1 loop=/ubuntu/disks/root.disk ro initrd /boot/initrd.img-2.6.31-17-generic boot
Once Ubuntu booted successfully, I had to run sudo update-grub2 to prevent the issue from recurring at next boot. Obviously, the versioning will vary; I also had to rollback to the previous version of vmlinuz and initrd. I've seen comments that the first 2 lines aren't necessary, but I needed them on my system. Hope this helps someone out in the future! Cheers, - Eric

Now that I have a copy of Windows 7 Professional x64, I can go ahead and install that and Ubuntu 9.10 x64 on my laptop. However, I'm a bit unsure of how well my existing profile will be imported (if at all). As I have the 32-bit version installed, I have to do a clean install. In the past my user account has had its ownership changed to '1001', and I had to create a new account and copy the old stuff over. In this case, would it just be easier to create a new user account and copy my data over to it? The query's apropos Ubuntu, though the same could apply in Windows; that has its own foibles with using the same username (tacking on .WINDOWS was XP's method of doing things; I've no idea if Windows 7 does that). Sandy

If you install a new Windows or Ubuntu over an old one, it should keep your users, and their IDs, intact, as well as profile/home directory. It it possible to copy a profile from one user to another on Windows. I wrote a util for this - http://profiletool.codeplex.com/ - while I haven't tested it since Windows XP, it's (a) open source, so you can fix it yourself, and (b) the methodology can be done manually. You may also be able to do this from the Profiles control panel capplet, or whatever Windows 7 has there. For Linux, if you have a new account with a new uid, you can do something like this to fix: rm /home/newuser mv /home/olduser /home/newuser find /home/newuser -uid 1000 | xargs chown newuser (where 1000 is replaced with the user ID of your old profile) Windows requires a similar set of steps, but you also have to change ownership of the registry keys in the NTUSER.DAT file in the profile. Craig On Sun, Feb 28, 2010 at 7:31 PM, Chakat Sandwalker <sandwalker(a)gmail.com>wrote:
Now that I have a copy of Windows 7 Professional x64, I can go ahead and install that and Ubuntu 9.10 x64 on my laptop. However, I'm a bit unsure of how well my existing profile will be imported (if at all). As I have the 32-bit version installed, I have to do a clean install. In the past my user account has had its ownership changed to '1001', and I had to create a new account and copy the old stuff over.
In this case, would it just be easier to create a new user account and copy my data over to it? The query's apropos Ubuntu, though the same could apply in Windows; that has its own foibles with using the same username (tacking on .WINDOWS was XP's method of doing things; I've no idea if Windows 7 does that).
Sandy _______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug

Where should the bootloader be installed on a dual-boot system? By default it seems set to '(hd0)', which isn't very specific. It's been so long since I installed Ubuntu that I can't recall what setting I used. I have five partitions, which in order (I think) are the recovery partition, Windows Vista, Linux swap, / and /home. The drive is 'sda'. Last time I left it as default I had boot problems, and it wasn't until two reinstalls later that I figured out that I had to change the bootloader location. I figured I'd better ask first before I bit the upgrade bullet. And, on another note, for some reason the recovery partition was rendered unusable with the installation of GRUB. It's possible to boot into it, and Windows loads files and such, but then it gives me a large white error window with ERROR in big red letters, and 'C:\RECOVERY.DAT' in the title bar. Would anyone have any idea of why this happens? Sandy
participants (3)
-
Chakat Sandwalker
-
Craig Box
-
Eric Light