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.
this keeps asking me to enter my first post.. so here goes..
daughters computer broke, maybe virus, so i did clean reinstall of xp. decided to give her a couple of linux distros, thinking maybe they are safer for when she is surfing..
used gparted to repartition hd:
[root@amanda dan]# fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xedaaedaa
Device Boot Start End Blocks Id System
/dev/sda1 692 11553 87249015 7 HPFS/NTFS
/dev/sda2 * 1 691 5550426 b W95 FAT32
/dev/sda3 11554 12955 11261565 83 Linux
/dev/sda4 12956 19457 52227315 5 Extended
/dev/sda5 12956 14357 11261533+ 83 Linux
/dev/sda6 14358 14618 2096451 82 Linux swap / Solaris
/dev/sda7 14619 19457 38869236 83 Linux
Partition table entries are not in disk order
Installed Ubuntu 8.04. was then able to boot into either ubuntu or xp.
next installed fedora 10. new menu.lst did not show ubuntu, only fedora and xp. had some lockups in fedora, and had to pull plug to reboot 2 or 3 times. replaced power supply. added ubuntu into menu.lst.
boots into fedora and ubuntu fine. tried to boot xp, and get "Preparing System Recovery Option", then PC Angel appears, and it wants me to use the system restore option for xp.
is there something i can do to recover xp without having to wipe the hd and reinstall xp, then reinstall ubuntu and fedora (and if i do all that, how can i be sure i don't end up with the same problem?
thanks in advance for any help.
you may not half to redo every thing!
if you can get to a widows comand prompt or the XPcd's recovery console you can run CHKDSK/f and you should be good.
or if you can get the cd to install XP withought formating or repartitioning the drive you should be good.
this is a emachine, and the operating system disc doesn't let me do anything other than do a format and reload or a backup then reload. i can't figure out how to get to a prompt where i could run chkdsk. when i select windows to boot, it immediately says "preparing system recovery options" at the bottom of the screen, then brings up pc angel, which is just wanting to reload from factory.
is there a way to run chkdsk on the windows file system from linux?
You can repair any Windows boot issues following instructions quoted below:
Quote:
To restore Windows XP MBR
1: Boot with Windows XP CD in the drive
2: Hit any key to boot from the CD
3: Wait for installer to load drivers in memory
4: When asked to press enter to install, type: r
5: When asked which Windows installation would you like to log onto,
if there is only one, type: 1 (and hit enter)
6: When asked to type the Administrator password, I hit enter without
typing anything which will be the administrator password for most OEM
Windows installations, (No password). If you installed Windows XP
yourself and added an administrator password, type this password.
7: At the prompt type: fixmbr (and hit enter)
-**CAUTION** and a warning appear
8: When asked "Are you sure you want to write a new MBR?:" type: y
-The new master boot record has been successfully written.
9: When the prompt returns, type: exit
-The computer re-boots and Windows kernel is loaded.
After getting Windows to boot properly, you can reinstall grub with the four commands below from terminal in Ubuntu live CD session. Try and specify Fedora's /boot partition as the root (the grub configuration files of Fedora) because Fedora's kernel changes often, so does Ubuntu, but probably not as often. In the example below I'll assume Fedora's /boot partition is /dev/sda5:
Quote:
sudo grub
root (hd0,4)
setup (hd0)
quit
Reboot, now you should be able to boot all three. You may have to repeat the grub repair when Ubuntu has a kernel update.
You can use your neighbor's XP CD to do the repair if yours don't give you the option to do so. There are many third party boot CD's that can do it also.
You can use your neighbor's XP CD to do the repair if yours don't give you the option to do so. There are many third party boot CD's that can do it also.
my restore cd doesn't give me the option, and i don't really know what my neighbors have.. i was wondering if the gparted boot cd would work? if not, do you recommend the ultimate boot cd from your link?
sda2 is a FAT32 partition which makes it the restore partition. The message you say you get when trying to boot xp
Quote:
"Preparing System Recovery Option"
would indicate you are using a restore partition. Your fdisk output shows sda1 as the only ntfs partition. Your entries for xp in both Ubuntu and Fedora menu.lst show xp on (hd0,1) which is wrong. The correct entry should be "rootnoverify (hd0,0)" -no quotes in Fedora menu.lst if that's the one you last installed and are using.
I'm also not sure if sda1 needs to be active for xp to boot, sda2 the restore partition is now marked active.
sda2 is a FAT32 partition which makes it the restore partition. The message you say you get when trying to boot xp would indicate you are using a restore partition. Your fdisk output shows sda1 as the only ntfs partition. Your entries for xp in both Ubuntu and Fedora menu.lst show xp on (hd0,1) which is wrong. The correct entry should be "rootnoverify (hd0,0)" -no quotes in Fedora menu.lst if that's the one you last installed and are using.
I'm also not sure if sda1 needs to be active for xp to boot, sda2 the restore partition is now marked active.
yancek, thank you so much!! you are the Man!!
i actually wondered about that, but thought it had to be right because another pc i have that has vista and both linux distros has this:
# title Other
# rootnoverify (hd0,0)
# chainloader +1
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista/Longhorn Restore Disk (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows Vista
root (hd0,1)
savedefault
makeactive
chainloader +1
so i assumed the pc with the problem should be similar.
obviously i was wrong..
btw, i dnld the ultimate boot cd and tried to run chkdsk with it, to no avail.. it came back with UMB's unavailable a few times followed by some German which i couldn't understand.. last was "beliebige Taste drucken" and it just sit there.. i have no clue what it was doing..
thanks again!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.