2
to fix this issue, i follow these steps
1,after “Warning!! Unsupported GPT (GUID Partition Table) detected. Use GNU Parted” , press alt+F2
2,command shell:
parted /dev/sda
mklabel msdos
yes
quit
3,reboot,and you can install android-x86 with offical method
- android
- android-x86
asked Aug 25, 2017 at 6:52
1234395412343954
2,2913 gold badges18 silver badges18 bronze badges
1
-
thanks bro, you help my days
– Fadhly Permata
Nov 6, 2021 at 18:35
Add a comment
|
Sorted by:
Reset to default
Your Answer
Sign up or log in
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Name
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy
Browse other questions tagged
- android
- android-x86
or ask your own question.
Browse other questions tagged
- android
- android-x86
or ask your own question.
-
ponyboy
- Posts: 5
- Joined: 2012-01-30 20:15
Debian install has hidden windows [SOLVED]
#1
Post
by ponyboy » 2012-01-30 20:37
Hi,
Due to problems during the debian install, windows XP is not visible to grub….
I bought a refurbished compaq xn6110 with windows XP. I had 2 failed attempts at installing debian 6.0.3 from USB stick (using the netinst iso) and the 3rd was successful. The first attempt successfully repartitioned the disk and formatted the new partitions, but failed installing the base system due to a corrupt file (presumably a glitch in the download or writing to the USB stick).
I re-did the download and write of the iso and tried again. I only told it to format swap because the previous formatting had been successful. This time it «hung» during the disk formatting and after an hour I powered off (not a great idea I know, but the previous formatting had taken less than 20 mins (it’s only a 40GB disk). When I powered back up without the USB stick (to check Windows was intact), it refused to boot (a black screen saying something like «unable to load OS»).
On the 3rd attempt debian installed successfully and is very lovely. Windows XP was listed on one of the final screens as an existing OS which would be available as dual-boot. But on startup grub does not list windows as a boot option.
In case it is useful, fdisk -l returns
Code: Select all
Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xef2aef2a
Device Boot Start End Blocks Id System
/dev/sda1 1 2432 19531250 7 HPFS/NTFS
/dev/sda2 * 2432 3040 4882432 83 Linux
/dev/sda3 3040 4864 14654465 5 Extended
/dev/sda5 3040 3283 1951744 82 Linux swap / Solaris
/dev/sda6 3283 4864 12701696 83 Linux
I tried using cfdisk to toggle the boot flag for /dev/sda1 (seemed like an obvious thing to try). It gave me a black screen with the message:
Code: Select all
FATAL ERROR: Bad primary partition 0: Partition begins after end-of-disk
Any suggestions for what to try next? Can I fiddle with anything like grub settings to see if it will include windows? Or would it be easier just to re-install windows into the NTFS partition?
Thanks,
Alistair
Last edited by ponyboy on 2012-06-22 20:25, edited 1 time in total.
-
dilberts_left_nut
- Administrator
- Posts: 5402
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 6 times
- Been thanked: 49 times
Re: Debian install has hidden windows
#3
Post
by dilberts_left_nut » 2012-01-30 20:54
ponyboy wrote:I tried using cfdisk to toggle the boot flag for /dev/sda1 (seemed like an obvious thing to try). It gave me a black screen with the message:
Code: Select all
FATAL ERROR: Bad primary partition 0: Partition begins after end-of-disk
This does not look promising…
It would seem your MBR might contain incorrect information about that partition.
Installing testdisk, and using it to identify and correct that data, could help.
AdrianTM wrote:There’s no hacker in my grandma…
-
kiyop
- Posts: 3984
- Joined: 2011-05-05 15:16
- Location: Where persons without desire to improve themselves fear to tread, in Japan
Re: Debian install has hidden windows
#4
Post
by kiyop » 2012-01-31 23:41
dilberts_left_nut wrote:Installing testdisk, and using it to identify and correct that data, could help.
I partly agree with the above post of dilberts_left_nut.
But be careful when you use testdisk. If you try to do wrong thing, you can destroy all the partitions.
ponyboy wrote:I tried using cfdisk to toggle the boot flag for /dev/sda1 (seemed like an obvious thing to try). It gave me a black screen with the message:
Code: Select all
FATAL ERROR: Bad primary partition 0: Partition begins after end-of-disk
cfdisk gives often similar error message for even correct partition table.
The result of «fdisk -l» does not show strange thing about /dev/sda1 (NTFS), which seems to be windows XP partition.
You can check if windows XP is able to be detected by GRUB2 (os-prober) by executing the following:
If the above command gives information on Windows XP on /dev/sda1, maybe your grub2 configuration is wrong.
=====
jheaton5 wrote:Try this in a termianal as root:
«update-grub» instead of «update_grub»
-
ZACHARiAS
- Posts: 57
- Joined: 2011-12-21 01:58
- Location: Lisbon
Re: Debian install has hidden windows
#6
Post
by ZACHARiAS » 2012-02-01 19:12
do a clean install of debian.
after that if XP is not visible on grub try this:
Code: Select all
1) # sudo apt-get install os-prober
2) # sudo gedit /etc/default/grub
3) add the following line after # GRUB_CMDLINE_LINUX_DEFAULT
# GRUB_DISABLE_OS_PROBER=false
4) # sudo update-grub2
if you want you can edit your grub boot timeout 2 it worked for me dozens of times
you can find that in here 2: http://wiki.debian.org/Grub
let us know how it went.
kudos
-
ZACHARiAS
- Posts: 57
- Joined: 2011-12-21 01:58
- Location: Lisbon
Re: Debian install has hidden windows
#8
Post
by ZACHARiAS » 2012-02-01 20:40
ponyboy wrote:Thanks all — now working!
os-prober said that windows existed and update-grub did what is says on the tin. I now have a dual-boot system as planned.
Cheers!
glad to ear that mate!
please do add [SOLVED] tag to the topic title
kudos
-
kiyop
- Posts: 3984
- Joined: 2011-05-05 15:16
- Location: Where persons without desire to improve themselves fear to tread, in Japan
Re: Debian install has hidden windows
#9
Post
by kiyop » 2012-02-01 23:36
Congratulations!
I just mention:
ZACHARiAS wrote:3) add the following line after # GRUB_CMDLINE_LINUX_DEFAULT
# GRUB_DISABLE_OS_PROBER=false
If you worry about disabling with /etc/default/grub, you should remove the first «#», thus:
GRUB_DISABLE_OS_PROBER=»false»
I am not sure whether double quotation is necessary or not.
Please refer to
http://ubuntuforums.org/showthread.php?t=1195275
-
ZACHARiAS
- Posts: 57
- Joined: 2011-12-21 01:58
- Location: Lisbon
Re: Debian install has hidden windows
#10
Post
by ZACHARiAS » 2012-02-02 00:24
kiyop wrote:Congratulations!
I just mention:
ZACHARiAS wrote:3) add the following line after # GRUB_CMDLINE_LINUX_DEFAULT
# GRUB_DISABLE_OS_PROBER=falseIf you worry about disabling with /etc/default/grub, you should remove the first «#», thus:
GRUB_DISABLE_OS_PROBER=»false»
I am not sure whether double quotation is necessary or not.Please refer to
http://ubuntuforums.org/showthread.php?t=1195275
yea mate. afaik, everyone know that when seeing i.e. «#» or «$» should only copy+paste or type everuthing exept for those symbols :p
kudos
-
kiyop
- Posts: 3984
- Joined: 2011-05-05 15:16
- Location: Where persons without desire to improve themselves fear to tread, in Japan
Re: Debian install has hidden windows
#11
Post
by kiyop » 2012-02-02 11:43
Most persons may know that «#» before a command means that the command should be executed with root privilege, after prompt «#».
Most persons may know that «#» in text files means that the words after it are comments and are not executed nor dealt with.
To ponyboy;
What did you do to solve your problem?
Did you reinstall debian?
-
ponyboy
- Posts: 5
- Joined: 2012-01-30 20:15
#1 2007-02-23 23:07:23
- scippio
- Member
- Registered: 2007-01-02
- Posts: 60
BIG problem with disk
hi, i have one 320GB disk — ext3 ( with data ) …. in ubuntu i mount without problem. but in arch:
# mount -t ext3 /dev/hdd1 /mnt/
mount: wrong fs type, bad option, bad superblock on /de…. etc.
# cfdisk /dev/hdd1
FATAL ERROR: Bad primary partition 0: Partition ends in the final partial cylinder…. press any key to exit cfdisk
# fdisk /dev/hdd
# p
Device boot:
/dev/hdd1
Start:
1
End:
38914
Blocks:
312571223+
Id:
ee
System:
EFI GPT
… in ubuntu… all is ok .. normal ext3 disk …. but in arch
… ( sorry for my «english»
… )
#2 2007-02-24 11:21:58
- FUBAR
- Member
- From: Belgium
- Registered: 2004-12-08
- Posts: 1,029
- Website
Re: BIG problem with disk
«cfdisk /dev/hdd1» will not work since your device is a partition. «cfdisk /dev/hdd» will work, though.
Run an fsck on the disk first, then mount it:
fsck /dev/hdd1
mount /dev/hdd1 /mnt
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
#3 2007-02-24 17:18:27
- scippio
- Member
- Registered: 2007-01-02
- Posts: 60
Re: BIG problem with disk
# fsck /dev/hdd1
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
Couldn’t find ext2 superblock, trying….. etc.
#4 2007-02-25 04:12:29
- chaosgeisterchen
- Member
- From: Kefermarkt, Upper Austria
- Registered: 2006-11-20
- Posts: 550
Re: BIG problem with disk
Measured by the fact, that your Arch installation was properly finished, I would rather tend to say that it’s a hardware problem (data loss..). These utilities are supposed to work at any rate.
Well, it’s still working under different distributions (you mentioned Ubuntu)? Why don’t you try to mount it manually in a Ubuntu live session? Should this also work, the problem definitely lies with your Arch installation, although the problem is (for me, as a newbie) very uncommon, I assume. I can only repeat myself by assuming, that these basic utilities should work at any rate.
celestary
Intel Core2Duo E6300 @ 1.86 GHz
kernel26
KDEmod current repository
#5 2007-02-25 11:53:00
- scippio
- Member
- Registered: 2007-01-02
- Posts: 60
Re: BIG problem with disk
I maybe discovered this problem…. I mount disk in ubuntu liveCD without any problem…, but i use fdisk on disk:
# sudo fdisk /dev/hdd1
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 38912.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk /dev/hdd1: 320.0 GB, 320070303232 bytes
255 heads, 63 sectors/track, 38912 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Command (m for help):
#6 2007-02-25 11:59:31
- Pajaro
- Member
- Registered: 2004-04-21
- Posts: 884
Re: BIG problem with disk
so, did you fix the problem?
Or will you have to repartition?
#7 2007-02-25 12:23:54
- T-Dawg
- Forum Fellow
- From: Charlotte, NC
- Registered: 2005-01-29
- Posts: 2,736
Re: BIG problem with disk
are you sure you have the right disk? Traditionally hdd is your first secondary IDE channel, or a cdrom. Do an ls on /dev to see all available drives.
#8 2007-02-25 13:19:56
- scippio
- Member
- Registered: 2007-01-02
- Posts: 60
Re: BIG problem with disk
T-Dawg wrote:
are you sure you have the right disk? Traditionally hdd is your first secondary IDE channel, or a cdrom. Do an ls on /dev to see all available drives.
Yes, it is right disk.
#9 2007-02-25 14:02:49
- rayjgu3
- Member
- From: Chicago IL usa
- Registered: 2004-07-04
- Posts: 695
Re: BIG problem with disk
scippio wrote:
T-Dawg wrote:
are you sure you have the right disk? Traditionally hdd is your first secondary IDE channel, or a cdrom. Do an ls on /dev to see all available drives.
Yes, it is right disk.
T-Dawg yes he has correct drive as displayed on «sudo fdisk /dev/hdd1» code .
plus hdd is slave on secondary
scippio what tool did you use to partition this drive? just curious
because of the error your getting
it does look as though it would be a good idea grab a utility/diagnostic tool from manufacturer of drive & test it
you may even need to repartition the drive which i dont envy, i have a 320GB drive thats full now & the only way i could back this up is to about 7-8 dvd’s or buy another drive
#10 2007-02-25 14:28:04
- scippio
- Member
- Registered: 2007-01-02
- Posts: 60
Re: BIG problem with disk
scippio what tool did you use to partition this drive?
I can’t remember… gparted or fdisk… I’m not sure…
I’m going to friend now. I’m going to copy my data on his disk and to repartition/reformat the disk…
so you needn’t thinking about it… I’ll try to make it by myself …..thanks for replies




