You are not logged in.

#1 2013-06-28 20:08:37

ritalin
Member
Registered: 2013-06-15
Posts: 32

(SOLVED)Arch won't boot? I/O error?

I'm greeted by this error upon boot and I cannot get to a login shell 

http://i40.tinypic.com/s42phs.jpg

My first instinct was to boot into the gparted live enviorment and get an idea of whats going on, after loading my hard drive an error with my home partition (sda2) became apparent

http://i44.tinypic.com/rh74vc.jpg

I looked into the error specifically

http://i39.tinypic.com/143htgn.jpg

I'm not sure what my next step is. If the drive is failing i'd like to copy some data from my home partition over to an external medium.

Thanks.



-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Last edited by ritalin (2013-06-29 20:14:56)

Offline

#2 2013-06-28 20:23:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: (SOLVED)Arch won't boot? I/O error?

Whoa! Please resize or move those images off the forums and link to them - they are *way* to big for forum guidelines.

As to the error - the error on the last screenshot is odd, e2fsprogs is part of a base archlinux install, and while I don't use it, I'm sure it'd be included with a gparted system.

But it does look like there is a problem with the filesystem.  Is this a new install?  Has this worked before and only stopped now?

The first screen has a lot of errors, but no context: where in the boot process does this happen?  Given the time stamp it must be very late in boot - does your boot normally take that long?  And given that it is your home partition, I'd assume it is when fstab partitions are mounted.  Can you confirm whether the previous steps of the boot proceeded normally?

If so, you can use a live cd or break=post_mount to edit your fstab and remove the home parition entry.  Then you should at least be able to boot into your system (as root) to do maintainance easier.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#3 2013-06-28 20:54:26

ritalin
Member
Registered: 2013-06-15
Posts: 32

Re: (SOLVED)Arch won't boot? I/O error?

Trilby wrote:

Whoa! Please resize or move those images off the forums and link to them - they are *way* to big for forum guidelines.

As to the error - the error on the last screenshot is odd, e2fsprogs is part of a base archlinux install, and while I don't use it, I'm sure it'd be included with a gparted system.

But it does look like there is a problem with the filesystem.  Is this a new install?  Has this worked before and only stopped now?

The first screen has a lot of errors, but no context: where in the boot process does this happen?  Given the time stamp it must be very late in boot - does your boot normally take that long?  And given that it is your home partition, I'd assume it is when fstab partitions are mounted.  Can you confirm whether the previous steps of the boot proceeded normally?

If so, you can use a live cd or break=post_mount to edit your fstab and remove the home parition entry.  Then you should at least be able to boot into your system (as root) to do maintainance easier.

I changed the images over to urls tags instead. This is a relatively new install (few months) yet I've had numerous reboots without issue. I found the missing package issue odd as well since ive resized my home partition using the same live usb enviorment. My boot usually takes under 30 seconds and this error is the first thing to print out during the boot process (time stamp is at 3 seconds in) should I attempt to edit the fstab using gparted?

Offline

#4 2013-06-28 21:01:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: (SOLVED)Arch won't boot? I/O error?

Hmm, my original suspecion was that there was just an error in making the filesystem in a new install - in which case I'd have recommedened just rerunning mkfs on the partition.

This could still be an option if your home directory is backed up - but given that it had been working and just started to give this sort of message is more troubling.  I'm not sure what this could be - but I'd check for potential drive issues with the smart tools (smartctl).

You should still be able to modify the fstab though (gparted should let you).  Just mount the root partition, edit the /mnt(or wherever)/etc/fstab and comment out the line for your home partition.  This should allow you to boot into a root-user session where you could install smartmontools for example if you wanted to check the disk.  Perhaps even simpler would be to run a fsck on the (unmounted) partition - though this will likely just give you all the same errors as your first image, but it's worth a shot.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#5 2013-06-28 21:25:49

ritalin
Member
Registered: 2013-06-15
Posts: 32

Re: (SOLVED)Arch won't boot? I/O error?

Alright, going to edit my fstab and install smartmontools, I'll report back shortly.

Offline

#6 2013-06-28 21:47:06

ritalin
Member
Registered: 2013-06-15
Posts: 32

Re: (SOLVED)Arch won't boot? I/O error?

I have a root shell open and smartmontools installed, what now? Keep in mind I have no GUI access.

Offline

#7 2013-06-28 21:50:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: (SOLVED)Arch won't boot? I/O error?

First, I'd run fsck on the home partition, then check the smart page on the wiki on how to test the partition with smartmontools


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#8 2013-06-28 22:04:17

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: (SOLVED)Arch won't boot? I/O error?

If you have data which is not backed up, I would prioritise making a copy of that first and investigate the issue second. E.g. use something like ddrescue to copy stuff somewhere else. Just that if the disk is dying, you don't know how long you have and it is better to save what you can of your data sooner rather than later.

Note: As I read the message, it is only saying that the package might be missing and not that it is. Since dumpe2fs is part of that package, it seems unlikely that you don't have the package. So probably that is not the cause of the issue in your case.

Last edited by cfr (2013-06-28 22:08:13)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2013-06-28 23:00:51

ritalin
Member
Registered: 2013-06-15
Posts: 32

Re: (SOLVED)Arch won't boot? I/O error?

http://i40.tinypic.com/2cdc0aw.jpg

Running fsck on my home partition gives the same error as booting does. I can't seem get any output from smartctl, and reinstalling gives me errors.

Offline

#10 2013-06-28 23:05:34

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: (SOLVED)Arch won't boot? I/O error?

I've never actually used smartmontools, I just know they are the recommended route if a failing drive is suspected.

Although in hindsight this looks less and less like a failing drive: your other partitions are fine - so it's likely just some sort of corruption of the partition.

I'm outside my expertise, so perhaps others will have better salvage methods - but if it were me, (and if I had a backup of my /home/, which I always do), then I'd just scrap the home partition and recreate it with mkfs.

If you don't have a recent backup, then definitely use a dd-like to as cfr recommends to at least get a duplicate of the partition - though if the partition can't be read this may be analogous to cryogenically freezing grandpa in hopes of someday finding a cure...

Last edited by Trilby (2013-06-28 23:05:55)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#11 2013-06-28 23:28:57

ritalin
Member
Registered: 2013-06-15
Posts: 32

Re: (SOLVED)Arch won't boot? I/O error?

I don't have much data to recover, is it possible to create a temporary partition that I move the few folders over to, then create new home, copy the folders into that, then destroy the termporary and resize the new home over?  Since I have no external medium large enough to include all of the files, and I only want specific things, I'm fine with losing allot of it.

Last edited by ritalin (2013-06-28 23:29:31)

Offline

#12 2013-06-28 23:31:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: (SOLVED)Arch won't boot? I/O error?

Ah ... if you could access your home partition, then yes, that'd be a great idea.  But if you could access your home partition, there would be no problem, right?

Can you mount your home partition from the gparted environment?  If you can, then we need to re-evaluate what the problem is - this would be good news for recovering your partition - but it'd mean my current working hypothesis was wrong.

Last edited by Trilby (2013-06-28 23:33:20)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#13 2013-06-29 00:03:14

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: (SOLVED)Arch won't boot? I/O error?

When you say you can't get anything from smartctl what did you do exactly? And what could you not reinstall?

To use smartctl, you would do something like:

smartctl -a /dev/sdX

where X is the disk. Note that you do not run this on a partition but on the disk. You can also have it run tests. Which tests depends on your hardware but the output will specify what is available.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#14 2013-06-29 01:48:33

ritalin
Member
Registered: 2013-06-15
Posts: 32

Re: (SOLVED)Arch won't boot? I/O error?

cfr wrote:

When you say you can't get anything from smartctl what did you do exactly? And what could you not reinstall?

To use smartctl, you would do something like:

smartctl -a /dev/sdX

where X is the disk. Note that you do not run this on a partition but on the disk. You can also have it run tests. Which tests depends on your hardware but the output will specify what is available.

Your questions are answered in the tinypic link i provided in the post you are referring to

Offline

#15 2013-06-29 02:24:33

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: (SOLVED)Arch won't boot? I/O error?

While it is nice that you posted the pictures of the output, they are incredibly hard to see/read.  Maybe you could use something like wgetpaste to redirect the output to a pastebin like thing insetad.

Offline

#16 2013-06-29 02:25:12

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: (SOLVED)Arch won't boot? I/O error?

It looks as if you installed smartmontools in a way which has made pacman lose track of the files and pacman therefore refuses to overwrite the files because they do not belong to the package in question.

Does /dev/sda exist?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#17 2013-06-29 16:20:25

ritalin
Member
Registered: 2013-06-15
Posts: 32

Re: (SOLVED)Arch won't boot? I/O error?

I gave up on data recovery and nuked the home partition with

 # mkfs -t ext3 /dev/sda2 

the problem now is that sda2 won't mount, I tried to get it to work with

 # mount /dev/sda2 /home 

  but after reboot it still doesn't work. I'm trying to recall what I did during  the intial installation, but I can't.

Offline

#18 2013-06-29 16:32:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: (SOLVED)Arch won't boot? I/O error?

What do you mean "it doesn't work", what error does it give?  Did mkfs succeed?

Last edited by Trilby (2013-06-29 16:33:17)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#19 2013-06-29 16:43:56

ritalin
Member
Registered: 2013-06-15
Posts: 32

Re: (SOLVED)Arch won't boot? I/O error?

sda2 (my home partition) doesn't mount on boot, and manually mounting it to /home doesn't stick after rebooting. Mkfs succeded.

Offline

#20 2013-06-29 16:51:40

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: (SOLVED)Arch won't boot? I/O error?

ritalin,  I am not sure I fully understand what you are saying.  Can you mount /dev/sda2 on /home at all?  Or can you mount it, but upon reboot it is no longer mounted?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#21 2013-06-29 17:13:29

ritalin
Member
Registered: 2013-06-15
Posts: 32

Re: (SOLVED)Arch won't boot? I/O error?

Sorry for not being clear. I can mount sda2 to /home and can confirm its mounted using the lsblk command. But when I reboot, only my root partition is mounted. My computer isnt automatically mouting sda2 to /home at boot.

Offline

#22 2013-06-29 17:17:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: (SOLVED)Arch won't boot? I/O error?

Did you add it (back) to fstab?

With arch you computer will not automatically do anyting for you.

Last edited by Trilby (2013-06-29 17:17:30)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#23 2013-06-29 17:30:01

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: (SOLVED)Arch won't boot? I/O error?

Trilby probably nailed it.  If you've questions, please post your /etc/fstab


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#24 2013-06-29 18:11:33

ritalin
Member
Registered: 2013-06-15
Posts: 32

Re: (SOLVED)Arch won't boot? I/O error?

I Changed the uuid and that solved the mounting issue. I logged in and as expected I have no directory within /home and I attempted to create a folder following the /home/(username)format  and received an error from mkdir saying that home is a read only filesystem. Switching to a root shell and running the same mkdir command gives me the same results.

Offline

#25 2013-06-29 18:19:02

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: (SOLVED)Arch won't boot? I/O error?

That would still be your fstab - it must be set to mount 'ro'.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

Board footer

Powered by FluxBB