I am using Linux Instance that has an EBS volume attached to it (mounted to xvda1). which I believe it causing some troubles. usually to detach the volume I go to volume section of the AWS EC2 console select the volume and click Detach. but I am getting an error message
Error detaching volume
vol-0a4107076dcd6895f: Unable to detach root volume
'vol-0a4107076dcd6895f' from instance 'i-04d5c232841cc2fa1'
when I tried to unmount the volume with commands I get this
b@ip-XX-XX-XX-XX:~$ df -hk
Filesystem 1K-blocks Used Available Use% Mounted on
udev 499260 0 499260 0% /dev
tmpfs 101452 4320 97132 5% /run
/dev/xvda1 10098468 4869284 5212800 49% /
tmpfs 507248 0 507248 0% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 507248 0 507248 0% /sys/fs/cgroup
tmpfs 101452 0 101452 0% /run/user/1000
b@ip-XX-XX-XX-XX:~$ sudo umount /dev/xvda1
umount: /: target is busy
(In some cases useful info about processes that
use the device is found by lsof(8) or fuser(1).)
Please help me to unmount and Detaching AWS EBS drive