[SOLVED] Error attempt to read or write outside of disk 'hd0' (Ubutnu 14.04)
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Error attempt to read or write outside of disk 'hd0' (Ubutnu 14.04)
I'm new to Linux and wanted to install a distro for my old laptop (HP Compac nc6400). Tried with lubuntu, xubuntu, ubuntu (14.04 all of them) and lxle. When i installed one of them and booted i got
Code:
error: attempt to read or write outside of disk 'hd0'
Code:
entering rescue mode...
Code:
grub rescue>
I booted again from the Live CD on Ubuntu 14.04 and installed Boot-Repair, and ran recommended repair but did nothing and still got the problem.
I dont know what to do so please help!
Last edited by DKnight009; 04-23-2014 at 05:09 PM.
Did you note the URL that boot repair created at paste.ubuntu.com ?. We need that so we can see what happened.
Else just run it again and let us know the URL.
Couple of quick solutions:
- allocate a small /boot partition at the beginning of the disk, and allow the root (/) to use the rest (minus swap)
- force the installer to only use say 100 Gig for Linux.
The latter is probably easiest, although it's been so long since I bothered with Ubuntu I can't tell you how to do it. I'll see if I can find a guide on the net.
If you re-install, Ubuntu will do the same again. Have a look at this for an idea of what the screens you need to use look like. Note: this is just an indication.
If it was me, I'd get to the partitioning stage, and:
- select "Something Else" - you'll get a list of your disk layout
- highlight the big (~316Gig) partition (/dev/sda1, ext4)
- click "Change" (bottom left)
- amend the size to 100 Gig, and ensure the mountpoint is /
The buttons for "primary" and "beginning of this space" should be pre-selected - if not select them. Ext4 is a good choice for "Use as".
You can go with that to see if it works, or you could additionally use the now free space for /home as that guide suggests. Up to you - /home can be done later, although it can get messy. Or you can just leave the space free for now - I like to have free space for unforseen events. Your choice.
Strictly /tmp and /var are mount-points - they may be on separate partitions. Heading into philosophical (flame-war) territory here - I'd not bother on a first install. /tmp will likely be taken care of for you by the installer.
If you're in the mood, on that kit I'd look at a separate /boot at the begiining of the disk. One gig should be plenty - will allow more flexibility later.
If you're in the mood, on that kit I'd look at a separate /boot at the begiining of the disk. One gig should be plenty - will allow more flexibility later.
That solved the "read or write outside the disk..." problem for me as well!
I'm new to Linux, and had the same problem after partitioning my Win7 drive and installing Ubuntu 18.04LTS. It worked fine in the first, and then, after shutting down the PC I got this same problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.