View Single Post
Old 03-11-2007, 20:52   #19
Alien
Inactive
 
Alien's Avatar
 
Join Date: Jul 2003
Location: UK
Services: VM Phone, V+, VM 10Mb
Posts: 2,655
Alien is cast in bronzeAlien is cast in bronzeAlien is cast in bronzeAlien is cast in bronze
Alien is cast in bronzeAlien is cast in bronzeAlien is cast in bronzeAlien is cast in bronzeAlien is cast in bronzeAlien is cast in bronzeAlien is cast in bronze
Re: Multi-booting Linux & XP

Quote:
Originally Posted by Cobbydaler View Post
Maybe it doesn't have one, just try

cat /union/boot/grub/device.map
I've returned to XP for the moment, partly because I needed to do some stuff in Windows, & partly because I was getting a bit frustrated with Linux. I'll give it another go later.

On the subject of root & passwords with Ubuntu, I just found this:
Quote:
There’s no default root password, so by default, root can’t login, you’re supposed to use “sudo” instead, after logging in as a regular user. Well, I thought I had mistyped my password once I found myself unable to login. So, I booted again from the CD. Then I found out that I was not root, but user 999, or “ubuntu”. How to become root? “su” didn’t seem to work, wanted a password, which I had no idea. Luckily, the network was working, and there’s a browser in the live-cd environment, so I was able to google around and find the solution. The deal is, by default, in the live-CD environment, there is no root password that allows a login. However, you can do

$ sudo passwd root

And that will let you set a root password from the live-CD environment.

Then, I could become root via “sudo su -”, and mount my real root partition on /tmpmnt, and then chroot into there, and it was then, when I tried to “passwd scameron” to change what I had thought was a botched password, it told me “scameron: no such user.” Then, by “cat /etc/passwd” I found out I had mistyped my own name. “/sbin/init 6?, and login with my misspelled username, and here I am, typing this.

So, the magic words to remember for using a debian based (e.g. ubuntu) live CD as a rescue CD are these:

sudo passwd root
Linkage
Alien is offline   Reply With Quote