So if I run 'update-grub' in the live CD of ubuntu, it would work for my installed version of Ubuntu?
So if I run 'update-grub' in the live CD of ubuntu, it would work for my installed version of Ubuntu?
You would have to give me the output of
the (sudo fdisk -l) (earlier post) so we can chroot(get into root) into your install and update grub and remove plymouth and reinstall a new package from repositories. That is the only way I have ever had any success at updating grub in a particular install and making new config file in live cd.
Last edited by garvinrick4; November 10th, 2010 at 03:55 AM.
Alright I need you to explain it to me in a bit more detail how I'd get around to fixing this. I really don't know much about Ubuntu.
Sorry I didn't see the part about the fdisk command earlier:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4600c452
Device Boot Start End Blocks Id System
/dev/sda1 1 5 40131 de Dell Utility
/dev/sda2 * 6 2300 18432000 7 HPFS/NTFS
/dev/sda3 2300 15354 104856576 83 Linux
/dev/sda4 15354 60802 365054976 7 HPFS/NTFS
Well if you say it was when you used startup manager and changed resolution to 1600x1200 and then attempted edit a plymouth file. So we fix those 2 things.
To get into root in live cd because it will not boot and update the grub takes some commands in terminal, you have make directories and mount a few things and then
get into root and then we can repair the objects that are broken.
I would put the resolution at 800x600 to start with because that we will say works most
all the time. Can change after you can boot into your system.
#In live cd go to Places and to your linux install and mount your Linux partition as before.
Then hit Alt/F2 and box will open and type in gksudo nautilus and hit enter.
That will open file system in root so you can change and save.
Click on your Linux partition on left side of Window that opens and open file system and navigate
/etc/default/grub
change to 800x600 and hit save in upper left. As below is mine at 1024x768:
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1024x768
Have to be in root to save file is why we do the "gksudo nautilus" part:
After saving you close everything and open a terminal and make sure your internet connection in upper right is connected and in next post will give you the commands to
chroot into system and update your grub and remove and reinstall plymouth.
Will be maybe 10 commands just copy and paste into terminal one at a time.
Code:Your Linux install is sda3: These commands one at a time:Code:sudo mkdir /media/rootCode:sudo mkdir /media/root/procCode:sudo mkdir /media/root/devCode:sudo mkdir /media/root/etcCode:sudo mount /dev/sda3 /media/rootCode:sudo mount -o bind /proc /media/root/procCode:sudo mount -o bind /dev /media/root/devCode:sudo mount -o bind /dev/pts /media/root/dev/ptsCode:sudo cp /etc/resolv.conf /media/root/etc/resolv.confCode:sudo chroot /media/rootCode:apt-get remove plymouthCode:apt-get install plymouthCode:apt-get -f installCode:dpkg --configure -aCode:update-grubCode:exitCode:sudo umount /media/root/dev/ptsCode:sudo umount /media/root/devCode:sudo umount /media/root/procCode:sudo umount /media/root/etcBoot back into Hard drive Ubuntu:Code:sudo umount /media/rootCode:sudo update-grub
Last edited by garvinrick4; November 11th, 2010 at 10:57 PM. Reason: We had problem: must use same 32 bit or 64 bit live CD.
At the command: sudo chroot /media/root
I get the error: chroot: failed to run command `/bin/bash': Exec format error
Typing: chroot --help
Gives: Usage: chroot [OPTION] NEWROOT [COMMAND [ARG]...]
or: chroot OPTION
Run COMMAND with root directory set to NEWROOT.
--userspec=USER:GROUP specify user and group (ID or name) to use
--groups=G_LIST specify supplementary groups as g1,g2,..,gN
--help display this help and exit
--version output version information and exit
If no command is given, run ``${SHELL} -i'' (default: /bin/sh).
Report chroot bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
For complete documentation, run: info coreutils 'chroot invocation'
Don't know if that's any help...
I will explain the code to you later: It is not difficult to understand, you just have to mount certain things then run a few commands then unmount them. (umount is not a typo in code)
I don't have a problem understanding it, it's just the error I'm getting from running that command.
Is the partition mounted on your desktop: Can you see the partition on desktop(should be)
was the command to mount.Code:sudo mount /dev/sda3 /media/root
is the chroot command:Code:sudo chroot /media/root
Bookmarks