Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-27-2008, 07:19 AM   #1
LQ Newbie
Registered: Feb 2008
Posts: 4

Rep: Reputation: 0
Trouble with Ubuntu, fdisk & grub

im omar and im new to linux too
i installed Linux ubuntu on a partioned disk then i deleted the disk
whenever i turn on the laptop, i get GRUB 1.5 loading and error 22.
I am currently using the same laptop but im working with a ubuntu live CD.
Even more, when i open Terminal and type in fdisk -1, it says :

fdisk: invalid option -- 1

Usage: fdisk [-b SSZ] [-u] DISK Change partition table
fdisk -l [-b SSZ] [-u] DISK List partition table(s)
fdisk -s PARTITION Give partition size(s) in blocks
fdisk -v Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors

i dont know how to make my laptop work normally again and i know it was stupid of me to delete the partion. But i need help, so please reply asap

Thank you
Old 02-27-2008, 09:06 AM   #2
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33

sudo fdisk -l
Old 02-28-2008, 06:03 AM   #3
LQ Newbie
Registered: Feb 2008
Posts: 4

Original Poster
Rep: Reputation: 0
hey thanks a lot Duck2006 for your help. i typed sudo fdisk -l in terminal and this is what i got:

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9ab99ab9

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1735 13936356 7 HPFS/NTFS
/dev/sda2 1736 2951 9767520 7 HPFS/NTFS
/dev/sda3 2952 4863 15358140 7 HPFS/NTFS

What should i do after that? I turnned off the laptop and turned it on again after typing that and it still showed me the GRUB Error 22.
Should i use the live cd to install ubuntu again? Will this solve the problem? Or is there something eslse i should do before it works?
Please reply soon and thanks a lot in advance...

Old 02-28-2008, 08:31 AM   #4
Senior Member
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
I'm going to really spell this out simply- you are probably not this much of a newbie, but I'm not 100% clear on what your problem is. Here goes:

So, you installed Linux on your computer. Then you deleted the partition. Using the live CD, you can run linux on your computer. Without the Live CD it doesn't work. Right?

Linux will run off the CD or the Hard Drive- except you broke the hard drive installation (don't panic, I'm sure we've all done that. ) So, I suggest reinstalling Linux.

If this isn't what your problem is, then please try adding some more details. Thanks.

Oh- sudo fdisk -l doesn't actually fix the problem- it is just a diagnostic. Tells us what is going on.


Last edited by titanium_geek; 02-28-2008 at 08:32 AM.
Old 02-28-2008, 08:50 AM   #5
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124
Blog Entries: 2

Rep: Reputation: 15
i will try to summarize it for the newbies;
there is a program called GRUB, which organises the boot sequences of the installed Operating Systems..You have windows, then install 2 have 2 operating systems and a menu at the boot sequence asking you which one you choose..

please experts correct me if i am wrong, Grub Loader is also on the linux partition, and grub error appears because it cannot be found..if it is a right, just use a Live CD, find GRUB properties and remove the linux part the loader menu..that should do it.
Old 02-28-2008, 09:58 AM   #6
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
You can reinstall linux again if you want or you can repair the MBR of the drive to be able to boot win.
If you don't have a XP boot disk you can repair your MBR with the super grub disk,

or the ultimate boot cd.
Old 02-28-2008, 12:38 PM   #7
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I split your post and the responses into a separate thread.
No point in re-animating a 3 year old corpse via hi-jacking.

Old 02-28-2008, 02:43 PM   #8
LQ Newbie
Registered: Feb 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks loads evryone for your help. I hope it works and good luck all...
Old 02-29-2008, 01:53 PM   #9
LQ Newbie
Registered: Feb 2008
Posts: 4

Original Poster
Rep: Reputation: 0
i used super grub disk and now my laptop is back to normal
Thanks everyone 4 helping me out
I know im a newbie but im gonna learn and ill know more
talk to you later


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 7.04 & GRUB? ocicat Linux - Desktop 13 05-31-2007 06:13 AM
Partition rearrangement & dual booting Ubuntu/XP via GRUB VoidRoamer Linux - Hardware 9 04-29-2007 09:32 AM
trouble dual booting Ubuntu and Fedora Core 4 with GRUB. bgryderclock Linux - Software 5 04-04-2007 01:46 PM
GRUB and LILO crashes on both Gentoo & Ubuntu DARKGuy Linux - General 6 08-17-2006 10:03 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration