LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-17-2016, 03:34 AM   #1
Raakh5
Member
 
Registered: Mar 2012
Posts: 174

Rep: Reputation: Disabled
mount -t tmpfs shmfs -o size=12g /dev/shm


Hello,

I used this command:
Code:
mount -t tmpfs shmfs -o size=12g /dev/shm
and now:
Code:
[root@centos ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       457G   37G  397G   9% /
tmpfs            12G  606M   12G   5% /dev/shm
/dev/sda1       190M   38M  143M  21% /boot
shmfs            12G  606M   12G   5% /dev/shm
shmfs            12G  606M   12G   5% /dev/shm
shmfs            12G  606M   12G   5% /dev/shm
How can I remove or unmount the following:
Code:
shmfs            12G  606M   12G   5% /dev/shm
shmfs            12G  606M   12G   5% /dev/shm
shmfs            12G  606M   12G   5% /dev/shm
 
Old 07-18-2016, 12:34 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Umount /dev/shm thrice?
 
Old 07-18-2016, 02:14 AM   #3
Raakh5
Member
 
Registered: Mar 2012
Posts: 174

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
Umount /dev/shm thrice?
Thanks for your reply.
Code:
[root@centos ~]# umount /dev/shm
umount: /dev/shm: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
 
Old 07-18-2016, 02:51 AM   #4
Raakh5
Member
 
Registered: Mar 2012
Posts: 174

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Raakh5 View Post
Thanks for your reply.
Code:
[root@centos ~]# umount /dev/shm
umount: /dev/shm: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
I used:
Code:
 fuser -km /dev/shm
and again ran umount /dev/shm then its worked fine

Thanks from the bottom of my heart

Best regards
 
  


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
/dev/shm (tmpfs) file system stops working GreyBeard Linux - Software 5 08-13-2012 04:36 PM
tmpfs /dev/shm - file deletion and size determination bgeary Red Hat 4 05-12-2010 07:56 AM
Tmpfs on /dev/shm kundor Linux - General 6 03-11-2007 10:57 PM
'Can't Mount /dev/shm... DreameR-X Linux - Newbie 2 06-17-2005 01:55 AM
where is "tmpfs", with /dev/shm ? SChipS Linux - General 2 04-28-2005 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:23 PM.

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