General :: Script - Hook Into System Mount / Umount Event?

Mar 27, 2010

Is there a way to provide post-mount and pre-umount scripts in Linux?
I am trying to do some scripts on storage media when mounted and before umounting (eg, for syncing).

View 3 Replies


ADVERTISEMENT

General :: Simple Way To Umount NFS Mount In System?

Oct 25, 2010

I've mounted a share using standard nomenclature for the NFS mount command with the following command line:

mount -t nfs -o rw {IP address1}:/ /mnt_for_70 / {IP address2}(rw)

mnt_for_70 is a mount point I created on {IP address2}

I'm confuse and want to be sure I use the correct command on the correct host to correctly umount the nfs share.

Would I execute umount /mnt_for_70 on {IP address2}

Not sure if such a simple command will work. As this is a semi-production host pair, I hesitate to just umount so simply & I have no test systems to try this on...

View 2 Replies View Related

General :: Mount And Umount As User Without Fstab?

Jul 19, 2011

I am writing this software that creates virtual block device nodes almost like loop does. I need to allow non-superusers to mount and umount filesystems from these devices. I don't know the names of the block device nodes beforehand so i can't use fstab entries to add "user" or "owner" flags there.

Currently i solve this by providing a small suid helper tool that verifies that this is indeed "my" block device the user is trying to mount and then just call /sbin/mount or /sbin/umount to do the job. This is definitely better than setting a suid bit for the whole program but not really perfect.

View 1 Replies View Related

Programming :: Mount/umount Operations In C Program?

Feb 9, 2011

I need to do mount/umount operations in my c program. But my program can only be run under normal user. However, the user who run my program have sudo priviledges to do mount/umount operations. How can i apply the sudo privileges in the mount(2) system call?

View 6 Replies View Related

General :: How To Umount "/" File System

Jun 3, 2011

I want to umount root partition. below is the o/p for df -h

Filesystem Size Used Avail Use% Mounted on
/dev/sda1 12G 3.2G 7.8G 30% /
tmpfs 506M 0 506M 0% /dev/shm

If i give #umount /dev/sda1 im getting the below error.i can't unmount the file system

umount: /: device is busy
umount: /: device is busy

View 14 Replies View Related

Debian Configuration :: Can't Umount Ramdisk After Loading New Root File System

Feb 1, 2010

I have built a kernel with a ramdisk(ramdisk.image.gz) included. Also in the kernel command line I specified root=/dev/ram0. I am trying to use this ramdisk to load a loopback file as the root filesystem off a fat partition. This is /sbin/init from the ramdisk.

#!/bin/sh
mount -n -t msdos /dev/mmcblk0p1 /mnt
losetup /dev/loop0 /mnt/linux/linuxdsk.img
mount -t ext2 /dev/loop0 /mnt2

[Code]....

The problem is both umount and blockdev report "device is busy". I want to free up this RAM any suggestions?

View 1 Replies View Related

OpenSUSE :: Dolphin Services - Get Mount / Umount Option Under Right Click Services Menu

Dec 7, 2010

So I want to get mount/umount option under right click services menu. I went to Dolphin -> Settings -> Configure Dolphin -> Services -> Download New Services and from there I installed KDE CDEmu Emulator and MountISO. But neither of them is showing up in actual context menu. Neither in Dolphin -> Settings -> Configure Dolphin -> Services for that matter. I tried to install them as normal user and as a root. I went to have a peak in /usr/share/kde4/services/ServiceMenus/ but they aren't there as well... It's just me or lots of things seems to be not quite working in 11.3?

View 9 Replies View Related

Slackware :: Sudo: Umount Works, Mount Not Works?

Jul 8, 2010

I've got a problem in doing sudo working for mounting things (e.g. usb pen or optic discs). Details:The OS: Slackware 13.0The response to sudo -l command:

Code:
User user1 may run the following commands on this host:
root) /sbin/shutdown -h now, /sbin/shutdown -r now

[code]...

View 3 Replies View Related

Software :: Failed To Open System Log / No Event Information Will Be Available

May 16, 2011

Failed to open system log, no event information will be available.I am using Firestarter 1.0.3 With Ubuntu 11.04

View 2 Replies View Related

Ubuntu :: Make An Image Of Entire System In The Event Of A Mishap?

Jan 30, 2010

I'm running Ubuntu 9.10. I'd really like to make an image of my entire system in the event of a mishap. I've found from experience that anything can happen with Linux and then you're into another reinstall. Anyone know of a good program or process?

View 7 Replies View Related

General :: Cannot Umount Volume / Get It To Work?

Dec 15, 2010

I am using ubuntu8.04 and i am not able to umount my usb using unmount option even as root on command line.
If i try the same using mouse right click, it showing error mesage as follows. "Cannot unmount volume. The volume 'STEEVEN_1' was probably mounted manually on the command line. Details: Device to unmount is not in /media/.halmtab so it is not mounted by HAL."
usb label is appearing even after the unmouting the usb manually.
next time mounting adding another hyphen to the usb label as follows.
steeven_1, steeven_1_, steeven_1__, steeven_1___ etc.

View 2 Replies View Related

General :: Hook Qosmio Laptop Into Vizio Tv

Jul 23, 2010

I am trying to hook my qosmio laptop into my vizio tv. I am using a VGA cable and I run mandriva linux 2009.1.

Unfortunately I have no luck from here. I rebooted my computer and for the first time it offered to run drakroam, but when I accepted, nothing happened.

View 4 Replies View Related

General :: Use Inode Hook Functions(inode_alloc_security And Inode_free_security)?

Mar 4, 2010

how to use inode hook functions(inode_alloc_security and inode_free_security)?

View 1 Replies View Related

General :: Mplayer - How To Hook To The File Tool And Firefox

Mar 23, 2011

Two tries at building mplayer. First time failed with no sound, second time worked fine - NO CHANGES that I know of, BUT OK - it works nicely.So if I click on a file in the Linux (fedora 14) file browser, I see using "Mplayer Media Player" as a second option, It does nothing, nor does it do anything from the Application tool menu. I do not know where the "I am doing nothing (and here is why)" error message is logged.

I can manually run mplayer or xmplayer on the .wmv file and it works.How do I edit the menus (control files?) and have them use the newly installed and working mplayer (or xmplayer??).Next, it would be nice to make mplayer the default tool to play videos in Firefox (the default for both is another tool (Movie player) which needs a plugin that I cannot find to work).And finally, if I can get one or both of these working - it would be nice to set the default to the new player instead of "Movie player".

View 6 Replies View Related

General :: Get A Mouse Event To Cause Keystroke?

Mar 14, 2010

I have a Logitech Media Play mouse with many buttons. I'm using xbindkeys to create some shortcuts to programs e.g. firefox, gnome-terminal--these work wonderful. What I cannot figure out is how to get the buttons to work for the media player(Ubuntu>System>Keyboard Shortcuts>Sound). I set shortcuts using my win key and letters, hoping to use xbindkeys to send out a keystroke. I have tried to use xmacro but to no avail. xdotool was not helpful, I think it may be outdated(desktop/workspace functions did not work).

My preferred option would be to get mouse events to keystrokes working with xbindkeys and program x(x being whatever works); however, just getting my media buttons to interact with the media play is my ultimate goal.

View 1 Replies View Related

General :: Log Devices Plugged In - Event ID?

Aug 21, 2009

I know in windows xp there is a registry key and an entry in the Plug and Play log file as well as maybe an event id, that is produced when a device (say usb) is plugged in. My question is, besides /var/log/ (messages?) Is there any other location that that information is stored in?

View 3 Replies View Related

General :: Catching The Hibernate Event?

Jun 7, 2010

Is it possible to catch the power management events(hibarnate/standby/sleep)o the code(c++)?

View 2 Replies View Related

General :: Mount Cruzer Blade 16GB On "Unable To Mount 16GB File System"?

Aug 8, 2011

hen i try to mount Cruzer Blade 16GB on Ubuntu Im told that "Unable to mount 16GB file system Not authorized.@

View 15 Replies View Related

General :: Smartcard Insert / Removal Event Notification

Jun 24, 2010

I'm working on an app that will authenticate user with a smartcard when the user inserts it in the card reader (this is on Red Hat 5.5). How do I detect a card has been inserted? Is there a daemon service I need to listen to and associated api to get notified etc? .

View 3 Replies View Related

General :: Can't Mount Root File System

Apr 6, 2011

I am getting an error while booting my linux system: Can't mount root file system.Boot has failed, sleeping forever.OS is Red hat enterprise linux 6, With Intel P4, 1 GB Ram, 120 GB IDE hdd seagate. it was working fine from last 4 days. from today morning this is giving error. only mysql & apache is installed in it.
please suggest is there any way to repair the root & boot volumes. waiting for valuable reply.

View 2 Replies View Related

General :: Mount Windows Partion In System?

Sep 29, 2010

I am using dual booting windows and redhat linux and i want to some datas from windows to linux

how to mount windows partion in linux

View 4 Replies View Related

General :: How To Mount USB Pen Drive On RHEL3 System

Sep 29, 2010

I want to know how to mount the usb pen drive in redhat linux box . This redhat 3 version.

View 6 Replies View Related

General :: Mount Ntfs File System?

Feb 17, 2010

how can i mount ntfs file system in linux

View 3 Replies View Related

General :: Mount A Filesystem When The System Boots?

Dec 21, 2009

I'm trying to mount a filesystem when the system boots, so i won't need to mount it everytime..

So what I did was copying the line of the filesystem I wanted to mount on startup from /etc/mtab:


Code:

And pasted it as it is, in the /etc/fstab file. when the system booted, it didn't work. not only that, I wasn't able to mount the filesystem at all, (it gave me some kind of an error) so I removed the line from fstab file and it all back to normal. how can I mount this filesystem on boot? (i'm using Fedora 12)

View 10 Replies View Related

General :: NAS Mount Points Not Visible On System

Apr 18, 2011

Coming from non linux bod - but to create mount points on nas that are visible do we have to put entries in both fstab and rc.local?

View 1 Replies View Related

OpenSUSE Network :: Nfs Server On 11.2 - Mount.nfs: Mount System Call Failed

Apr 29, 2010

I've tried to get an opensuse box I have to share a directory via NFS. I've failed each time, but I thought that the third time, I'd enlist some help from the forums, if I could. how do I know that the nfs server and not the client is the problem? Short answer is: I don't! That's why nfs (and many netwrk problems) are laborious, you're troubleshooting needs to take place at both source and desitination. Next question, what do I have set up so far? Well, I did download the nfs server kernel stuff (two months back) and /etc/init.d/nfsserver start seems to get set up OK. No errors and the daemons nfsd, idmapd, mountd area all running. So, I *think* that part is OK. I have the share set up properly in /etc/exportfs and have "exportfs -r" it.

OK, now onto the trickier stuff: the client and iptables. On the client pinging to the nfserver box is perfect, and I have rpcbind running. the reported error is "mount.nfs: mount system call failed" though from experience nfs errors don't mean a whole lot.However, I will go off and check now and see if I need a mountd running on client-side too.Then there's iptables .... ouch, that could be a long and painful trek. I don't see any specific ports being blocked, and it's the iptables that the default v11.2 opensuse came with. I did turn them off and the problem was the same, so whether wishfl thinking or not, I'm hoping it's not an iptables issue.

View 9 Replies View Related

General :: Manually Generate A Fake ACPI Lid Event From A Script?

Jul 4, 2010

I'm trying to make sure that my laptop will suspend if I unplug it after the lid is already closed, and I believe that one way to accomplish this would be to simulate an ACPI lid event when the power adapter is plugged or unplugged. In order to do this, I need to find a command that will generate a fake ACPI lid event. Is there any such command?

View 1 Replies View Related

General :: Ubuntu - Mount Ftp Host In File System?

Nov 29, 2010

I tried curlftpfs and can copy files etc., but opening media files in totem or vlc fails with read errors.I'd try to use gvfs-mount instead, but don't know how to pass an option similar to custom_list="LIST" which tells curlftpfs to use LIST instead of LIST -a.

View 1 Replies View Related

General :: Cant Mount Partition With System Rescue Live Cd

Nov 1, 2010

Im using the System Rescue live cd to try and Clamscan a partition on my internal HD, but I cant mount /dev/sda3 (my home partition).

I use this commandline (as root):

Code:
mount -t ext3 /dev/sda3 mountpoint

but it just hangs, and then gives an error.

View 6 Replies View Related

General :: Mount A File System (/dev/sdb) As Ext3 (rw,acl,user_xattr)?

Jul 15, 2009

I'm trying to mount a second hard drive as a ext3 (rw_acl,user_xattr). I type the ff.:

# mkfs.ext3 -c /dev/sdb1(it seems to create a file system from this 2nd HD)

then type:

# mount -v /dev/sdb1 / type ext3 (it seems to mount it)

But when I check the ext3 systems with typing:

# mount -t ext3 (to check the list of ext3 devices, it gives me this)
/dev/sda1 on / type ext3 (rw,acl,user_xattr)
/dev/sda2 on /home type ext3 (rw,acl,user_xattr)
/dev/sdb1 on / type ext3 (rw)

How can I make /dev/sdb1 on type ext3 as (rw,acl,user_xattr) as the others?

View 11 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved