Ubuntu won’t boot – error: attempt to read or write outside of disk ‘hd0’

so the other day I unplugged my PC running Ubuntu 18.04 LTS (it was completely shut down when I plugged it out), and a week later, I plugged it back in and since then I can’t boot it with that issue:

"error: attempt to read or write outside of disk 'hd0'" "Entering rescue mode..." "grub rescue>" 

The PC has a single 120GB SSD installed, single partition, and I can’t really remember what partition type it is.

PC: Core2Quad Q8200 2.33GHz 6GB DDR2 RAM Asus P5K-SE motherboard ((some low spec AMD gpu with 1GB of memory)) Crucial 120GB SSD 

Just don’t tell me I have to reinstall Ubuntu, for the 3rd time now.

EDIT: turns out it was a faulty… SATA cable.

Install Windows 10 Alongside Existing Ubuntu 19.04 Build in a Separate Hard Disk Drive

I am using Ubuntu 19.04 and due to gaming I want to install Windows 10 in a separate hard disk drive.

I have searched a lot and I haven’t managed to find clear instructions, especially in a build that has already Ubuntu installed. Most guides I found made it clear that you should install Windows 10 first.

So how can I install Windows 10 in a second hard disk drive in a manner that doesn’t conflict with my Ubuntu installation, as this is the one I am using all day except from gaming?

Please don’t link the other questions in here about this same issue because obviously they weren’t helpful.

Rearranging disk partitions

I’m trying to set up a dual boot system on an HP Pavilion laptop. I can’t get it to boot into Ubuntu directly on power-up, and I think the reason is that the Windows partition comes before the Ubuntu partition. This behavior seems to be coming from the underlying HP software, since pressing F9 on bootup gives me a menu where I can select which system to boot. That menu, however, does not offer any way to change the sequence of its entries.

I think I can solve the problem by reordering the partitions using gparted from a live system on a memory stick, but I don’t know if it’s sufficient to just change the numbers (doable with fdisk) or if the partitions actually have to be moved within the physical disk. The danger, of course, is that any change of this nature can render the system unbootable. Is there a way to do this safely?

Need help with hard disk Unetbootin on Windows 10

I’m trying to use a hard disk install with Unetbootin to get Xubuntu on my windows 10 laptop. It doesn’t have a disk drive and I don’t have any USBs lying around. So I’m trying to install from hard drive to my laptop like I did with Windows 7. When I select it from the boot menu it gives me a windows error screen as if I tried to use an unfinished install of Windows, asking me to try to recover with the would be installation disc. What do?

How to increase size of root directory (/) with no unallocated space on disk

I’m new to Linux, so I’ll apologize in advance for if I say something stupid.

I’m attempting to dual-boot GalliumOS on my Chromebook. Everything has been going swimmingly for a few weeks, but just today, I started having a problem. After logging in, I’ll get the following error: Xsession: warning: unable to write to /tmp; X session may exit with an error. Clicking okay will bring be back to the login screen, and thus gets me nowhere.

After doing a bit of research, I believe my problem is that my root directory (/) doesn’t have enough allocated space, and is currently completely full. I got it to work once by booting to a terminal and emptying /tmp as well as doing apt-get clean, but that only worked for one login.

I’ve tried finding out how to allocate more space, but none of the help I’ve found has worked for my specific case. I have a live USB of GParted, but it still won’t allow me to extend/shrink any partitions.

If anyone can help me work out how to do this, I’d be very thankful.

Drive Partitions as displayed by GParted

Worst case scenario, I’d just have to do a clean install, but I really don’t want to do that as it’d be a lot of trouble.

Disk Stuck on Read only mode

I’ve been using Ubuntu 16.04 then decided to erase all and clean install 18.04lts. While burning iso to usb rufus told me something about burning method and if anything fails told me to come back and try other method. And installation failed somewhere %90 I acted fast and plugged out the usb burned a new iso, and guess what, It seems like I don’t even have a disk!

I guess ubuntu was trying to fix things when installation was failed, but when I plugged out the usb everything was incomplete and it did reset my disk or something

I got into bios did some research registered (or whatever we should call it) my disk to bios, installed ubuntu 18.04 (don’t forget this part, I did it once) after 10-15 minute of usage I came across with a error which is like “only read system” so I understood that I can’t do any changes. I tried to reinstall but now every install I’m trying it says “ready only system” and doesn’t complete the installation.

I guess I have to change my disk type to read/write (i don’t even know how it became ready only in the first place) but how will I be able to that ? And because I tried to install ubuntu again, ubuntu setup deleted my first install of ubuntu while installation and because it fails due the error, I can’t even use past installation because It’s gone too.

I will attach the error I come across. enter image description here

High Disk Usage /dev/vda3

Ubuntu 16.04.6 LTS

Currently have a website hosted on the above version, it is a VPS.

Under hard disk usage something called /dev/vda3 is using the most space.

85 971.38 MB used out of 99 724.34 MB total.

How can I identify what it is please?

I’m somewhat new to linux so I’m trying to diagnose this myself before calling in help.