ls /dev/sda
cd # this is just to make sure you'll have permission to do the next step
mkdir <directoryname>
sudo mount /dev/<partition> <directoryname>
<sudo> gedit
---OR---
gedit <path>/filename
Icarus wrote:I'm assuming you did a pretty basic default installation of ubuntu.
You'll need to reboot into the LiveCD and then mount your hard drive somewhere. For that, you'll need to find out what partition the / is at. Probable choices are /dev/hda1 or /dev/sda1, depending on if your computer uses IDE or SCSI connectors. Anyway, open a terminal and typeand hit tab a couple of times to see what pops up. Odds are, / is either on the first or second partition (*da1 or *da2).
- Code: Select all
ls /dev/sda
Once you figure out where it is, (it doesn't hurt anything if you're wrong, so no worries) type:At that point, it should ask for the root passwd of the livecd, if it has one. (guess "root" if you need to). After that, if you used GRUB for the bootloader, the file you need to edit is
- Code: Select all
cd # this is just to make sure you'll have permission to do the next step
mkdir <directoryname>
sudo mount /dev/<partition> <directoryname>
<directoryname>/boot/grub/menu.lst
You can open it with gedit, though you may need root permissionsMost likely what happened is that grub is looking for the root partition on the wrong one. If is, it's not that bad and all you'll need to do is increment/decrement one or two numbers. Second best case is change a couple of file names in menu.lst so the reflect what's actually on your system.
- Code: Select all
<sudo> gedit
---OR---
gedit <path>/filename
ubuntu@ubuntu:~$ ls /dev/sda
/dev/sda
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ ls /dev/sda
sda sda1 sda3 sda5 sda6
ubuntu@ubuntu:~$ ls /dev/sda
/dev/sda
ubuntu@ubuntu:~$ cd #
ubuntu@ubuntu:~$ mkdir /media/disk-1
mkdir: cannot create directory `/media/disk-1': File exists
ubuntu@ubuntu:~$ mkdir /dev/sda3
mkdir: cannot create directory `/dev/sda3': File exists
ubuntu@ubuntu:~$ sudo mount /dev/sda3 media/disk-1
mount: mount point media/disk-1 does not exist
ubuntu@ubuntu:~$ sudo mount /dev/media/disk-1 /dev/sda3
mount: special device /dev/media/disk-1 does not exist
ubuntu@ubuntu:~$ sudo mount /dev/sda3 /media/disk-1
mount: /dev/sda3 already mounted or /media/disk-1 busy
mount: according to mtab, /dev/sda3 is already mounted on /media/disk-1
ubuntu@ubuntu:~$ /dev/sda3/boot/grub/menu.lst
bash: /dev/sda3/boot/grub/menu.lst: Not a directory
ubuntu@ubuntu:~$ /media/disk-1/boot/grub/menu.lst
bash: /media/disk-1/boot/grub/menu.lst: Permission denied
ubuntu@ubuntu:~$ sudo mount /dev/sda3 /media/disk-1
mount: /dev/sda3 already mounted or /media/disk-1 busy
mount: according to mtab, /dev/sda3 is already mounted on /media/disk-1
ubuntu@ubuntu:~$
cd <directory>
cd boot
cd grub
sudo gedit menu.lst
Users browsing this forum: No registered users and 82 guests