Ubuntu :: Using BASH Script To Unmount A Volume?

Jun 3, 2010

As part of a script for imaging floppy disks on a Mac, I am trying to unmount the volume located at /dev/disk1

In my script I put--
#!/bin/sh
echo "This should unmount the external floppy drive."
sudo umount /dev/disk1

But I get an error--
umount: /dev/disk1
: not currently mounted

I also tried excluding the "sudo" with the same result. Any ideas where the " is coming from or what else might be the problem?

sudo umount /dev/disk1 works when I use it in the command line, but as a long term solution I need it in my script if possible.

View 4 Replies


ADVERTISEMENT

Ubuntu :: Conky Disappear Everytime Unmount Any Volume?

Nov 10, 2010

Well, that's pretty much it... my conky disappear everytime I unmount volume, as a pendrive or an external device

View 9 Replies View Related

Ubuntu :: Control Line In Volume In Bash/python?

Nov 14, 2010

How do i do to:1. Check if there is a audio source plugged in via line in?2. Control the volumeI want to do it through either bash or python script.

View 1 Replies View Related

Ubuntu Security :: Truecrypt - Remote Mount Volume - Or Send Bash Script Remotely?

Apr 1, 2011

I have an Ubuntu 10.04 machine at home and apache setup on it (files are located in a Truecrypt volume). The reason for the web server being that I wanted to access my files wherever I'm at (i.e. hotel, work, hotspots, etc...). So far, it's worked out great for me seeing as a I can http download my files (or stream media files). However, I am often on a public hotspot and I know it's a matter of time before someone finds the webserver on my computer. I have the machine firewalled and password protected (via .htaccess), but either way I don't want people looking in on my computer.

The problem: I have used Truecrypt for a long time and completely trust using the program to encrypt/unencrypt a volume container to store my files. Usually, I would remote desktop into my computer and mount/unmount the volume when I needed it. However, after time it get's really annoying to do this. So I eventually figured out how to setup a bash script to automatically do this for me (which I put on the usb part of my phone). What I wanted to do was to be able send the bash script to my Ubuntu machine (via ftp from my phone) and have Ubuntu automatically run the script. Is this possible? What programs do I need on Ubuntu?

I was thinking about using something like cron, but that is for scheduled times. I don't really have a set time in which I need my files, it's pretty sporadic depending on how much I travel. Thus the need for being able to remotely mount the volume when I need it.

Summary: I need a way for Ubuntu to read a folder every minute or so to check for bash scripts to run. I want to be able to send the bash script via ftp from my phone, have Ubuntu run the script, then delete itself (so as to not store the password). I already know the script in which to mount the Truecrypt volume and how to send the file via ftp from my phone. It's really a matter of what program to use in Ubuntu to find and run the script.

View 8 Replies View Related

Ubuntu :: Default Volume To 100% In Terminal With Gnome-volume-control-applet?

Jul 17, 2010

Is there a way to default volume to 100% in the terminal with gnome-volume-control-applet or any other program? I am setting up a dedicated Zsnes machine which boots into Fluxbox but the volume is muted by default. There isn't a man page for gnome-volume-control-applet.

When I log into Gnome the volume is set to 100%, but Fluxbox is always set to mute.

View 1 Replies View Related

Ubuntu Multimedia :: USB Soundcard Volume Controls With Laptop Volume Keys?

Oct 29, 2010

I've got my xubuntu 10.10 install just about perfect on a little acer aspire d250, apart from a small sound useability issue: In the interests of simplicity and resource usage I removed pulseaudio. After a bit of fiddling I got it so that my USB soundcard (ProDac) is recognized and automatically set as the default soundcard when plugged in. Any sound applications automatically use the USB sound if it present, no need to around with pulse. The only problem is that my netbook's volume control keys still only control the master volume of the inbuilt soundcard, and have no effect on the usb sound. Does anyone know of a way to change which sound device these keys actually effect? I'd like to write a little script so that when the usb device is detected the keys are remapped.

View 1 Replies View Related

Ubuntu Multimedia :: PCM Volume Not Affected By Master Volume Control With Alsa

Mar 7, 2011

I'm running Kubuntu 10.10 32 bit on an old DFI KT600AL motherboard based system using the onboard VIA 3058 AC97 audio (because it supports front panel audio connections and none of the add-in PCI soundcards I have do). I have an old Gateway/STB TVPCI TV tuner card (mainly wanted the FM radio part to work) hooked up to the cd audio connector on the motherboard because the digital audio over the pci bus apparently isn't supported for this card (neither is the onboard analog mixer on the tv tuner card, I had to hack a CD-ROM audio cable and solder it to the audio outputs of the tv tuner module on the TV tuner card). When I use the master channel as the master channel (selected in Kmix) then as one would expect it affects the output volume of all other audio playing on the system except that which is being handled by the PCM channel. On Windows the PCM channel was also affected by the "Volume Control" slider such that ALL volume levels were reduced when moving the slider. I'm hoping someone can help me figure out how to make it work like this on Kubuntu.

First off I should warn you that I (like many users of older hardware that is not properly supported under PulseAudio) have uninstalled PulseAudio (because it's garbage) and am using Alsa to manage my audio hardware. I would think that there would be some way to do this using the 'amixer' application to add the PCM channel as a component of the 'Master' channel so that when the volume is turned down using the 'Master' channel control it will affect the PCM channel too (at least the output to the speaker jack, not necessarily the capture or mix volume though), but I'm not really any good at doing things from a terminal window and the options for the amixer command kind of confused me.

View 1 Replies View Related

Ubuntu Multimedia :: High Volume - System Sets Volume To Maximum Value?

Mar 24, 2011

I used Ubuntu 10.10 (64 bit) on IMac i7. As far as, I remember, after installing Pulse-Audio Equalizer, for each restart of the system, after login screen, system sets volume to maximum value. What can I do?

View 1 Replies View Related

Ubuntu Multimedia :: Usb Headset - Cannot Regulate The Volume Of The Phones (output) Anymore With Gnome-volume-control

Jun 12, 2010

since using 10.04 I have a big problem with my usb headset (freetalk everyman)

1. Problem: I cannot regulate the volume of the phones (output) anymore with gnome-volume-control. By default the volume is set to 100% which is way too loud. When I set it under 100% there is no sound at all. Values over 100% work.

2. Problem: The X server is freezing iregulary when I connect the headset and disconnect it, Magic SysRq works. I checked Xorg.0.log and found out that it recognizes the usb headset as keyboard:

[Code]...

View 6 Replies View Related

Ubuntu :: Volume Control - Volume Slider Moves Up Even If Try To Slide It Down

Sep 9, 2010

I'm using 10.04 now and it runs ok, except one strange thing in the Volume control applet. Sometimes, when I click on the volume slider, it moves up. Even if I try to slide it down, it moves up on every click. The same when I click left of it - it keeps moving up! This is very annoying at night when the music gets loud and wakes everybody. It happens with or without Compiz turned on

View 3 Replies View Related

Ubuntu Multimedia :: Volume Control Can Only Do Mute Or Full Volume?

Oct 31, 2010

I am struggling with a problem with the volume control... when i try to adjust the volume with the sliding bar i can not do it. If i put the scrollbar to the 0 position, it is muted. when i move it to anywhere else, i get the full volume. From other programs like vlc, i can adjust the volume with no problem.

View 2 Replies View Related

Ubuntu Multimedia :: Very Little Control Over Volume Using Master Volume Level?

Apr 10, 2011

My volume control seems to have only three settings: TOO LOUD, VERY QUIET, OFF. If I adjust the Master volume slider from the Panel, only about the right 1/8th has any effect and if I slide it past about the 95% mark, I get no sound at all. At the far-right end of the volume control, I get total volume. It's basically like the slider only has any impact in the top 5% of it's space. Below 95% of the slide, there is zero volume.

It's so drastic, that one tap down of the volume button on my keyboard kills the sound (because it nudges the slider past that 95% mark). This happens in the Audio settings, etc., system-wide. If I adjust the volume for an individual app from within the app (MPlayer, for example) it behaves exactly as expected (that is, app volume works smoothly, it's just master volume that has this issue). I have run through most of the "obvious" things-- I'm wondering if I broke something by installing the extra KDE packages to get Amarok to work.

View 3 Replies View Related

Ubuntu :: Use Super Keys As Volume Up And Volume Down In Karmic?

Mar 17, 2010

In Intrepid Ibex, I was using the left Super key as Volume Down and the right Super key as Volume Up, because it was just so convenient.

However when I go to the "Keyboard Shortcuts" window in Karmic, it doesn't let me assign the Super keys to anything. I mean like, I can use the Super Keys along with other keys, but not by themselves.

Is it somehow possible to use the Super keys for Volume Up and Volume Down in Karmic?

View 3 Replies View Related

Ubuntu :: 10.04 LTS - When I Adjust The Volume With The Volume Wheel ,Nothing Is Clickable?

May 1, 2010

It seems that when I adjust the volume with the volume wheel on the side of my notebook, the OS messes up. Nothing is clickable, I cannot type anything, in order to get a working computer again I have to hard reset it.Why is this happening? I have never experienced this. I have a Toshiba Satellite that I recently installed Ubuntu on.

View 5 Replies View Related

Debian Multimedia :: How To Have Volume Buttons On Laptop Change 'pcm' Channel Volume Rather Than 'master'?

Jun 13, 2010

I'm running squeeze (last updated today), and everything has been working great. There is only thing that would simplify my life minutely..Anybody know how can I have the volume buttons on my laptop change the "pcm" channel volume rather than "master"? If they could control pcm, then I could adjust the volume coming out of my headphones or my computer speaker (both controlled by pcm, but not master...seems strange to me) with just one click.I tried to find this info online, but all results seem to refer to an older version. The simple "click here, set this" solution no longer is possible.

View 2 Replies View Related

Debian Multimedia :: Laptop Volume Buttons And GNOME Volume Are Not Synchronized

Feb 27, 2011

Debian Squeeze 6.0.0 on a Thinkpad T43, sound volume is not synchronized between the laptop volume buttons and GNOME's Volume Applet. So if I turn the volume all the way down with the physical buttons, the volume applet may still indicate 75%.I did not have this problem in Debian Lenny. Pressing the volume buttons used to show a volume bar on the screen, as did pressing the mute button.

View 8 Replies View Related

Fedora :: Dumb Lvm - Volume Group And Volume Names Are Gone From View

Jan 22, 2011

I don't know much about lvm and I've managed to screw up a drive. I had a 500GB drive with FC14 on it and I wanted to copy over a load of data to my new 1TB that was replacing it. I set up my new install the same way as the old...including the same volume names (error number 1 I think) I successfully mounted the old/500GB drive (using vgscan and vgchange -a y etc.) using a laptop (running FC13) and an external hdd cradle. I could access the files I wanted but this wasn't the machine I wanted to copy them to (I was doing this while waiting for the install to finish on the new drive).

When I tried the same process on the new install I found that having two lvm with the same name meant I couldn't mount the external one. So I opened the disk utility (palimsest) and was going to change the name of the old volume group but it wouldn't let me do that. I then thought maybe I could get away with just changing the name of the partition where the files were and maybe I could add it to the mounted group or something so I changed it to lv_home2. This changed the name of my new/1TB lv_home to lv_home2 as well. So thinking that wasn't the answer I just changed the name of the new lv_home2 back to lv_home.

From that point on I haven't been able to see the old drives partitions (the new volume group still works so far). I has a physical volume but the volume group and volume names are gone from view. When I try to vgscan on my main computer or the laptop I had it working on earlier I get:

[Code]....

View 3 Replies View Related

General :: Move / Copy A Logical Volume From One Volume Group To Another?

Dec 1, 2010

I'm rearranging a bunch of disks on my server at home and I find myself in the position of wanting to move a bunch of LVM logical volumes to another volume group. Is there a simple way to do this? I saw mention of a cplv command but this seems to be either old or not something that was ever available for linux.

View 2 Replies View Related

Ubuntu :: Volume Difference - Is There A Change In The Max Of Volume?

Apr 26, 2011

Just wondering if anyone else experienced this. I have been using Ubuntu for half a year now and I love it. I just installed Kubuntu Desktop to try it out and I found that I can't get near as high volume with it than I do with Ubuntu. Ubuntu is even way louder than the Windows that used to be on here.

So why is there a change in the max of volume? I am a huge music person and that is the only thing holding me back from getting rid of gnome. I like how fresh and clean KDE is.

Code:

View 2 Replies View Related

CentOS 5 :: Add New RAID Volume To The Existing Logical Volume?

May 7, 2011

I have a system with a 2TB RAID level 1 installed (2 x 2TB drives, configured as RAID1 through the BIOS). I installed Centos 5.5 and it runs fine. I now added another 2x2TB drives and configured them as RAID1 through the BIOS.

How do I add this new RAID volume to the existing logical volume?

View 5 Replies View Related

Fedora :: Mapping The Mute / Volume- Up / Volume-down?

Aug 13, 2010

I'm running f13 on eeeeeeepc netbook .... gnome and compiz The <FN> keys that control volume are not working, but brightness, for example, works fine. The keyboard settings in gnome do not seem to allow me to set the volume to the <fn> key combos.

View 2 Replies View Related

Ubuntu :: K3B Saying Cannot Unmount The CD?

Sep 5, 2010

I have gone senile but what happened to the Unmount option when I right click on a Desktop CD icon in 10.04? I only wanted to make an ISO image and K3B says it cannot unmount the CD. I don't want to Eject it. I have a clever idea! I will add Mount Manager to the panel. Mount Manager should be called Eject Manager because that is all it does!! Even Krusader seems to have lost its ability to unmount a device.

View 9 Replies View Related

Ubuntu :: Volume Goes Up Or Down When Using The Volume Wheel?

Jan 15, 2010

I'm using a Toshiba Satellite A135 and it has a scroll volume wheel in the front. However, every time I use it, it makes the volume go up two notches, no matter how gently I move it. Is there a way to reduce how much the volume goes up or down when using the volume wheel?

View 1 Replies View Related

Ubuntu :: Can't Eject Or Unmount DVD?

Feb 13, 2010

I am in the middle of copying a dvd with k9copy and it is asking me to insert a recordable dvd.so i try to eject and it won't let me, it says failed to eject media one or more volumes are in use. There is nothing else using the disc so I don't get it?

View 3 Replies View Related

Ubuntu :: Can't Unmount ISO File?

Feb 20, 2010

I mounted an ISO file with the default ISO mounter and when i tried browsing a certain directory, it froze so now I'm trying to unmount and i'm getting this error.

Code: DBus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

View 2 Replies View Related

Ubuntu :: Unmount Creative Zen Via Terminal

Feb 15, 2010

I want to unmount my creative zen music player via the terminal so I don't have to right-click the symbol and click unmount.

It is not mounted under /media like my ipod so I don't know how.

When I select it in nautilus the path is listed as gphoto2://[usb:002,004]/

View 1 Replies View Related

Ubuntu :: Unable To Unmount Iphone

Jun 26, 2010

DBus error org.freedesktop.DBus.Error.UnknownMethod: Method "Unmount" with signature "sou" on interface "org.gtk.vfs.Mount" doesn't exist

View 1 Replies View Related

Ubuntu :: Cannot Unmount / Error Saying It's In Use By Another Application?

Aug 19, 2010

I installed KDE 4.4 through Ubuntu's repos and then upgraded to 4.5 via backport PPA. I am unable to unmount any USB device. It keeps saying it's in use by another application. Even if I plug it in and do nothing, but then try to unmount, it gives me this error?

View 6 Replies View Related

Ubuntu :: Script For Unmount Devices?

Sep 8, 2010

basic script on unmounting devices, as that option was removed in Ubuntu Lucid?I'm aware I can possibly recompile the nautilus source and all that, but I think a much easier method would be to just add a script for such. Something basic, like this, but that includes ALL devices that can be unmounted (such as flash drives, external hard drive, and sd/xd cards), not just disc drives. Pretty much what the right click 'Unmount' option in nautilus used to be like:

Code:
#!/bin/bash
sudo umount /dev/sr0

View 9 Replies View Related

Ubuntu :: Can't Unmount Partition For Repair?

Jan 4, 2011

After reboot I saw this communication:Quote:Target filesystem doesn't have requested /sbin/init.No init found. Try passing init= bootarg.and I can't shutdown the system normally because it stops (live cd too).Then I can't repair this partition because it is always busy.

View 2 Replies View Related







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