# /home partition faild mount

**URL:** <https://forums.suse.com/t/home-partition-faild-mount/32848>\
**Category:** SLED Install-Boot\
**Created:** [August 25, 2018, 9:27am UTC](https://forums.suse.com/t/home-partition-faild-mount/32848 "2018-08-25T09:27:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mutsuhito](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@mutsuhito](https://forums.suse.com/u/mutsuhito)\
**Post date:** [August 25, 2018, 9:27am UTC](https://forums.suse.com/t/home-partition-faild-mount/32848/1 "2018-08-25T09:27:23Z")

</div>

Hi dears  
I tried change my /home username so I switch to tty0 and change the username by usermod command but because some pid is active , can’t modify user. So I kill those proccess with kill command. After this i reboot mu machine. Now for booting my machine, /home partition (XFS type) failed mount. So try fix that with

$ sudo xfs\_repair /dev/sda5  
print\_req\_error: IO error dev sda sector 1070323416  
xfs\_repair : Read failed input/output error  
the log head and/or tail cannot discovered

Then:

$sudo xfs\_repair -L /dev/sda5  
print\_req\_error: IO error dev sda sector 1070323416  
xfs\_repair: Read failed: Input/output error  
zero\_log cannot find log head\_tail (xlog\_find\_tail=-5)

How iresolve this to boot correctly my machine without lost any data from corrupted partition?

---

<div class="post-metadata">

**Author:** ![Automatic\_Reply](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Automatic\_Reply](https://forums.suse.com/u/Automatic_Reply)\
**Post date:** [August 31, 2018, 7:30am UTC](https://forums.suse.com/t/home-partition-faild-mount/32848/2 "2018-08-31T07:30:16Z")

</div>

mutsuhito,

It appears that in the past few days you have not received a response to your  
posting. That concerns us, and has triggered this automated reply.

These forums are peer-to-peer, best effort, volunteer run and that if your issue  
is urgent or not getting a response, you might try one of the following options:

- Visit [http://www.suse.com/support](http://www.suse.com/support) and search the knowledgebase and/or check all  
the other support options available.
- Open a service request: [https://www.suse.com/support](https://www.suse.com/support)
- You could also try posting your message again. Make sure it is posted in the  
correct newsgroup. ([http://forums.suse.com](http://forums.suse.com))

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.suse.com/faq.php](http://forums.suse.com/faq.php)

If this is a reply to a duplicate posting or otherwise posted in error, please  
ignore and accept our apologies and rest assured we will issue a stern reprimand  
to our posting bot…

Good luck!

Your SUSE Forums Team  
[http://forums.suse.com](http://forums.suse.com)

---

<div class="post-metadata">

**Author:** ![Eugen](https://avatars.discourse-cdn.com/v4/letter/e/ebca7d/32.png) [@Eugen](https://forums.suse.com/u/Eugen)\
**Post date:** [September 6, 2018, 10:25am UTC](https://forums.suse.com/t/home-partition-faild-mount/32848/3 "2018-09-06T10:25:16Z")

</div>

Hi,

[QUOTE]I tried change my /home username so I switch to tty0 and change the username by usermod command but because some pid is active , can’t modify user. So I kill those proccess with kill command. After this i reboot mu machine. Now for booting my machine, /home partition (XFS type) failed mount. So try fix that with  
[/QUOTE]

that was obviously a bad idea to simply kill that process. What kind of process was it? What exact command did you run to change the username?  
You probably didn’t log out of your session when switching to tty0, did you? I would assume that you corrupted the ownerships when changing the user with a mounted home directory (which is a very bad idea, but I guess you just learned that 😉 ). I hope you have a backup of your data.

I’m not too familiar with XFS, unfortunately. Does the system boot when you comment the home partition in /etc/fstab? Did you run xfs\_repair from that stage? Have you tried to boot from iso into rescue mode and then try the repair command?  
If you have enough space (or an external drive) you could try to copy the data from /dev/sda5 to another partition/drive with dd and see if you can mount that partition/drive or repair it. If that works you could copy the data back to its original place. Of course there is a chance you could copy corrupted data back to the partition. It’s really tricky, maybe someone else has other suggestions.

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [September 6, 2018, 7:37pm UTC](https://forums.suse.com/t/home-partition-faild-mount/32848/4 "2018-09-06T19:37:03Z")

</div>

Hi mutsuhito,

may I assume that you have checked that /dev/sda5 is truly the device for your “home” file system and that it’s an XFS file system? You might want to double-check by looking into /etc/fstab.

Like eblock already asked - do you recall what process it was that you needed to kill in order to change your username? Assuming that you called “usermod -l newusername oldusername”, it’d be interesting to know what process might be interfering with that operation.

Also, did you shut down your machine properly for the reboot? Or was is a simple power cycle?

Just for the records - if it was all about the directory name, you might have simply changed that using “usermod -m -d /home/newdirname username”

Regards,  
J

---

<div class="post-metadata">

**Author:** ![Andreas1](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Andreas1](https://forums.suse.com/u/Andreas1)\
**Post date:** [September 7, 2018, 1:02am UTC](https://forums.suse.com/t/home-partition-faild-mount/32848/5 "2018-09-07T01:02:17Z")

</div>

Please read carefully # man xfs\_repair:

[QUOTE]If the filesystem has not been unmounted cleanly, mount it and unmount it cleanly before running xfs\_repair[/QUOTE] or  
[https://access.redhat.com/documentation/en-us/red\_hat\_enterprise\_linux/7/html/storage\_administration\_guide/xfsrepair](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/xfsrepair)

[CODE]# umount /dev/sda5

# mount /dev/sda5

# umount /dev/sda5

# dmesg |grep -i xfs

=\> [] XFS (sda5): Mounting V5 Filesystem  
=\> [] XFS (sda5): Ending clean mount

# xfs\_repair /dev/sda5[/CODE]

Probably hardware issue:

- Backup with xfsdump/xfsrestore  
[https://access.redhat.com/documentation/en-us/red\_hat\_enterprise\_linux/7/html/storage\_administration\_guide/xfsbackuprestore](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/xfsbackuprestore)

- Check your SSD/hard drive health state with smartctl:  
[https://forums.suse.com/showthread.php?12403-SLES-11-SP3-recomendations-for-SSD-disk&p=53691#post53691](https://forums.suse.com/showthread.php?12403-SLES-11-SP3-recomendations-for-SSD-disk&p=53691#post53691)

Use the more robust XFS v5 (mkfs.xfs parameter “-m crc=1”):  
[https://www.suse.com/documentation/sles-12/singlehtml/stor\_admin/stor\_admin.html#sec.filesystems.major.xfs](https://www.suse.com/documentation/sles-12/singlehtml/stor_admin/stor_admin.html#sec.filesystems.major.xfs)
