LinuxQuestions.org
Review your favorite Linux distribution.
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-25-2010, 04:25 PM   #31
fbobraga
Member
 
Registered: Jul 2010
Location: São Paulo - Brasil
Distribution: Debian 7 / Crunchbang 11
Posts: 229

Rep: Reputation: 41

Quote:
Originally Posted by Brains View Post
(...)
Which is why Grub put two entries for fbobraga.
and I think the same happened to animeman too, but he don't realized it...
 
Old 07-25-2010, 04:46 PM   #32
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I put forward an explanation why Grub installs two booting entries for a hard disk with a utility partition in sda1 and a Windows in sda2.

It is common for a PC manufacturer to load the drivers into a utility partition with a partition ID number specific to the manufacturer but foreign to a MS Windows. Inside there would have been the installation image of the MS Windows.

Here is the partition types supported with couple of the utility partition types reserved for some manufacturers
Code:
01 FAT12                 12 Compaq diagnostics    4F QNX4.x 3rd part       81 Minix / old Linux     A8 Darwin UFS            E1 DOS access
 02 XENIX root            14 Hidden FAT16 <32M     50 OnTrack DM            82 Linux swap / Solaris  A9 NetBSD                E3 DOS R/O
 03 XENIX usr             16 Hidden FAT16          51 OnTrack DM6 Aux1      83 Linux                 AB Darwin boot           E4 SpeedStor
 04 FAT16 <32M            17 Hidden HPFS/NTFS      52 CP/M                  84 OS/2 hidden C: drive  B7 BSDI fs               EB BeOS fs
 05 Extended              18 AST SmartSleep        53 OnTrack DM6 Aux3      85 Linux extended        B8 BSDI swap             EE GPT
 06 FAT16                 1B Hidden W95 FAT32      54 OnTrackDM6            86 NTFS volume set       BB Boot Wizard hidden    EF EFI (FAT-12/16/32)
 07 HPFS/NTFS             1C Hidden W95 FAT32 (LB  55 EZ-Drive              87 NTFS volume set       BE Solaris boot          F0 Linux/PA-RISC boot
 08 AIX                   1E Hidden W95 FAT16 (LB  56 Golden Bow            88 Linux plaintext       BF Solaris               F1 SpeedStor
 09 AIX bootable          24 NEC DOS               5C Priam Edisk           8E Linux LVM             C1 DRDOS/sec (FAT-12)    F4 SpeedStor
 0A OS/2 Boot Manager     39 Plan 9                61 SpeedStor             93 Amoeba                C4 DRDOS/sec (FAT-16 <   F2 DOS secondary
 0B W95 FAT32             3C PartitionMagic recov  63 GNU HURD or SysV      94 Amoeba BBT            C6 DRDOS/sec (FAT-16)    FB VMware VMFS
 0C W95 FAT32 (LBA)       40 Venix 80286           64 Novell Netware 286    9F BSD/OS                C7 Syrinx                FC VMware VMKCORE
 0E W95 FAT16 (LBA)       41 PPC PReP Boot         65 Novell Netware 386    A0 IBM Thinkpad hiberna  DA Non-FS data           FD Linux RAID autodetec
 0F W95 Ext'd (LBA)       42 SFS                   70 DiskSecure Multi-Boo  A5 FreeBSD               DB CP/M / CTOS / ...     FE LANstep
 10 OPUS                  4D QNX4.x                75 PC/IX                 A6 OpenBSD               DE Dell Utility          FF BBT
 11 Hidden FAT12          4E QNX4.x 2nd part       80 Old Minix             A7 NeXTSTEP              DF BootIt

When a user purchases a new PC and power it up the utility partition sda1 will get booted and MS installer will be installed the Windows into a second partition sda2. The active partition can then be switched from sda1 to sda2 and Windows will get booted later on. The manufacturer's partition is regarded as foreign and won't get mounted but otherwise available when needed.

I have seen enough Linux installers to confirm that a Linux installer always searches every partition of every hard disk and includes it as a booting alternative if the boot sector is not empty and has a boot sector code inside.

Since sda1 has to be a bootable partition when the PC is first switched on and sda2 now has a MS Windows so both could have entries in Grub's boot menu.

Grub never knows what kind of Windows inside sda2 so it would just name it as Windows and whatever information it could obtain for sda1.

This is no an error as normally the installer would give the user a chance to re-name each booting choice but most users simply accept the default and never think of it again.

I have tried booting 100+ Linux before and the simplest way to do it is by putting the boot loader inside each partition. This fills the boot sector and triggers the partition being included for booting. Once a boot loader constructed the entire booting menu from every system. This behaviour is pretty standard in the Linux installers.

Last edited by saikee; 07-25-2010 at 04:51 PM.
 
Old 07-25-2010, 06:56 PM   #33
animeman
Member
 
Registered: Dec 2009
Location: Bad Axe mi
Distribution: gentoo, Android, bohidI
Posts: 85

Original Poster
Rep: Reputation: 17
0ok its win 7 and both partitions have a boot folder in them like when i look at sda1 and sda2 ive tryed to boot into both of them both have failed i have not tryed reply num 29 but its not my computer so i cant just be there to look at it....
 
Old 07-25-2010, 07:53 PM   #34
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 363

Rep: Reputation: 77
To restore a Sony VIAO, press the F8 key during boot-up (booting into the recovery partition from bios as mentioned a few hours ago). This is assuming it is running the operating system that came pre-installed on the computer. You should have the option to keep all data and just recover the operating system, which should in turn get it booting properly. You may also have the option to just fix the boot loader.
If you cannot boot into your recovery partition, there may be utilities available from Sony's site that can be burned to CD or similar which will boot it, (again, as previously mentioned).
 
Old 07-25-2010, 08:13 PM   #35
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 363

Rep: Reputation: 77
This page may be of some help. After a little reading and clicking on links provided. I recommend using the "Reinstall Programs or Drivers" which should also give the option to access VAIO Hardware Diagnostics which may resolve the problem without a recovery. Click on the links of the options you have in the recovery partition and read up.
After you get Windows back, come back here for help to restore grub with your Ubuntu Live CD, OR... god forbid...Super Grub disk.

Last edited by Brains; 07-25-2010 at 08:14 PM.
 
Old 07-25-2010, 09:52 PM   #36
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 363

Rep: Reputation: 77
Ook!

Did a little deductive reasoning, you did not mention the model number of the VIAO, using the model number one would probably find it originally came with Vista. And the recovery partition has been deleted. The small partition is either a boot or system partition. If one tried out Win 7 by installing in a second drive, it would have created a boot partition on the first drive. Then, after becoming fond of Win 7, turn around and installed over Vista on the first drive and deleted the now not-required recovery partition, since one create recovery CDs before deleting Vista and recovery partition, it is not needed. But the little partition had to stay. Why?...

Well, I had a friend whose Vista broke down on a Toshiba lappy. I told him I would fix it and also install a trial of Win 7 since the drive had lots of space. But I opted to put Win 7 in the first (fastest) partition as I knew he would eventually prefer it. Trouble is, when I deleted all four original partitions on the drive, (boot, system, recovery and OS partitions), there was no space left on the drive to recreate partitions. That caught me off guard, never seen that before, good thing I had a dd backup image of the drive before I did anything and recovered everything.

Then I proceeded to delete/wipe just the last three partitions and keep the little one at the beginning, (similar to this case). I created a partition (primary) for installing Win 7 and allocated it high on the drive to leave 1 GB of free space at the beginning of the drive including the little partition as there was a bad sector in this area that originally put Vista on hiatus, then deleted the little partition. This worked, it seemed that without that little partition, the drive appeared useless and could not be used till the partition table contained information regarding another partition, only then the little one could be deleted and the drive still had a partition and remaining free space. I then shrunk the new partition to make room for installing the original Vista off newly created recovery CDs at the back of the drive.

I'm starting to think we are facing a similar situation and that's why the little partition is still there. Because by rights, this VIAO should have at least three original partitions, (system, recovery, OS), possibly four like the Toshiba I worked on, but all that is left is the little one and the OS partition. And the little system partition is still there because there appeared to be no usable drive without it.

Go ahead and get rid of it like I did on the Toshiba, you have the recovery CDs you created before getting rid of Vista to fall back on.
 
Old 07-26-2010, 01:06 AM   #37
animeman
Member
 
Registered: Dec 2009
Location: Bad Axe mi
Distribution: gentoo, Android, bohidI
Posts: 85

Original Poster
Rep: Reputation: 17
well actually i have a win 7 recovery disk but my issue is that i cant even get into any thing to try to save the boot loader for windows i can boot into the cd and i have tryed to repair the installation though and have had no such luck and yes it did come with vista but i wiped and reformated the WHOLE disk so i have no idea whats going on though
 
Old 07-26-2010, 02:27 AM   #38
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 363

Rep: Reputation: 77
Tell you what:

I'll drop a link to the best tutorial for restoring Windows 7 boot loader with installation media, and a link to restore Windows boot loader in the MBR without installation media (Section 16), and pull out of this one because I don't think you are being straight up with us, or to quote Saikee, a lack of information from the OP. In post #12 it is clearly obvious there are two NTFS partitions, neither of which I'm sure was created by the Linux installer. I've installed Windows 7 umpteen times on single drive systems and it does not create a separate boot partition unless specified during installation. So you obviously did not reformat/wipe the entire drive.
Now...
You're telling me you don't know what's going on, and a couple people in this thread have told you umpteen times to eliminate the little partition and reinstall grub which should do the trick licketty split, but it appears we are talking to a rock.
See ya!
 
Old 07-26-2010, 06:42 AM   #39
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
animeman ,

Members in here can rebuild your Win7 boot loader system files from scratch but we need to know the history of what you have done to the Win7 partition.

If Win7 has been installed as the first partition recognised by its isntallaer then the system files will have "drive C" stamped all over. IF you formatted sda1 as a ntfs partition then the Win7 boot loader will have to call your Win7 in sda2 as the drive D while giving the drive C status to the newly formatted sda1because it would be unavoidably detected fefore sda2. Your Win7 will never boot again because the system files no longer match the drive letter.

Our strategy in Post #24 is to hide the sda1 so that your Win7 in sda2 can become a c-drive again.

If you don't want to try it let us know and we shall stop. If you have tried it and it doesn't work let us know the error message. We have assumed your Win7 partition was previously bootable and has not been damaged. There Grub should be able to fire it up.

We could also advise on how to rebuild the boot loader files inside WIn7 partition with the intsllation DVD, so that it is booted by Win7's own boot loader, but we need to know the error information why it isn't booting now.
 
Old 07-26-2010, 05:00 PM   #40
animeman
Member
 
Registered: Dec 2009
Location: Bad Axe mi
Distribution: gentoo, Android, bohidI
Posts: 85

Original Poster
Rep: Reputation: 17
look guys i am trying but A this is not my computer so i dont have access to it all the time and B i have tryed every thing you have asked except removing the partition i have hid it i have tryed to force boot the sda2 partition and i have tryed to recover windows i have put the cd in and booted into windows and selected command line to see if i could fdisk it and all i got was error this command does not exist in fact i have tryed even basic commands and it says error command does not exist so i have tryed all you asked except removing the partition cuz the people im working with WILL NOT LET ME
edit: also when i select it it only reboots i get no error at all there is nothign it just puts it back to post and then bios then grub agan.

Last edited by animeman; 07-26-2010 at 05:02 PM.
 
Old 07-26-2010, 06:20 PM   #41
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,027

Rep: Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309
Have you looked at the microsoft site for info on how to recover mbr with vista/win7:

http://support.microsoft.com/kb/927392

Step one says to put the vista/win 7 INSTALLATION CD/DVD...
You indicate you are using a Recovery CD?

You might take a look at this site, I've not used it and am not sure if it will work but neosmart makes the EasyBCD software used to modify windows vista/win 7 bootloader which seems to work quite well:

http://neosmart.net/wiki/display/EBC...r+from+the+DVD

Your sda1 partition appears to be too small to be anything but a boot partition??
 
Old 07-26-2010, 06:55 PM   #42
aus9
LQ Guru
 
Registered: Oct 2003
Distribution: Fedora 25 Gnome (Wayland)
Posts: 5,132

Rep: Reputation: Disabled
hi

look you are still posting so me thinks you need help.

I won't offer any grub help because thats not what you want.

Can I suggest you join and post to
http://www.msfn.org/board/index.php

or do a search of MS knowledge base for fixmbr or for the above link forum

2) One of the issues...which occurs on a frequent basis....is MS users not being told the truth....MS calls its first partition C drive....when it might be C partition or if you have a recovery partition ....it might be D partition.

Linux calls those partitions other things....but I know it can get confusing for a MS user.....so go to MS site and get it fixed please.

good luck
 
Old 07-26-2010, 07:03 PM   #43
aus9
LQ Guru
 
Registered: Oct 2003
Distribution: Fedora 25 Gnome (Wayland)
Posts: 5,132

Rep: Reputation: Disabled
Option (2)

If you are keen...boot a live linux cd....

open a terminal and go to root...sudo su....or depending on livecd...su

Code:
sudo su
fdisk -l (if response is /dev/sda use that otherwise its will be /dev/hda in below command)
dd if=/dev/zero of=/dev/sda bs=512 count=1
change sda to hda as suggested....if fdisk thinks you have a dev hda structure.

b) what that does is wipe your MBR

c) now when you load your MS installer cd/dvd....it will find an unformatted hard drive....as it sees no information in MBR

It should offer you an option to format the disk.....well it does in the olde w98SE days

EDIT (d) BTW this means you will have no recovery partition but me thinks that was already borked.

good luck

Last edited by aus9; 07-26-2010 at 07:06 PM. Reason: add (d)
 
Old 07-26-2010, 09:00 PM   #44
animeman
Member
 
Registered: Dec 2009
Location: Bad Axe mi
Distribution: gentoo, Android, bohidI
Posts: 85

Original Poster
Rep: Reputation: 17
ok ive deleated the partition and now windows has defaulted its self back to c drive and it still restarts when i try to boot into it i have my grub to boot into (hd0,2) which means its trying to boot from sda2 right so it should be booting but its not now im not getting a boot.ini file or boot.exe in the boot file on the drive it says a large amounts of files that have different languages then bcd bcd.log bootstat.dat and memtest.exe
 
Old 07-26-2010, 09:02 PM   #45
animeman
Member
 
Registered: Dec 2009
Location: Bad Axe mi
Distribution: gentoo, Android, bohidI
Posts: 85

Original Poster
Rep: Reputation: 17
i do have a bootmgr but its not a exe file....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Dual Boot Class Project Failed prsnrs Linux - Newbie 2 03-19-2010 03:49 PM
I failed at dual booting Fedora and Windows XP on an Aspire One ao751h. Please help? This is my username Linux - General 2 02-02-2010 04:28 AM
ASUS BIOS hardware monitor failed when using dual boot SuSE 9.2 + Windows XP nguyennh Linux - General 3 02-22-2006 07:26 PM
Dual Boot XP/RH8 autoconfig failed Nimbus Linux - Newbie 2 12-15-2004 12:27 PM
Kernel panic after dual-boot XP drive failed phoenixdbq Linux - Newbie 7 02-05-2004 08:17 AM


All times are GMT -5. The time now is 12:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration