Search Result

Collapse
3 results in 0.0015 seconds.
Keywords
Members
Tags
mount
  •  

  • amruta21
    started a topic how to mount from python 2.6

    how to mount from python 2.6

    HHello,
    I am using python 2.6 on unix platform. I need to mount window drive from python. For that i done following code. But it does not get mounted.
    Code is Here..........
    Code:
    import pexpect
    cmd2="sudo mount -t cifs //<ip address>/FinalWork  /mnt/win"
    child = pexpect.spawn(cmd2)
    i = child.expect([' password .* ', pexpect.EOF, pexpect.TIMEOUT])
    if i == 0:
       print "******************sending
    ...
    See more | Go to post
    Last edited by bvdet; Aug 30 '11, 02:48 PM. Reason: Add code tags

  • sassy2009
    started a topic mount device

    mount device

    Hi all,

    im trying to mount a SATA drive. I have a drive already connected to the system as /dev/sda1. The second drive that i have connected now should be /dev/sdb if im not wrong. I havent formatted this drive so it shows up on the desktop as mass storage. So i wanted to format this drive to EXT2.I tried the "sudo fdisk dev/sdb". It says unable to open dev/sdb. I tried with GPARTED and formatting the sdb and it works. Why...
    See more | Go to post

  • dlite922
    started a topic PHP running a root system command (mount)
    in PHP

    PHP running a root system command (mount)

    Has anyone done anything that requires PHP to be it's normal user (i.e. apache, and not running as root) but still execute a root level shell command such as mount?

    Solutions so far that has failed to work is:

    "Write a C++ program that will do the mount and execute it with permission rws instead of rwx"

    It still prompts for sudo password. If i'm doing something wrong here, I'll post it in the...
    See more | Go to post
Working...