LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-19-2010, 12:28 PM   #16
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435

Quote:
PBR - Partition Boot Record (Second Stage Bootloader)
Thank you, I just looked it up.

I am about to go offline for a while.

If you fail to make progress, please consider sending the LQ user Saikee a (polite) "Private Message" asking him to take a look at this thread, when he has the time (you would, of course, give him the link to it!).

One way to do this:
Use LQ's Search to locate a post by him, or just go here: http://www.linuxquestions.org/questi...2/#post4034125
Click on his name at the left.... Send email to Saikee.

He is awesome when it comes to multi-boot, grub, grub2 and "chainloading". And I think he also boots win (which I don't, so my grub is relatively simple to set up).

Good luck, I'll follow up this thread when I get back.

HTH
 
Old 07-19-2010, 12:48 PM   #17
boki15
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Here is the log:
1st I formated with win, booted ubuntu,installed 1. syslinux 2. grub2, extracted mbr&pbr (WIN-x), formated with mkfs.vfat, and again installed syslinux&grub2, then extracted again mbr&pbr (LINUX-x)
Code:
#~$ sudo umount /dev/sdb1
#~$ sudo ./syslinux/linux/syslinux /dev/sdb1
#~$ sudo mkdir /media/test
#~$ sudo mount /dev/sdb1 /media/test
#~$ sudo grub-install --no-floppy --root-directory=/media/test /dev/sdb
Installation finished. No error reported.
#~$ sudo dd if=/dev/sdb of=/media/500gbUSB/test2/WIN-grub2-backup.mbr bs=512 count=1
1+0 Datensätze ein
1+0 Datensätze aus
512 Bytes (512 B) kopiert, 0,000202121 s, 2,5 MB/s
#~$ sudo dd if=/dev/sdb1 of=/media/500gbUSB/test2/WIN-sysliux-backup.pbr bs=512 count=1
1+0 Datensätze ein
1+0 Datensätze aus
512 Bytes (512 B) kopiert, 0,00017593 s, 2,9 MB/s
#~$ sudo umount /dev/sdb1
#~$ sudo rm -R /media/test
#~$ sudo mkfs.vfat -n 8GBMSDHC /dev/sdb1
mkfs.vfat 3.0.7 (24 Dec 2009)
#~$ sudo ./syslinux/linux/syslinux /dev/sdb1#~$ sudo mkdir /media/test#~$ sudo mount /dev/sdb1 /media/test#~$ sudo grub-install --no-floppy --root-directory=/media/test /dev/sdb
Installation finished. No error reported.
#~$ sudo dd if=/dev/sdb of=/media/500gbUSB/test2/LINUX-grub2-backup.mbr bs=512 count=1
1+0 Datensätze ein
1+0 Datensätze aus
512 Bytes (512 B) kopiert, 0,000151416 s, 3,4 MB/s
#~$ sudo dd if=/dev/sdb1 of=/media/500gbUSB/test2/LINUX-sysliux-backup.pbr bs=512 count=1
1+0 Datensätze ein
1+0 Datensätze aus
512 Bytes (512 B) kopiert, 0,000212108 s, 2,4 MB/s
I uploaded extracted pbrs and mbrs here (if you want to compare them)
HASHCODES
Code:
WIN-grub2-backup.mbr:
md5: 0c846a5645727e4b7e8bfcb20a2fd633
sha1: 4ababd2ef1fd827fe702421fb0aaafbba9dd096b

LINUX-grub2-backup.mbr:
md5: 0c846a5645727e4b7e8bfcb20a2fd633
sha1: 4ababd2ef1fd827fe702421fb0aaafbba9dd096b

WIN-syslinux-backup.pbr:
md5: 8e97fffeff8f9b3bab48ac5cfe55d485
sha1: c0fc1f757a9573f9308aaa61879421dc31824b15

LINUX-syslinux-backup.pbr:
md5: 67a4f1ed8c4be71b7889845a3f4a5455
sha1: 01f4a9412bd5a3f27f94d71e26a9057081db5a0d
We can see on hash codes that mbr is completly the same, so it could be syslinux related (pbr is not the same). Here are the dump files and you can see that PBR is completly different (as long as I see only from begin until "FAT32 "

Win
Code:
.X.MSDOS5.0
Linux (mkfs.vfat)
Code:
.X.msdosfs

Last edited by boki15; 07-19-2010 at 12:50 PM.
 
Old 07-19-2010, 12:54 PM   #18
boki15
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Original Poster
Rep: Reputation: 0
thanks for advices, I'll contact him. I still hope to solve it by myself. It's just anoying to have script which does everything, except formating. I want to avoid need for commercial software (ms) to create multiboot usb.
 
Old 07-21-2010, 01:41 AM   #19
boki15
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Ok I got the problem , preparing the solution, going to post later everything with logs.
 
Old 07-21-2010, 04:41 AM   #20
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Excellent! Looking forward to this..
 
  


Reply



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
fdisk created fat32 partition, which type 0b or 0c? onedingo Linux - General 14 09-25-2022 12:55 PM
Can the fat32 fs created by linux recognised by dos? kuertensun Linux - Newbie 4 09-07-2005 11:39 PM
Created new FAT32 partition, after that..GRUB console haunting me..what 2 do??? free_mumia Linux - Newbie 5 01-04-2004 07:02 PM
Created new FAT32 partition and now KDE freezes while loading WM Smile005 Linux - Software 4 11-09-2003 12:23 PM
Can't see files created using RH9 on the FAT32 partition in WinXP jvala Linux - General 1 09-02-2003 10:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 PM.

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
Open Source Consulting | Domain Registration