Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Like an idiot, I left Linux and repartitioned my hard drive using Partition Magic. Now when I boot up, it takes me directly to the grub prompt. I really have no idea how to remedy this situation. Please help.
Some notes:
1) I type "find /boot/grub/stage1" and get the response "file nto found"
2) I tried using the Suse 8.2 CD's to boot up and chose the option "use an already installed system" then get while it's loading the following error msgs, "cannot open filesystem on /dev/hda7" and then it says "fsck failed. Please repair manually and reboot."
Can anyone help me out. I believe all data is still on the partition. It's just getting grub to find it.
If your on the promt it usually means its found its own files. But the menu maybe in the wrong place.
Type
find /boot/grub/menu.list
It will tell you where it is. then you can try
root(hdx,x)
kernel /vmlinuz-2.x.xx root=/dev/hdx
boot
Of couse you'll have to enter the results from find where I put the x's as well as your version of the kernel.
Thanks. I think I am getting closer to solution but still no luck.
I type in find /boot/grub/menu.lst and it says "hdo,7"
I then type in root (hd0,7)
Then I type kernel /vmlinuz root=/dev/hd0 and it says "Error 15: File not found"
i appreciate your patience.
i am sure the system is not screwed.
i can still get a command prompt and login as root and everything is there.
i wish i could even get to windows but when i type the following:
rootverify (hd0,0)
makeactive
chainloader +1
boot
this takes me to the root command prompt (init level 3).
i think the source of the problem may be that i created a new partition hda7 through partition magic and linux doesn't quite know how to handle it.
i also know that when i boot off the cd-room i get the following error:
Cannot open filesystem on "dev/hda7"
fsck failed. Please repair manually and reboot.
There must be at least some way even to get back into windows right?
Okay, I'll give you highlights because I am running back and forth between computers:
1) /boot/grub/menu.lst:
title linux
kernel (hd0,6)/boot/vmlinuz root=/dev/hda7
initrd (hd0,6)/boot/initrd
title windows
root (hd0,1)
chainloader +1
2) fstab:
dev/hda2 main windows drive--C
hda6=linux swap
hda7=main linux drive, reiserfs
3) its kernel: 2.4.20-4GB
4) df -h:
/dev/hda7 is mounted on /
/dev/hda2 is mounted on windows/C
One more note: remember that I foolishly created a new partition in between the linux swap and the main linux partition. That I think is how I screwed this all up.
Again, thanks. I will have to check your response in the morning as it's late here.
This will load fdisk now type p and enter and it will tell you whats on the disk. df is not giving us the answer we want if you created a new partition. After its printed out the results we'll know exactly what parition magic did and see if we can fix it.
to load windows you'll need to type rootnoverify(hd0,1) not (hd0,0). Hope that helps.
1) I ran fdisk /dev/hda and right away get the following msg: "The number of cylinders for the disk is set to 3647. This is larger than 1024 and could cause problems with booting." I then hit p and got the following output:
/dev/hda1 Dell Utility
/dev/hda2 NTFS
hda4 Win 95 Ext'd (LBA)
hda5 Win 95 FAT 32
hda6 Linux Swap
hda7 Win 95 FAT 32
hda8 Linux
there is no hda3 is that's an issue.
2) when i try to boot with rootnoverify (hd0,1) it takes me back to the linux prompt. when i try to use rootnoverify (hdo,2), i get an error msg "syntax error near unexpected token (hd0,2).
Right first, I think you'll need too rewrite your menu.list
title linux
kernel (hd0,7)/boot/vmlinuz root=/dev/hda8
initrd (hd0,7)/boot/initrd
title windows
rootnoverify (hd0,1)
makeactive
chainloader +1
This is presuming that your NTFS partition is your C ( Which I believe it is ). Then you need to reinstall grub.
type grub and it will do some checking before it starts. Then type
root (hd0,7)
setup (hd0)
quit
This will install grub on the MBR.
Now try rebooting, grub should give you the menu.
To use the new partition under linux you need to change its type using either fdisk or parted. and then mount it somewhere.
hda3 is missing... Thats odd at first I though it was your extended partition, but thats what hda4 is doing. So it is missing.
Okay, you are a genius. Grub now boots up and I can bootup into either windows or Linux. But there's still one problem:
When it starts booting Linux, the process falls apart and I get a "cannot open filesystem on /dev/hda7" error. It then says fsck failed.
I checked and my system has a /sbin/fsck and /sbin/fsck/reiserfs files. I tried to look at them with vi, but it comes up gobbledy-gook.
Because of this error, I cannot get into kde and deal with the hda7 problem.
I am scared of using Partition Magic to get rid of hda7 because that will only rename all the drives again, and GRUB will go down, I think.
This should be it, but would you mind helping me with this one again.
Sorry, but I can give you more info:
I type the command fsck -A and get the following:
reiserfsck: Cannot open filesystem on "dev/hda7"
Warning . . . fsck.reiserfs for device /dev/hda7 exited with signal 6.
fsck.resiserfs /dev/hda7 failed (status 0x8). Run manually
I am thinking this might be a matter of editing fstab. Not sure.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.