multi boot problem

I had a windows xp installed on dev/sda1(c: ). Then I installed open suse 11.1 on a different partition(sda8 or sda9 I don not remember).

Everything was working proper. I wanted to edit the grub settings to change the timeout and change default to windows. I did change the timeout to 25 and then checked something else(I do not remember now). When I restarted I got no operating system found.

Then I used the suse 11.1 DVD and did something, I got the suse back and also the failsafe suse in the os choices menu but windows was not there. I logged in and was able to access all the drives except the one in which windows was present(c: ). though I was able to see it when I navigated through /root but the contents were not present.

Then I used a live cd(not suse live). When I logged in, I was able to see all the drives also C, but when I tried to open it, I got a message saying something like "the file system was not valid or is not proper ntfs or something like that.

Is all my data lost? Can I recover them and make them proper. Do I have to make changes to grub.conf? If so please tell me in detail. I am new to linux.

Also tell me where I can learn thing like these.
I have a 40 GB HDD.

need to see the output of

sudo /sbin/fdisk -l [that's the letter l not the number 1]

and let us know just what partition is what.

Welcome to the openSUSE community, I hope you enjoy your stay and become a great member…

Now, do not panic, It happened to me as well, when I was a SuSE beginner. All you have to do, since you can boot in the openSUSE is go to YaST>BootLoader> and get a Suggested Configuration (or something like that, sorry I’m on a mac atm). This will add the xp partition, then make your xp default, from there. The last thing you want to do so you don’t come across that same problem again, is click on the other tab, again I’m not sure what it’s called, but it asks you where to store your GRUB config files… It has check boxes, check all of them to make sure you’ll always have it.

Good luck,

Post back if help is needed.

linux-zrf6:~ # sudo /sbin/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: 0xc557c557

Device Boot Start End Blocks Id System
/dev/sda1 1 1275 10241406 7 HPFS/NTFS
/dev/sda2 * 1276 4863 28820610 f W95 Ext’d (LBA)
/dev/sda5 1276 1373 787153+ 7 HPFS/NTFS
/dev/sda6 1374 2197 6610747 7 HPFS/NTFS
/dev/sda7 2197 2256 481918+ 82 Linux swap / Solaris
/dev/sda8 2257 2909 5245191 83 Linux
/dev/sda9 2910 3825 7357738+ 83 Linux
/dev/sda10 3826 4863 8337703+ 7 HPFS/NTFS
linux-zrf6:~ # 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: 0xc557c557

Device Boot Start End Blocks Id System
/dev/sda1 1 1275 10241406 7 HPFS/NTFS
/dev/sda2 * 1276 4863 28820610 f W95 Ext’d (LBA)
/dev/sda5 1276 1373 787153+ 7 HPFS/NTFS
/dev/sda6 1374 2197 6610747 7 HPFS/NTFS
/dev/sda7 2197 2256 481918+ 82 Linux swap / Solaris
/dev/sda8 2257 2909 5245191 83 Linux
/dev/sda9 2910 3825 7357738+ 83 Linux
/dev/sda10 3826 4863 8337703+ 7 HPFS/NTFS
linux-zrf6:~ #

And also something seems to be wrong with my audio. It was playing fine in windows. I do get some sound when I shutdown.

I can not help with sound but others will.

There is a bug in the YAST BootLoader program, so do a update before using it again. (My understanding)

You Master Partition Table looks ok. Need to see XP’s Volume Boot Record. Run code and post output of xxd command.

dd if=/dev/sda1 of=xpvbr count=1 bs=512
xxd xpvbr

You must run dd command from root, if you do not know how, below is how I do it.

  1. press Aft+F2
    2)type in konsolesu
    3)type in root password

Note: I do check code but I do make typo mistakes. Be very careful with the dd command.

or

If your live cd has “testdisk” installed, you can run it and select from its 2nd menu
“advanced”, it can check Xp’s primary VBR with its backup. Read HOw-To at [TestDisk - CGSecurity](http://www.cgsecurity.org
/index.html?testdisk.html)

The other NTFS partitions are data and good ?

So what I suggested did not work ?

The sound issue is 100% a kernel update. The latest release bugs the sound in openSUSE.

If you’d searched this community you’ll get solusns in olders posts.

About Booting Windows:
open the file menu.lst located at /boot/grub. Add the following lines at the end of the file.


title Windows XP
rootnoverify (hd0,0)
chainloader +1

There is a field named default in the file. Change it to n-1 where title Windows XP (the block u just added) is the n-th entry. For example if first title field is title opensuse then to boot opensuse by default edit default 0. If you are confused understanding this part of editing default then just append the block, save the file and exit. Reboot, Hopefully it’s fixed.

About Sound:
Are you trying to play mp3 files which are not playing? Then may be due to missing codec. What is the error you are getting while trying to play audio? Can you see the volume control on your panel? You may try to play ogg Vorbis (.ogg) files to test whether sound driver is ok or not. Let us know the error msg you are getting.

siddharth_suse wrote:

Then I used a live cd(not suse live). When I logged in, I was able to see all the drives also C, but when I tried to open it, I got a message saying something like "the file system was not valid or is not proper ntfs or something like that.

His problem is not booting into XP it is his XP partition is bad some how. It is possible he needs to boot his XP cd and run 'chkdsk" but if the Volume Boot Record is corrupt it could trash the data. That is the reason for him to post the VBR or have ‘testdisk’ check it.

dd if=/dev/sda1 of=xpvbr count=1 bs=512
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.0334211 s, 15.3 kB/s
linux-zrf6:~ # xxd xpvbr
0000000: eb48 904e 5446 5320 2020 2000 0208 0000 .H.NTFS …
0000010: 0000 0000 00f8 0000 3f00 ff00 3f00 0000 …?..?..
0000020: 0000 0000 8000 8000 fb8a 3801 0000 0000 …8…
0000030: 0000 0c00 0000 0000 af88 1300 0000 0302 …
0000040: ff01 0080 efc5 3702 0008 fa90 90f6 c280 …7…
0000050: 7502 b280 ea59 7c00 0031 c08e d88e d0bc u…Y|…1…
0000060: 0020 fba0 407c 3cff 7402 88c2 52be 817d . …@|<.t…R…}
0000070: e836 01f6 c280 7456 b441 bbaa 55cd 135a .6…tV.A…U…Z
0000080: 5272 4b81 fb55 aa75 45a0 417c 84c0 783e RrK…U.uE.A|…x>
0000090: 7505 83e1 0174 3766 8b4c 10be 057c c644 u…t7f.L…|.D
00000a0: ff01 668b 1e44 7cc7 0410 00c7 4402 0100 …f…D|…D…
00000b0: 6689 5c08 c744 0600 7066 31c0 8944 0466 f…D…pf1…D.f
00000c0: 8944 0cb4 42cd 1372 05bb 0070 eb7d b408 .D…B…r…p.}…
00000d0: cd13 730a f6c2 800f 84e8 00e9 8d00 be05 …s…
00000e0: 7cc6 44ff 0066 31c0 88f0 4066 8944 0431 |.D…f1…@f.D.1
00000f0: d288 cac1 e202 88e8 88f4 4089 4408 31c0 …@.D.1.
0000100: 88d0 c0e8 0266 8904 66a1 447c 6631 d266 …f…f.D|f1.f
0000110: f734 8854 0a66 31d2 66f7 7404 8854 0b89 .4.T.f1.f.t…T…
0000120: 440c 3b44 087d 3c8a 540d c0e2 068a 4c0a D.;D.}<.T…L.
0000130: fec1 08d1 8a6c 0c5a 8a74 0bbb 0070 8ec3 …l.Z.t…p…
0000140: 31db b801 02cd 1372 2a8c c38e 0648 7c60 1…r*…H|`
0000150: 1eb9 0001 8edb 31f6 31ff fcf3 a51f 61ff …1.1…a.
0000160: 2642 7cbe 877d e840 00eb 0ebe 8c7d e838 &B|…}.@…}.8
0000170: 00eb 06be 967d e830 00be 9b7d e82a 00eb …}.0…}.*…
0000180: fe47 5255 4220 0047 656f 6d00 4861 7264 .GRUB .Geom.Hard
0000190: 2044 6973 6b00 5265 6164 0020 4572 726f Disk.Read. Erro
00001a0: 7200 bb01 00b4 0ecd 10ac 3c00 75f4 c300 r…<.u…
00001b0: 0000 0000 0000 0000 4452 2069 7320 636f …DR is co
00001c0: 6d70 7265 7373 6564 000d 0a50 7265 7373 mpressed…Press
00001d0: 2043 7472 6c2b 416c 742b 4465 6c20 746f Ctrl+Alt+Del to
00001e0: 2072 6573 7461 7274 0d0a 0000 0000 0000 restart…
00001f0: 0000 0000 0000 0000 83a0 b3c9 0000 55aa …U

Where should I use test disk?

I tried to play a .ogg file using amarok but did not hear any sound. There was a sound when the system started but it stopped and showed an error message. I think there is something wrong with the drivers.

This is nothing to do with the thread question. Start a new thread in the correct section, you will get better help that way:
SDB:AudioTroubleshooting - openSUSE

And you are right. Something seems to be wrong with my c: XP partition. All other drives are working fine since I am able to access them from suse 11.1

Can you not boot XP?

No I cannot boot into XP

Is this earlier quoted still the same?

/dev/sda1 1 1275 10241406 7 HPFS/NTFS
/dev/sda2 * 1276 4863 28820610 f W95 Ext’d (LBA)
/dev/sda5 1276 1373 787153+ 7 HPFS/NTFS
/dev/sda6 1374 2197 6610747 7 HPFS/NTFS
/dev/sda7 2197 2256 481918+ 82 Linux swap / Solaris
/dev/sda8 2257 2909 5245191 83 Linux
/dev/sda9 2910 3825 7357738+ 83 Linux
/dev/sda10 3826 4863 8337703+ 7 HPFS/NTFS

You say you access windows C:
But we need to know which partition it is as there are 3 NTFS partitions there.

The output from dd if=/dev/sda1 of=xpvbr count=1 bs=512 post #10. For what ever reason GRUB was written to the XP’s Volume Boot Record (VBR), that is NOT good.

The VBR contains 2 parts. one is the boot code for the OS to boot, in this case it must be XP’s. The 2nd part ,more important is the Bios Parameter Block (BPB). The BPB contains info for the partition parameters, if it is wrong the partition will fail to read correctly. The BPB starts at data offset 0003 and ends at 0050. Grub over wrote BPB starting at offset 003E. Till this is fixed NO NOT mess with the XP partition or data corruption will result.

There is a backup copy of the VBR at the very end of XP’s partition.

Now how to fix, ‘testdisk’ will fix it, but you must read it’s How-To and mostly to ‘recover XP boot sector’.

The other way is to use ‘dd’ again, but must know the ending sector for the XP partition.
To get ending sector:

sudo /sbin/fdisk -l -u

add the start sector # (+) the end sector # = needed sector #

dd if=/dev/sda of=xpbuvbr count=1 bs=512 skip=xxx   "xxx=XP's needed sector
 #"

Will now look at saved file and verify if it is correct before proceeding. (I’m in XP so could not completely verify sector #'s)

xxd xpbuvbr

you should see at end of file -left side

A disk read error occurred 
NTLDR is missing 
NTLDR is compressed 
Press Ctrl+Alt+Del to restart

only if you see the above text:

dd of=/dev/sda1 if=xpbuvbr count=1 bs=512 

this code will write the data in xpbuvbr to the vbr.

Are you sure?

Because in your earlier post you asked me to be careful of the typos. I did the dd thing. Then I restarted. When it went into suse it did not show the normal GUI login. So I used the reboot command after I put root and the login password.

I went into Suse Failsafe option and was able to get GUI and login properly. Guess what, my audio is working too and am able to play .mp3 files. :slight_smile:

(No hurt intended) Please make sure you have posted the right thing because I do not want to lose this failsafe GUI login using the dd command, because I have to reinstall my XP, since I do not have many options left. I am a newbie in linux and I cannot operate things if I cant see them(GUI).

Are you sure?
No, I did make a mistake but you would not have seen the text as I requested you to look for with the ‘xxd’ command and would not have written raw data directly to hdd. All other posted ‘dd’ commands wrote data only to a file so no problems should have resulted.

Linux Command Directory: dd

Just what is ‘dd’ doing==
1)if=input data --read from device or file
2)of= write to device or file
3)bs=read # of bits
4)count= number of times to read ‘bs’
5)skip=used for ‘if’
6)seek=used for ‘of’

till the last dd command all you did was to read raw data from hdd to a file, so no problems could have been done.

Now for my error and explanation:
The XP program I was using list the MBR data directly listing the partition start sector and total sectors. linux fdisk list the start sector and end sector.

add the start sector # (+) the end sector # = needed sector #
it should be

end sector =needed sector

Corrected what to do:

sudo /sbin/fdisk -l -u
dd if=/dev/sda of=xpbuvbr count=1 bs=512 skip=xxx   "xxx=XP's end sector
 # from fdisk above "

Will now look at saved file and verify if it is correct before proceeding.

xxd xpbuvbr

you should see at end of file -left side

A disk read error occurred 
NTLDR is missing 
NTLDR is compressed 
Press Ctrl+Alt+Del to restart

!!Very important!! if the above text is missing-STOP

dd of=/dev/sda1 if=xpbuvbr count=1 bs=512

The above code will write directly to the hdd-the very first sector of sda1 , the XP’s VBR.