LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-19-2016, 07:00 AM   #31
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589

Is there an option in bios to change from efi to mbr mode?
 
Old 01-19-2016, 07:02 AM   #32
aggelalex
LQ Newbie
 
Registered: Jun 2014
Distribution: Deepin
Posts: 22

Original Poster
Rep: Reputation: Disabled
It said that it converted it, but the warning said something like a reboot or running some commands with an (8) sign asside them or so. I'll try again.

Edit:
After running it again the same output:
Code:
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Another Edit:
I ran
Code:
sudo kpartx /dev/sda5
I got no output, and return variable is 0
Code:
$ echo $?
0
Going to reboot and see what happens.

Last edited by aggelalex; 01-19-2016 at 07:11 AM.
 
Old 01-19-2016, 07:09 AM   #33
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
after reboot what is the output of fdisk -l
 
Old 01-19-2016, 07:21 AM   #34
aggelalex
LQ Newbie
 
Registered: Jun 2014
Distribution: Deepin
Posts: 22

Original Poster
Rep: Reputation: Disabled
Btw running kpartx didn't work

Output of fdisk -l
Code:
Disk /dev/ram0: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram1: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram2: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram3: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram4: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram5: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram6: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram7: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram8: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram9: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram10: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram11: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram12: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram13: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram15: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/loop0: 670.8 MiB, 703389696 bytes, 1373808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1            2048  20973567  20971520    10G 27 Hidden NTFS WinRE
/dev/sda2        20973568 335415295 314441728   150G  7 HPFS/NTFS/exFAT
/dev/sda3       335415296 335419391      4096     2M ef EFI (FAT-12/16/32)
/dev/sda4       366430207 625141759 258711553 123.4G  f W95 Ext'd (LBA)
/dev/sda5       366430208 617328639 250898432 119.7G ef EFI (FAT-12/16/32)
/dev/sda6       617330688 625141759   7811072   3.7G 82 Linux swap / Solaris




Disk /dev/sdb: 58.6 GiB, 62914560000 bytes, 122880000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc09da630

Device     Boot Start       End   Sectors  Size Id Type
/dev/sdb1  *       32 122879999 122879968 58.6G  b W95 FAT32


Disk /dev/zram0: 479.6 MiB, 502919168 bytes, 122783 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/zram1: 479.6 MiB, 502919168 bytes, 122783 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/zram2: 479.6 MiB, 502919168 bytes, 122783 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/zram3: 479.6 MiB, 502919168 bytes, 122783 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
 
Old 01-19-2016, 07:53 AM   #35
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,503

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
The original boot repair output you posted showed Grub in the MBR booting Deepin and windows. Your problems began with Android and trying to install EFI. EFI and MBR boots are not compatible and something is not going to boot which you have seen.

Your fdisk output in the last post is a mess. You have sda3 which should be the BIOS boot partition labelled as an EFI partition. Not sure if the label matters but your sda5 partition is also labelled EFI and shows as FAT32 format. That was your Deepin partition. Not sure what you did to get that result. I don't know if you will be able to boot from an EFI partition which is on a logical drive, at least with window. Your windows partitions seem intact.

Your computer may be UEFI capable but from your original posts, you had windows and Deeping installed using MBR and should not have tried to use EFI.
 
Old 01-19-2016, 08:02 AM   #36
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
what is the output of parted -l
 
Old 01-19-2016, 08:47 AM   #37
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
This is to change deepin partition back to linux I Don't know what partiton 3 was originally or what was on it but needs to be changed to something besides EFI
from live cd
gdisk /dev/sda
p #to get partition numbers
t #to change partition type for deepian partition numeber type to 8300. L will give a list of partition type numbers
r #gdisk goes into recovery/convert mode
g #converts gpt to mbr
w #write partition table
reboot and try to reinstall grub again
 
Old 01-19-2016, 09:29 AM   #38
aggelalex
LQ Newbie
 
Registered: Jun 2014
Distribution: Deepin
Posts: 22

Original Poster
Rep: Reputation: Disabled
I made partition 3, in hope that it would do something.
gparted shows /dev/sda5 (Deepin partition) as ext4
parted -l has no output

Looks like a mess? it is...

https://drive.google.com/folderview?...Ek&usp=sharing
 
Old 01-19-2016, 09:40 AM   #39
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
delete partition 3 remove the esp flag from deepin partition using gparted might be to able reinstall grub without rebooting

Last edited by colorpurple21859; 01-19-2016 at 09:44 AM.
 
Old 01-19-2016, 10:04 AM   #40
aggelalex
LQ Newbie
 
Registered: Jun 2014
Distribution: Deepin
Posts: 22

Original Poster
Rep: Reputation: Disabled
I did everything that you said colorpurple21859, and and install grub using boot-repair. Going to reboot and see wut will mi drive doo .
This is the pastebin link:
http://paste.ubuntu.com/14575862/
 
Old 01-19-2016, 10:23 AM   #41
aggelalex
LQ Newbie
 
Registered: Jun 2014
Distribution: Deepin
Posts: 22

Original Poster
Rep: Reputation: Disabled
Thank YOUUUUU!
OMG you saved me!!! I realy want to scream, but I'm obliged to be silent.
Thanks to all of you people that gave some of your precious time and helped me with my problem.
Thank you oldtechaa.
Thank you yancek.
But special thanks go to colorpurple21859, who enlightened me with his brilliant ideas and helped me fix my hard drive without loosing a bit of my data (even though I sometimes was a pain in the ass...).
I realy love you, all of you. Again thank you!
Also thanks to:
Lubuntu team
Boot-Repair team (even if they refused to help me without a contribute, but it's OK, I understand why they need it)
and of course linuxquestions.org team
Thank you very very much.
Going to sign this thread as done.


Back to Deepin:


If you wanna check it out:
http://www.deepin.org/?language=en

Last edited by aggelalex; 01-19-2016 at 10:31 AM.
 
Old 01-19-2016, 10:52 AM   #42
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Great
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting problem at time of kernel booting biyabani Linux - Newbie 4 03-10-2013 01:50 AM
[SOLVED] Problem booting generic kernel and another problem with fluxbox - libpng warning Switch7 Slackware 17 11-14-2009 03:36 AM
booting problem prince_linux Red Hat 1 10-22-2005 04:01 AM
booting problem none1983 Linux - General 8 08-05-2005 06:40 PM
Problem Booting (LILO problem) moger Linux - General 21 01-13-2004 07:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:34 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