Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
We use PBXware for our telephony and the Call recording is filling up the disk. The user's guide indicated that I can mount a usb hdd and store call recording ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2011
    Posts
    6

    Question Mounting a usb HDD


    We use PBXware for our telephony and the Call recording is filling up the disk. The user's guide indicated that I can mount a usb hdd and store call recording on it using: mount -o gid=555,uid=555 /dev/sdb /home/servers/pbxware/pw/var/spool/ asterisk/monitor/
    I did that but I can still see that the usage on disk is rising.

    How can I verify that I did?

  2. #2
    Linux Newbie arespi's Avatar
    Join Date
    May 2011
    Location
    Monterrey , Mexico
    Posts
    141
    Type rf -H to see the disk usage, there it should show /dev/sdb mounted, if not something failed at the mount command.
    (edited: I meant df ,not rf. Tank you Mike Tbob for the correction)
    Last edited by arespi; 06-29-2011 at 08:31 PM. Reason: Typo

  3. #3
    Just Joined!
    Join Date
    Jun 2011
    Posts
    6
    rf -H "command not found" when I do df -h I see the disk usage, but could not verify the Mounting

  4. #4
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Mount command will tell you what is currently mounted and where it's mounted at.
    Code:
    mount
    df -h will tell you disk usage of mounted partitions only.
    Did you get any errors or such when you issued the command?
    Code:
    mount -o gid=555,uid=555 /dev/sdb /home/servers/pbxware/pw/var/spool/ asterisk/monitor/
    Does gid 555 and uid 555 actually exist? What about /dev/sdb/home/servers/pbxware/pw/var/spool/ asterisk/monitor/? These directories, groups and users must exist before you issue that command or it'll fail.
    Also, there probably should not be a space between /dev/sdb and /home/servers/pbxware/pw/var/spool/ asterisk/monitor/
    as you have above.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  5. #5
    Just Joined!
    Join Date
    Jun 2011
    Posts
    6
    The mount command helped. thax. I can see the mounted usb as in this
    usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)

    Now I need to find a way to move the recording to it, when I use df -h I see my home directory is rising to 72% (PBXware recommend to keep it under 70%)

  6. #6
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    That is not your device. I have the same device list under my mount command. Right off the top of my head, without using Google, I think this is some kind of virtual filesystem for USB but it's not an actual device.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  7. #7
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Plug in the drive and post the output of
    Code:
    lsusb
    Code:
    mount
    Code:
    fdisk -l
    Use sudo or root as needed.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  8. #8
    Just Joined!
    Join Date
    Jun 2011
    Posts
    6
    the lssub produced
    Here is what I have when I do lsusb
    Code:
    Bus 001 Device 003: ID 13fd:1840 Initio Corporation 
    Bus 001 Device 002: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    the mount produced
    Code:
    /dev/sda2 on / type ext3 (rw,noatime)
    proc on /proc type proc (rw,nosuid,nodev,noexec)
    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
    udev on /dev type tmpfs (rw,nosuid,size=10240k,mode=755)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,gid=5,mode=620)
    /dev/mapper/lvmg-usr on /usr type ext3 (rw,noatime)
    /dev/mapper/lvmg-home on /home type ext3 (rw,noatime)
    /dev/mapper/lvmg-portage on /usr/portage type ext2 (rw,noatime)
    /dev/mapper/lvmg-var on /var type ext3 (rw,noatime)
    shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
    none on /var/tmp type tmpfs (rw,size=512m)
    none on /tmp type tmpfs (rw,size=128m)
    usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
    none on /home/servers/pbxware/pw/proc type proc (rw)
    /etc/wanpipe on /home/servers/pbxware/pw/etc/wanpipe type none (rw,bind)
    tmpfs on /home/servers/pbxware/pw/recordings type tmpfs (rw,size=128M,mode=0777)
    and fdisk -l
    Code:
    Disk /dev/sda: 218.2 GB, 218238025728 bytes
    255 heads, 63 sectors/track, 26532 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1           8       64259+  83  Linux
    /dev/sda2               9         136     1028160   83  Linux
    /dev/sda3             137       26532   212025870   83  Linux
    
    Disk /dev/dm-0: 8510 MB, 8510242816 bytes
    255 heads, 63 sectors/track, 1034 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000
    
    Disk /dev/dm-0 doesn't contain a valid partition table
    
    Disk /dev/dm-1: 180.3 GB, 180359266304 bytes
    255 heads, 63 sectors/track, 21927 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000
    
    Disk /dev/dm-1 doesn't contain a valid partition table
    
    Disk /dev/dm-2: 5242 MB, 5242880000 bytes
    255 heads, 63 sectors/track, 637 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000
    
    Disk /dev/dm-2 doesn't contain a valid partition table
    
    Disk /dev/dm-3: 2097 MB, 2097152000 bytes
    255 heads, 63 sectors/track, 254 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000
    
    Disk /dev/dm-3 doesn't contain a valid partition table
    
    Disk /dev/dm-4: 20.8 GB, 20858273792 bytes
    255 heads, 63 sectors/track, 2535 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000
    
    Disk /dev/dm-4 doesn't contain a valid partition table
    And I could not get the cursor back
    Last edited by MikeTbob; 06-29-2011 at 10:51 PM. Reason: Added Code Tags

  9. #9
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Interesting, can you tell us a little bit about the machine, did you only have one hard drive? I'm not seeing the USB drive in the output of fdisk, was it attached at the time you issued those commands? Sometimes when you can't get the cursor back from "fdisk -l" it might mean problems with the drive or partitions. Have you checked the USB disk recently? Is it formatted?
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  10. #10
    Just Joined!
    Join Date
    Jun 2011
    Posts
    6
    Yes, it was attached when I issued those commands, but I don't think it is formatted under Linux, it was attached to Windows.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •