LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 04-20-2018, 05:38 PM   #1
hotrodjohn71
LQ Newbie
 
Registered: Apr 2018
Posts: 10

Rep: Reputation: Disabled
-9 and -15 not killing a process


Hi Group. Let me start by saying that if I have posted this in the wrong location, please advise and I will delete and repost. I assumed this best fit my question.
I am brand new to the Linux system. I have a very tangential understanding so please bear with me on this.
I have an external hard drive by WD called MyCloud. It appears that sometimes when power gets cut off that problems occur with ownership as I use windows 8 and although I can see all the files on the drive, I do not have 'permission' to write to the disc.
With help from some others on a MyCloud forum, we determined that all of my files have somehow been made 'Read Only' (RO).
So it was suggested to do an unmount (umount) and then an e2fsck.
I assume one is to unmount the files and one to remount hopefully as read AND write.

*Heres the problem. I cant umount because some processed are 'busy'
I tried 'umount /dev/sda4 --force' but that didnt work.

So I entered 'lsof |grep sda4' and it showed (3) processes, all of which have the same PID#.
*Note, I have rebooted several times. each time the PID number for these 3 process changes, but still seems to be the same 3 processes.

Currently the processes are '5233' but as I said, that PID seems to change with each reboot. Of the 3 processes, one seems to be a cwd, rtd, and a txt process, all with the same 5233 PID#.

So I tried several ways to kill the 5233. I tried ''kill 5233, 'kill -15 5233', 'kill -9 5233'. No matter what I do, the 3 processes keep showing up in 'lsof |grep sda4'

After doing some more research, I tried to locate possible parent programs keeping 5233 from dieing with 'ps -Al'

I dont know for sure what im doing but in that list, I find the PID 5233 and the PPID (Parent PID??) I found a '2'.
So I tried everything I could to kill the 2 then the 5233 and nothing worked.

Please bear with this bull in a china shop regarding Linux programming. Can you help?
 
Old 04-20-2018, 06:16 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Floundering around will show you many things - some of which are interesting. Just stay away from --force and kill till you know what you are attempting to do. The system will protect itself most of the time (like here), but sometimes you'll do real damage.

My understanding is that mycloud is a NAS - how is it connected ?. Hopefully to your router. From a terminal enter this and post the output
Code:
df -hT
lsblk -f
 
1 members found this post helpful.
Old 04-20-2018, 06:48 PM   #3
hotrodjohn71
LQ Newbie
 
Registered: Apr 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi syg,
Yes, I believe the mycloud is NAS. On my system, the mycloud is connected via ethernet cable to a network switch then by ethernet cable to my ATT Uverse router. Thank you for the advice about '--force'. I had actually tried that on advice from another group but it didnt work. I will be sure not to try it again.
The connection is shown here:
https://support.wdc.com/knowledgebas....aspx?ID=15086

I have backup, but its 2tb in 2 shoeboxes on cdrw, dvdrw and bd. Hoping I can get this thing writeable but if not, I have backup.

Here are 2 overlapping screenshots of 'df -hT'
Attached Thumbnails
Click image for larger version

Name:	Screenshot (21).png
Views:	7
Size:	169.7 KB
ID:	27465   Click image for larger version

Name:	Screenshot (22).png
Views:	7
Size:	179.0 KB
ID:	27466  

Last edited by hotrodjohn71; 04-20-2018 at 06:59 PM.
 
Old 04-20-2018, 06:50 PM   #4
hotrodjohn71
LQ Newbie
 
Registered: Apr 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
And here is a screenshot of 'lsblk -f'
Attached Thumbnails
Click image for larger version

Name:	Screenshot (23).png
Views:	7
Size:	167.2 KB
ID:	27467  
 
Old 04-20-2018, 07:11 PM   #5
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Can't help with the killing of the processes, but something to try for the not being able to unmount, try a umount -l /whatever/mount
 
1 members found this post helpful.
Old 04-20-2018, 07:42 PM   #6
hotrodjohn71
LQ Newbie
 
Registered: Apr 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi Timothy,
It says "not found"
 
Old 04-20-2018, 08:53 PM   #7
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Are you doing -"ell" or -"capital eye"?

Should be -"ell" lazy umount. It's the cousin of --force that makes force look like a little child asking "please sir, might you unmount?"
 
1 members found this post helpful.
Old 04-20-2018, 09:04 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
OK, that answers some q's but raises others. Those displays imply you are logged into the mycloud - say via ssh. Is that correct ?.
Do you have access to the mycloud GUI user interface from your Win8 system ?. If so the best way to do this is to disable NFS from the Win8 UI, then ssh in and do the fsck. Much cleaner and simpler.
Then go back to Win8 and re-enable NFS.

Note I have no experience with mycloud.
 
1 members found this post helpful.
Old 04-20-2018, 09:06 PM   #9
hotrodjohn71
LQ Newbie
 
Registered: Apr 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi Timothy,
I copied the command from your posting.
Attached Thumbnails
Click image for larger version

Name:	Screenshot (24).png
Views:	7
Size:	118.1 KB
ID:	27468  
 
Old 04-20-2018, 09:22 PM   #10
hotrodjohn71
LQ Newbie
 
Registered: Apr 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
OK, that answers some q's but raises others. Those displays imply you are logged into the mycloud - say via ssh. Is that correct ?.
Do you have access to the mycloud GUI user interface from your Win8 system ?. If so the best way to do this is to disable NFS from the Win8 UI, then ssh in and do the fsck. Much cleaner and simpler.
Then go back to Win8 and re-enable NFS.

Note I have no experience with mycloud.
Hi syg,
I access the MyCloud via a downloaded program called puTTY after enabling SSH via the MyCloud dashboard (MyCloud-control panel).
I did not know about GUI. *(note) I was using Windows 10, but the infernal 'Automated Updates' (which I had no way of stopping) frustrated me to no end. Even causing my computer to crash with the dreaded blue screen on several occasions, so I voluntarily went back to Win 8 (pro).

How do I disable NSF and utilize the GUI user interface? I'll Google it to start understanding how it works. (I'm good at googling)
Thank you

Last edited by hotrodjohn71; 04-20-2018 at 09:35 PM.
 
Old 04-20-2018, 11:00 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
No, we are talking about the same thing - the dashboard. It should have a "Shares" option where you can turn NFS off. Then just use putty to get in and run the fsck.
 
Old 04-21-2018, 12:54 AM   #12
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Quote:
Originally Posted by hotrodjohn71 View Post
Hi Timothy,
I copied the command from your posting.


You would replace /whatever/mount with whatever mount you're trying to unmount.
 
Old 04-21-2018, 12:55 PM   #13
hotrodjohn71
LQ Newbie
 
Registered: Apr 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Apparently on this MyCloud, I do not have the dashboard option of turning on or off the NFS. Please bear with me as I am very very novice.
I checked and according to what I read on the WD website regarding the NFS, with my version of firmware and it being a single bay device (?), there is no option to turn NFS off or on in the dashboard itself.
From what I have gathered in troubleshooting this problem,after entering 'mount' I find that these things need to be umounted before the e2fsk can be done:
umount /DataVolume
umount /CacheVolume
umount /nfs/Public
umount /nfs/Media
umount /nfs/Username

But when I try to enter those commands, I get a message saying it is 'busy'
So when I run a 'dmesg | grep mount' I find that there are 3 processes running. these 3 processes have the same PID#. I have done a couple re-boots and each time those 3 processes' PID#'s change but the processes themselves seem to be the same.
Hence the 'kill'ing I was trying to do. I tried to kill those PID's but it didnt work.

Let me reiderate, from what I understand, the main problem here is that the sda4 is mounted as ro (read only). Im kind of have a grasp on that concept. Hence the necessity to umount and run the esfsk.

If this isn't making good sense I apologize, thanks for bearing with me.
 
Old 04-21-2018, 01:04 PM   #14
hotrodjohn71
LQ Newbie
 
Registered: Apr 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Here is my output from 'mount'
Attached Thumbnails
Click image for larger version

Name:	Screenshot (25).png
Views:	6
Size:	169.3 KB
ID:	27470   Click image for larger version

Name:	Screenshot (26).png
Views:	5
Size:	170.5 KB
ID:	27471   Click image for larger version

Name:	Screenshot (27).png
Views:	3
Size:	170.4 KB
ID:	27472   Click image for larger version

Name:	Screenshot (28).png
Views:	6
Size:	169.0 KB
ID:	27473   Click image for larger version

Name:	Screenshot (29).png
Views:	4
Size:	169.9 KB
ID:	27474  

 
Old 04-21-2018, 01:07 PM   #15
hotrodjohn71
LQ Newbie
 
Registered: Apr 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Here is the output of 'dmesg | grep mount'
Attached Thumbnails
Click image for larger version

Name:	Screenshot (30).png
Views:	5
Size:	153.4 KB
ID:	27475  
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
killng parent process without killing child process (Linux C programming) lettuce84@naver.com Linux - Newbie 3 07-24-2015 08:37 AM
kill zombie process via C program without killing main process aj1991 Linux - Newbie 3 04-17-2015 12:04 PM
Killing More than one process ruud Programming 11 04-27-2010 06:30 AM
Killing a process by its name rabeea Linux - Networking 3 03-17-2005 05:30 AM
Really Killing a Process! lazlow69 Linux - Newbie 14 05-10-2003 10:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration