LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-04-2017, 07:46 AM   #1
Sol33t303
Member
 
Registered: Jul 2017
Posts: 69

Rep: Reputation: Disabled
Exclamation Trouble deleting my Ubuntu partition to make more space for my Fedora 26 partition


After deleting Ubuntu 16.04, whenever I boot it says

Code:
.
error:Unknown Filesystem
Entering rescue mode
Also whenever I use Gparted from a live session it shows me this error
Code:
The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
According to redhat in rescue mode I should try and edit grub but neither cd nor vim is working, so how can I edit the file? I'm also open to any other possible fixes that may work.
 
Old 09-04-2017, 03:21 PM   #2
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,189

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
run ls at the grubrescue prompt to see if you can determine which partition fedora is on then run the following
where ? is your partition number for fedora. If you have more than one drive will have to change the hd0 accordingly.

Code:
grub rescue> set prefix=(hd0,?)/boot/grub2
grub rescue> set root=(hd0,?)do
grub rescue> insmod normal
grub rescue> normal
This is assuming your not using uefi mode and did install grub in fedora. since you didn't give any information on your system setup(drives, partitions, efi or bios, fedora grub, other distros, etc)
 
Old 09-05-2017, 01:33 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 6,740
Blog Entries: 3

Rep: Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623
Quote:
Originally Posted by Sol33t303 View Post
deleting Ubuntu
you don't do that.
you simply install something else over it.
have you tried that?

what other OSs and partitions are on the hard drive?
what do you want to install over ubuntu?

ps: i think the gparted error is harmless.
 
Old 09-05-2017, 05:59 AM   #4
Sol33t303
Member
 
Registered: Jul 2017
Posts: 69

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
run ls at the grubrescue prompt to see if you can determine which partition fedora is on then run the following
where ? is your partition number for fedora. If you have more than one drive will have to change the hd0 accordingly.

Code:
grub rescue> set prefix=(hd0,?)/boot/grub2
grub rescue> set root=(hd0,?)do
grub rescue> insmod normal
grub rescue> normal
This is assuming your not using uefi mode and did install grub in fedora. since you didn't give any information on your system setup(drives, partitions, efi or bios, fedora grub, other distros, etc)
Because I have to live boot, it's hard to get a lot of the specific info from my system, here what I remember of the top of my head.
I believe the partition number for Fedora was 9, though I could be wrong. I have a 480 GB SSD boot drive where I store all of my OSís and two 2 TB HDDs. Other than Fedora I now only have Windows 10 and Windows 8 partitions left on my SSD. When I finished installing Fedora a few weeks ago I noticed that it had automatically replaced the GRUB that I had when I was using Ubuntu 16.04. My motherboard uses a UEFI and it works fine, I had no issues with using it, I was not aware of there being a UEFI version and a BIOS version so I presume Iím using the UEFI version. Right after posting this Iíll go and check to make sure that I was right with what partition number Fedora has, Iíll edit this if it's wrong.
EDIT: The output listed hd0msdos 1 and 2 and hd0msdos 5-9 which seems very strange, obviously I'm not using msdos so this highly confuses me, it also outputs hd1 without msdos or numbers and hd2 msdos 2 which i presume is the backup of my laptop i did a while ago using dd.

Last edited by Sol33t303; 09-05-2017 at 06:16 AM.
 
Old 09-05-2017, 06:02 AM   #5
Sol33t303
Member
 
Registered: Jul 2017
Posts: 69

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
you don't do that.
you simply install something else over it.
have you tried that?

what other OSs and partitions are on the hard drive?
what do you want to install over ubuntu?

ps: i think the gparted error is harmless.
What I mean is, I already have a Fedora partition, but I was trying to delete my Ubuntu partition so my Fedora partition can then use the unallocated space. I put lots of info into my reply to colorpurple21859 answer.
 
Old 09-05-2017, 06:10 AM   #6
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,189

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
from the live cd in a terminal post the output of
Code:
fdisk -l
that is a small L and
Code:
efibootmgr
 
Old 09-05-2017, 06:21 AM   #7
Sol33t303
Member
 
Registered: Jul 2017
Posts: 69

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
from the live cd in a terminal post the output of
Code:
fdisk -l
that is a small L and
Code:
efibootmgr
Here is the output of sudo fdisk -l (it didn't work without sudo)
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: 1.4 GiB, 1459982336 bytes, 2851528 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: 1.8 TiB, 2000398933504 bytes, 3907029167 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: dos
Disk identifier: 0x40a863e7

Device     Boot   Start     End Sectors  Size Id Type
/dev/sda1  *          0 2955679 2955680  1.4G  0 Empty
/dev/sda2       2927216 2931951    4736  2.3M ef EFI (FAT-12/16/32)


Disk /dev/sdb: 447.1 GiB, 480103981056 bytes, 937703088 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: 0x3e140a9e

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1  *         2048   1026047   1024000   500M  7 HPFS/NTFS/exFAT
/dev/sdb2         1026048 351253272 350227225   167G  7 HPFS/NTFS/exFAT
/dev/sdb3       351254526 937701375 586446850 279.7G  5 Extended
/dev/sdb5       921176064 937701375  16525312   7.9G 82 Linux swap / Solaris
/dev/sdb6       603824128 605921279   2097152     1G 83 Linux
/dev/sdb7       605923328 622288895  16365568   7.8G 82 Linux swap / Solaris
/dev/sdb8       622290944 727148543 104857600    50G 83 Linux
/dev/sdb9       727150592 921165823 194015232  92.5G 83 Linux

Partition table entries are not in disk order.


GPT PMBR size mismatch (976773167 != 3907029167) will be corrected by w(rite).
Disk /dev/sdc: 1.8 TiB, 2000398934016 bytes, 3907029168 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
Disklabel type: gpt
Disk identifier: 87FBADF8-15DC-4F04-AC58-BF4F5674B993

Device         Start       End   Sectors   Size Type
/dev/sdc1         34    204833    204800   100M EFI System
/dev/sdc2     204834    466977    262144   128M Microsoft reserved
/dev/sdc3     466978 154742817 154275840  73.6G Microsoft basic data
/dev/sdc4  336011298 658403327 322392030 153.7G Microsoft basic data
/dev/sdc5  755443712 755533823     90112    44M Microsoft basic data
/dev/sdc6  755533824 968624127 213090304 101.6G Linux filesystem
/dev/sdc7  968624128 976771071   8146944   3.9G Linux swap

Partition 1 does not start on physical sector boundary.
Partition 2 does not start on physical sector boundary.
Partition 3 does not start on physical sector boundary.
Partition 4 does not start on physical sector boundary.
Here is the output of efibootmgr
Code:
efibootmgr: EFI variables are not supported on this system.
Looking at the output of sudo fdisk -l I allocated around 90 GB to Fedora so it looks like i remembered correctly

Last edited by Sol33t303; 09-05-2017 at 06:24 AM.
 
Old 09-05-2017, 06:53 AM   #8
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,189

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
you say your running efi mode and you have efi partitions, but the live cd is running in cmos/bios/msdos mode whatever it happens to be called so you may have a mixture of both. Without knowing how fedora was installed it is hard to say. If Fedora was installed in efi mode you should be able to select fedora by the esc or one of the f-keys to select booting fedora from the efi-firmware. If fedora was installed in msdos/bios mode try the following at the grub-rescue prompt
Code:
grub rescue> set prefix=(hd1,9)/boot/grub2
grub rescue> set root=(hd1,9)
grub rescue> insmod normal
grub rescue> normal
 
Old 09-05-2017, 07:33 AM   #9
Sol33t303
Member
 
Registered: Jul 2017
Posts: 69

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
you say your running efi mode and you have efi partitions, but the live cd is running in cmos/bios/msdos mode whatever it happens to be called so you may have a mixture of both. Without knowing how fedora was installed it is hard to say. If Fedora was installed in efi mode you should be able to select fedora by the esc or one of the f-keys to select booting fedora from the efi-firmware. If fedora was installed in msdos/bios mode try the following at the grub-rescue prompt
Code:
grub rescue> set prefix=(hd1,9)/boot/grub2
grub rescue> set root=(hd1,9)
grub rescue> insmod normal
grub rescue> normal
I said I presumed that I was using efi partitions as I didn't know there was a bios version and an efi version you can download, looks like Iím using the bios version though, but after this has been fixed I might look into trying to use Fedora with efi as the ability to boot from firmware sounds interesting. I tried the commands from your first post but replaced ? with a 9 but when I entered insmod normal it said the file /boot/grub2/i386-pc/normal.mod could not be found. When I tried the ones you just suggested when i entered insmod normal it said that there wasn't a partition found.
 
Old 09-05-2017, 07:50 AM   #10
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,189

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
It is hard to give advice when efi and msdos/bios booting is mixed together. did you try the esc or f-keys to get something to boot or change the boot order of the drives? Another thing to try is to go into firmware/bios and disable compatabity mode.you have several other linux partitions on that same drive are there other distros installed? if so you could try the same commands but change grub2 to grub if they are not fedora based distro, and the partition number for the corresponding partition.
 
Old 09-06-2017, 06:00 AM   #11
Sol33t303
Member
 
Registered: Jul 2017
Posts: 69

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
It is hard to give advice when efi and msdos/bios booting is mixed together. did you try the esc or f-keys to get something to boot or change the boot order of the drives? Another thing to try is to go into firmware/bios and disable compatabity mode.you have several other linux partitions on that same drive are there other distros installed? if so you could try the same commands but change grub2 to grub if they are not fedora based distro, and the partition number for the corresponding partition.
I'm not sure what the other partitions are, according to gparted from my Ubuntu live boot partition 6 is only 1 GB so I presume it's something for the system, partitions 5 and 7 are for linux swap and partition 9 is for Fedora 26. I'm not sure what partition 8 is, it has 50 GB assigned to it so it's probably not something to do with the system. It's not another Linux installation though because I don't ever remember creating that partition. After I disabled compatibility mode my PC couldnít recognise any of my drives.
 
Old 09-06-2017, 08:23 AM   #12
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,189

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
did you run the commands in Post #9? If so, it should have got you to the grub menu if fedora was installed in compatibility mode. What about disk sdc, it has windows with an efi partition and a linux file system on it of 101G? What is in the efi folder on partitions sda2 and sdc1? Is secureboot turned off? Have you tried to change the boot order of drives? Will the live cd boot with compatibility mode turned off?
 
Old 09-07-2017, 01:28 PM   #13
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 6,740
Blog Entries: 3

Rep: Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623
Quote:
Originally Posted by Sol33t303 View Post
Here is the output of sudo fdisk -l (it didn't work without sudo)
Code:
(skipping ramdisks and live system)

Disk /dev/sda: 1.8 TiB, 2000398933504 bytes, 3907029167 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: dos
Disk identifier: 0x40a863e7

Device     Boot   Start     End Sectors  Size Id Type
/dev/sda1  *          0 2955679 2955680  1.4G  0 Empty
/dev/sda2       2927216 2931951    4736  2.3M ef EFI (FAT-12/16/32)


Disk /dev/sdb: 447.1 GiB, 480103981056 bytes, 937703088 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: 0x3e140a9e

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1  *         2048   1026047   1024000   500M  7 HPFS/NTFS/exFAT
/dev/sdb2         1026048 351253272 350227225   167G  7 HPFS/NTFS/exFAT
/dev/sdb3       351254526 937701375 586446850 279.7G  5 Extended
/dev/sdb5       921176064 937701375  16525312   7.9G 82 Linux swap / Solaris
/dev/sdb6       603824128 605921279   2097152     1G 83 Linux
/dev/sdb7       605923328 622288895  16365568   7.8G 82 Linux swap / Solaris
/dev/sdb8       622290944 727148543 104857600    50G 83 Linux
/dev/sdb9       727150592 921165823 194015232  92.5G 83 Linux

Partition table entries are not in disk order.


 GPT PMBR size mismatch (976773167 != 3907029167) will be corrected by w(rite).
Disk /dev/sdc: 1.8 TiB, 2000398934016 bytes, 3907029168 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
Disklabel type: gpt
Disk identifier: 87FBADF8-15DC-4F04-AC58-BF4F5674B993

Device         Start       End   Sectors   Size Type
/dev/sdc1         34    204833    204800   100M EFI System
/dev/sdc2     204834    466977    262144   128M Microsoft reserved
/dev/sdc3     466978 154742817 154275840  73.6G Microsoft basic data
/dev/sdc4  336011298 658403327 322392030 153.7G Microsoft basic data
/dev/sdc5  755443712 755533823     90112    44M Microsoft basic data
/dev/sdc6  755533824 968624127 213090304 101.6G Linux filesystem
/dev/sdc7  968624128 976771071   8146944   3.9G Linux swap

Partition 1 does not start on physical sector boundary.
Partition 2 does not start on physical sector boundary.
Partition 3 does not start on physical sector boundary.
Partition 4 does not start on physical sector boundary.
something is wrong here.
 
1 members found this post helpful.
Old 09-07-2017, 02:51 PM   #14
DVOM
Member
 
Registered: Nov 2010
Posts: 171

Rep: Reputation: 37
Quote:
Originally Posted by colorpurple21859 View Post
you say your running efi mode and you have efi partitions, but the live cd is running in cmos/bios/msdos mode whatever it happens to be called so you may have a mixture of both. Without knowing how fedora was installed it is hard to say. If Fedora was installed in efi mode you should be able to select fedora by the esc or one of the f-keys to select booting fedora from the efi-firmware. If fedora was installed in msdos/bios mode try the following at the grub-rescue prompt
Code:
grub rescue> set prefix=(hd1,9)/boot/grub2
grub rescue> set root=(hd1,9)
grub rescue> insmod normal
grub rescue> normal
Shouldn't this be something like "sdb,9"? Or "hd2,9"?

Last edited by DVOM; 09-07-2017 at 02:54 PM.
 
Old 09-07-2017, 03:48 PM   #15
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,189

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
Shouldn't this be something like "sdb,9"? Or "hd2,9"?
grub counts drives from 0 and partitions from 1
 
  


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
partition space is little reducing after deleting dir. mazhar07 Linux - Server 1 05-29-2011 06:42 AM
Deleting files in Ubuntu doesn't free up space on Linux partition. kechlion Linux - General 7 12-28-2009 03:57 PM
Deleting Reserved Space on Doc Partition jman82s Linux - Hardware 1 12-13-2007 02:14 AM
Deleting unused space from a partition Tsukasa7 Linux - Newbie 2 08-31-2005 03:05 PM
deleting/resizing swap partition / increasing hd space saranga2000 Linux - Hardware 1 12-09-2004 11:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:32 AM.

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