LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 06-05-2008, 08:57 PM   #1
Ryupower
Member
 
Registered: Oct 2006
Posts: 75

Rep: Reputation: 16
Reinstalled Windows, have grub, need UBUNTU back!


hello,I had to reinstall windows and then GRUB was gone. With the LiveCD I did:

>sudo grub
>find /boot/grub/stage1

put the result ( which was hda0,1) in like this:
>setup (hda0)
>quit


I rebooted and my grub menu was there. I selected the Linux kernel I Wanted to boot, but it gave me an error telling me that the device isn't bootable or something like that. So I tried again, tried every one of the ubuntu entries besides the memtest. And I keep on getting a message that says that the partition "can't be mounted".

Is it because I installed ubuntu on a JFS-formatted partition, rather than EXT2/3?


I need some help here, and I'd appreciate it!
 
Old 06-05-2008, 09:39 PM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
sudo fdisk -l and post the results. This will tell us your partition information.

Last edited by Larry Webb; 06-05-2008 at 09:40 PM.
 
Old 06-06-2008, 12:20 AM   #3
Ryupower
Member
 
Registered: Oct 2006
Posts: 75

Original Poster
Rep: Reputation: 16
The fdisk -l output on the livecd is:
Quote:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 3824 30716248+ 7 HPFS/NTFS
/dev/sda2 3825 9547 45969997+ 83 Linux
/dev/sda3 9548 9729 1461915 82 Linux swap / Solaris

Disk /dev/sdb: 30.0 GB, 30016659456 bytes
255 heads, 63 sectors/track, 3649 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 3649 29310561 c W95 FAT32 (LBA)
 
Old 06-06-2008, 06:13 AM   #4
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Use your live cd and type

sudo grub
root (hd0,1)
setup (hd0)

See if this brings it back and if not we will have to look deeper.
 
Old 06-07-2008, 11:10 PM   #5
Ryupower
Member
 
Registered: Oct 2006
Posts: 75

Original Poster
Rep: Reputation: 16
It was successful, according to the terminal, but when I rebooted, GRUB still said that it couldn't be mounted. "Error 17"
 
Old 06-08-2008, 12:53 AM   #6
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
Lightbulb

Ryu, just a question, but looking through the results of fdisk -l, i dont see any mention of a JFS filesystem? Maybe I'm blind?

Where do you have ubuntu installed, sda or sdb (1st or second HDD).

What I am seeing is a FS (sda2) marked 83, which is a Linux partition, but it's not bootable. (no asterisk beside partition in output of fdisk).

I haven't used fdisk in a while, but you need to mark sda2 as bootable! that hopefully will solve your problem.
 
Old 06-08-2008, 12:56 AM   #7
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
If that doesn't solve your problem, try here:

http://ubuntuforums.org/showthread.php?t=442945

looks good to me!
 
Old 06-08-2008, 01:58 AM   #8
Ryupower
Member
 
Registered: Oct 2006
Posts: 75

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by irishbitte View Post
Ryu, just a question, but looking through the results of fdisk -l, i dont see any mention of a JFS filesystem? Maybe I'm blind?

Where do you have ubuntu installed, sda or sdb (1st or second HDD).

What I am seeing is a FS (sda2) marked 83, which is a Linux partition, but it's not bootable. (no asterisk beside partition in output of fdisk).

I haven't used fdisk in a while, but you need to mark sda2 as bootable! that hopefully will solve your problem.
How do I get an asterisk there and make it bootable via livecd? Sorry if that is a dumb question.
 
Old 06-08-2008, 02:02 AM   #9
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
pls reboot the live cd and click on the icon for sda2 and post your /etc/fstab pls and /boot/grub/menu.lst

if you do not have an icon on the live cd desktop...mount it manually with
Code:
su
mkdir /z
mount -t jfs /dev/sda2 /z
you then use the live cd to navigate to /z/etc/fstab or /z/boot/grub/menu.lst
 
Old 06-08-2008, 02:16 AM   #10
Ryupower
Member
 
Registered: Oct 2006
Posts: 75

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by aus9 View Post
pls reboot the live cd and click on the icon for sda2 and post your /etc/fstab pls and /boot/grub/menu.lst

if you do not have an icon on the live cd desktop...mount it manually with
Code:
su
mkdir /z
mount -t jfs /dev/sda2 /z
you then use the live cd to navigate to /z/etc/fstab or /z/boot/grub/menu.lst

There's no icon, If I try to mount, I get this notorious message:

ubuntu@ubuntu:~$ sudo mkdir /z
ubuntu@ubuntu:~$ sudo mount -t jfs /dev/sda2 /z
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so



Making me think I did something wrong.

The /etc/fstab is:
unionfs / unionfs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
/dev/sda3 swap swap defaults 0 0



the /boot/grub/menu.lst is...completely blank. Doesn't exist?

Last edited by Ryupower; 06-08-2008 at 02:22 AM.
 
Old 06-08-2008, 04:47 AM   #11
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
the /etc/fstab you are showing is the live cd one and what is the name and version of your live cd pls?

2) I made it jfs because you said that is what you used in post 1.

3) lets confirm with the live cd run

fdisk /dev/sda (or hda) ....or run qtparted or run gparted depending on what package is on your live cd....that will tell us what the partition tool thinks of your current partition filesystem
 
Old 06-09-2008, 06:54 AM   #12
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
Ryu,

Are you using ubuntu as your live cd?

Secondly, you make a partition bootable using fdisk, however, do read alot before using fdisk, since it is possible to screw everything using it!

Thirdly, are you sure you are using jfs? I think maybe it's actually ext3 or ext2, ubuntu formats to ext3 by default.
 
Old 06-10-2008, 03:20 PM   #13
Ryupower
Member
 
Registered: Oct 2006
Posts: 75

Original Poster
Rep: Reputation: 16
I am using Ubuntu LiveCD, yes.
I didn't use the default setting ( EXT3 ) I chose JFS when installing, to test it, so far I liked it more than the other three I used before ( EXT3,EX2, and ReiserFS ).

using gparted:

http://img382.imageshack.us/img382/6...gpartedoq1.png

Last edited by Ryupower; 06-10-2008 at 03:24 PM.
 
Old 06-10-2008, 08:08 PM   #14
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
since you know how to get into the partition tool....right hand click on sda2 and find the option for flags and check "bootable" and exit.....see if that helps
 
Old 06-11-2008, 02:14 AM   #15
Ryupower
Member
 
Registered: Oct 2006
Posts: 75

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by aus9 View Post
since you know how to get into the partition tool....right hand click on sda2 and find the option for flags and check "bootable" and exit.....see if that helps
Done, flagged it bootable. Still doesn't boot when I select it: Error 17.
 
  


Reply

Tags
boot, cant, grub, ubuntu, windows


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
Reinstalled Win XP and repaired Grub, now I can't boot Linux or Windows. Please help. MegaSvensk Linux - Newbie 27 10-13-2007 06:12 PM
Accidently installed Ubuntu, now can't get windows XP back Kiwifaramir Linux - Newbie 4 09-28-2007 11:20 PM
reinstalled windows in dual boot,,,grub disappeared,,,help ace.adi Linux - Newbie 3 03-18-2007 12:46 PM
How do you get back into Ubuntu if you don't put Grub on the MBR? Marrea Ubuntu 7 07-21-2005 07:27 AM
reinstalled XP now no grub? RichardSimmons Linux - Newbie 3 03-06-2004 12:27 AM


All times are GMT -5. The time now is 01:48 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration