Learning of dual OS
dear Linuxers,
so glad to be a member of this group.a view weeks ago i install centos 5.2 on my unused windows disk partition. But so sad, i lost my windows boot.now i can only boot to centos and can not see my windows file. i'm newbie, how i fix this step by step whereas i'm not familyar in linux command line sintax.Tq in advance. |
@ Reply
Hi cent_uries@yahoo.co.id,
Welcome to LQ!!! Please spell out your words correctly. It is "thank you" not "Tq". We do not promote the use of text language here at LQ. Let get back to the issue. As you said that you installed CentOS on your free partition. Are you sure that you did not delete any of the Windows partition? Login as root on your CentOS machine, open up terminal (this you can do by right clicking on your desktop and then select open terminal) and type the following commands: 1. Code:
df -h Code:
ls -l /dev/ | grep sd |
Maybe T3RM1NVT0R can deduce more from the output of those commands than I could. But I think more info is required, such as the output (logged in as root) from
Code:
/sbin/fdisk -l Code:
cat /boot/grub/device.map Code:
cat /boot/grub/grub.conf |
Thank You
Quote:
I'm not sure deleted it. this is my output: df -l Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 17870152 4411028 12536708 27% / /dev/hda6 101086 24549 71318 26% /boot tmpfs 512716 0 512716 0% /dev/shm ls -l /dev/|grep sd brw-r----- 1 root disk 8, 0 Jan 27 16:59 sda please help..what should i do now.. |
dear johnsfine, here is i got
root@localhost fernando]# df -l Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 17870152 4411028 12536708 27% / /dev/hda6 101086 24549 71318 26% /boot tmpfs 512716 0 512716 0% /dev/shm [root@localhost fernando]# ls -l /dev/|grep sd brw-r----- 1 root disk 8, 0 Jan 27 16:59 sda [root@localhost fernando]# cat /boot/grub/device.map # this device map was generated by anaconda (hd0) /dev/hda [root@localhost fernando]# cat /grub/grub.conf cat: /grub/grub.conf: No such file or directory [root@localhost fernando]# cat /boot/grub/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,5) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img #boot=/dev/hda default=3 timeout=5 splashimage=(hd0,5)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-274.17.1.el5) root (hd0,5) kernel /vmlinuz-2.6.18-274.17.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.18-274.17.1.el5.img title CentOS (2.6.18-274.12.1.el5) root (hd0,5) kernel /vmlinuz-2.6.18-274.12.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.18-274.12.1.el5.img title CentOS (2.6.18-92.el5) root (hd0,5) kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.18-92.el5.img title Other rootnoverify (hd0,4) chainloader +1 |
I still can't nail down the details without seeing the partition table, which was why I asked for.
Code:
/sbin/fdisk -l There are many ways to edit text files. If you know a way, using that way would be best. If you do not know, someone can figure out which simple GUI text editor is available in your Centos system to make it easy to edit text files. At the end of the file you listed ( /boot/grub/grub.conf ) there were three lines: Code:
title Other |
When you start up your computer, a "boot loader" (probably grub...) runs first, using various files that you will find in the "/boot" directory. This (/boot/grub/grub.conf) is where the menu of choices, that appears when you turn on the machine, actually comes from.
One of those choices should be one that will start Windows. Most distros these days know how to detect that Windows is present, and to set up grub.conf correctly for you. The technical reason why you can't start Windows right now is that the "master boot record" (MBR) has been changed so that it will start grub, not the Windows loader (NTLOADER.EXE). But there ought to be an entry in grub.conf right now that will tell grub to hand control of the system over to the Windows loader, so that "Windows" becomes one of your choices and "it just works." (You can see from the grub web-site or manual-page ... Google grub start windows ... that grub certainly can "chain" from one boot-loader to another, in order to be able to start Windows or any other OS that requires the use of "its own" boot loader.) Maybe the thing to do next is: post a copy of your /boot/grub/grub.conf file here. |
Quote:
Unless I missed it buried in something the OP posted, we still don't know whether the Windows partition survived at all, and if it survived we don't know its partition number. |
Hi all, cent_uaries,
I might be wrong but perhaps i can help rephrase the question to cent_uaries in Bahasa Melayu. I understand this is an English speaking forum so I'd like to apologise first and hope moderators/senior members/members would allow this. I meant to help cent_uaries so he'd can provide the answer to the partition numbers. Kepada cent_uaris, a). Jadi root, taipkan Code:
fdisk -l c). Bila kamu udah dapat partitions tadi kamu reply pada thread ini. Jangan lupa ya, output tadi kamu enclose dalam code block supaya formating nya ngak lari. i hope you would be able to get partitons listing and reply back. If its (the window partition) is still there, others should be able to tell you how to get grub to work with the windows partition. Regards, |
Quote:
But regarding your specific advice Quote:
Quote:
|
Quote:
please see below details: [root@localhost /]# /sbin/fdisk -l Disk /dev/hda: 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/hda1 2 8683 69738165 f W95 Ext'd (LBA) /dev/hda2 * 8684 9728 8393962+ 7 HPFS/NTFS /dev/hda5 2 6120 49150836 7 HPFS/NTFS /dev/hda6 6121 6133 104391 83 Linux /dev/hda7 6134 8683 20482843+ 8e Linux LVM what should i do now. my appologize to disappoint everybody. |
Do you know how to edit text files in Linux?
At the end of the file you listed ( /boot/grub/grub.conf ) there were three lines: Code:
title Other You need to change the 4 to 1 because your bootable Windows is on the partition grub calls hd0,1. (The rest of Linux calls that sda2). The word Other is what will be displayed on the grub menu to offer you the choice f what to boot. You can edit that to say anything you want to appear in that menu. |
It's done. thank you very very much..
[QUOTE=johnsfine;[/QUOTE]
Dear Johnfine, You're the best.It's done. Now i could access my windows with all my data. thank you for guide me, and also all off you who help me for solution, aazkan tq for understanding my poor english,sundialsvcs and T3RM1NVT0R thank you for your kindess..God Bless you All. |
All times are GMT -5. The time now is 09:37 AM. |