LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


hey
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
Omar
 
Old 02-27-2008, 09:06 AM   #2
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
Type

sudo fdisk -l
 
Old 02-28-2008, 06:03 AM   #3
roro1993
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...

Omar
 
Old 02-28-2008, 08:31 AM   #4
titanium_geek
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.

titanium_geek

Last edited by titanium_geek; 02-28-2008 at 08:32 AM.
 
Old 02-28-2008, 08:50 AM   #5
laucian
Member
 
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 Linux..now 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
Duck2006
Member
 
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,

http://supergrub.forjamari.linex.org/

or the ultimate boot cd.

http://www.ultimatebootcd.com/
 
Old 02-28-2008, 12:38 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
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.



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

Original Poster
Rep: Reputation: 0
Hello
Thanks loads evryone for your help. I hope it works and good luck all...
Omar
 
Old 02-29-2008, 01:53 PM   #9
roro1993
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
Omar
 
  


Reply


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


All times are GMT -5. The time now is 10:41 PM.

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