Help deleting old partitions
I have a partition using up 200gb for an outdated kernal. I'm trying to delete it with fdisk but I'm having some trouble. As the thread suggests I'm a total noob to linux. My disk is partitioned into at least five other useless sections and I'm trying to make it all sane again.
Don't get me wrong, I've been enjoying all the craziness, it makes me appreciate my laptop a lot more than I used to. When I was younger I messed around with installing open source bios' on old 3rd party mp3 players that my Dad tortured my sister with (First world problems am I right?). That experience opened my eyes to alternatives to big name brands like Apple and Microsoft that operate with business models that encourages users NOT to learn. But enough of my life story, let's take a look at the data shall we? Code:
[madmin@localhost ~]$ sudo fdisk /dev/sda |
Quote:
|
not fdisk - check
need gdisk - nope need any partitioning tool that supports gpt - yes, e.g. PHP Code:
Distro installers commonly incorporate some variation of parted, which is also the basis of gparted, which operates from its own bootable media. |
Just curious, why a sun disklabel(?), if you're having Linux partitions.
Quote:
|
Quote:
When you entered that command shown in red you were already within the fdisk utility, and it interpreted that whole string as some sequence of internal commands. You have now thoroughly scrambled your partition table and have written that scrambled table to the disk. The only reason your system is still running is because the kernel is still using the old table. You will not be able to reboot. Before doing anything else, run Code:
cat /proc/partitions Reference: https://unix.stackexchange.com/quest...ble-of-dev-sda |
In addition to what rknichols has (in #5), you are trying this on /dev/sda, which is usually what the OS is booted of (this is true a lot of times but perhaps not always).
Are the partitions you are trying to remove on same disk drive OS is running from, or do you have another hard drive in your computer that you are trying to do this on? |
you're right I cannot reboot... i'm sitting at the grub command menu from my live usb as we speak. Keep in mind this is an experimental machine. Is my windows os still safe? I don't have any reclaimable space to install another fedora kernal
|
What distribution is on that live USB? What you need now is a bootable medium that includes the testdisk utility, which is the tool of choice for recovering lost partitions.
@dc.901: This is a laptop, which almost certainly has only one disk. |
Fedora 29, I'm booted to the live disk right now
|
Quote:
Further instructions coming once you've done that. |
Error
Code:
[liveuser@localhost ~]$ su - |
Do you have networking? What is the result from "ping -c1 mirrors.fedoraproject.org" ?
|
[root@localhost-live ~]# ping -cl mirrors.fedoraproject.org
ping: bad number of packets to transmit. |
Quote:
|
oops my mistate
Code:
[root@localhost-live ~]# ping c1 mirrors.fedoraproject.org Code:
[root@localhost-live ~]# ping c1 mirrors.fedoraproject.org Edit: it's downloading now. |
All times are GMT -5. The time now is 11:59 PM. |