Fedora Servers :: Stop Script Unmounts Drive With Function To Wait

Nov 3, 2009

I have a start and stop script registered with chkconfig for a fuse mounted drive. I can /sbin/service scriptname start
and
/sbin/service scriptname stop
with no issues.

The stop script unmounts the drives and then stops the service with a function to wait until the pidof service is gone. My drives are showing up as dirty on reboot, which should mean that my script that functions normally in cli, is running out of time and possible being ignored by service after a certain wait period when shutdown -h now is issued. System is a remote server so I can not view the output during shutdown. How can I increase the wait before /sbin/service issues a [FAILED] if that is the case on shutdown? The startup script runs, however the shutdown script does not...the script does work though with the service scriptname stop command.

View 5 Replies


ADVERTISEMENT

Fedora Networking :: USB Hard Drive Unmounts / Reappear In SAMBA Shares?

Jan 11, 2011

I have a hard drive which I put in an enclosure so that I can attach it by USB to my laptop, like a giant flash drive. In other words, its an external Hard Drive now. When I first plug it in it is detected and mounts like you would expect, but after a few minutes it unmounts. It's like the drive spins down and unmounts or something.

So, I want to remount it over my network rather than having to walk over to the computer and unplug the Hard Drive and then plug it back in. I would even be happy if I could just remote desktop onto that machine and remount the device somehow.

Here's the problem:

When the Hard Drive is mounted, and I run the "mount" command in terminal it shows up as:

/dev/sdc1 on /media/"NAME OF HARD DRIVE"

but when it unmounts itself and I run lsusb in terminal it only shows up as:

Bus 002 Device 053: ID 13fd:1840 Initio Corporation

I don't know how to get it to mount based on that name. So, I am asking: given that it shows up with that name, how can I remount the device from the command line...

The ultimate goal being to get it to reappear in my SAMBA shares.

View 2 Replies View Related

Ubuntu Servers :: "GRUB Loading, Please Wait.... Error 15" - Drive Being Sde And Not Sda?

Apr 4, 2010

I am trying to set-up a home server using Ubuntu 9.10 server edition. My PC has 4 x 500Gb SATA drives which I will use for storage. I also have a 80Gb IDE drive which I want to install OS on. During installation the 80Gb IDE drive shows as sde. When doing the install I chose to install to whole disk (sde), all appears to go well. When I reboot all I get is "GRUB loading, please wait.... Error 15" Is the problem caused by my drive being sde and not sda? I have also tried partitioning sde as /. /boot and swap, still get Error 15.

View 3 Replies View Related

Hardware :: Mounting One USB Drive Automatically Unmounts Other

Feb 6, 2010

I just formatted my iomega 250 gb external HD to ext3. This is where i store media, such as music. What I am attempting to do is take all the music from my 5th gen 80gb ipod (rockbox firmware), and transfer it back onto my external drive, as all my data was (naturally) erased during the format. However, as soon as I plug in my ipod it mounts as usual... but after about 15-20 seconds my external drive unmounts. When i do a 'sudo mount dev/sdc1' it says sdc1 does not exist. How can i fix this? what is the problem? I have my ipod set on /dev/sdd2 and the external drive at /dev/sdc1, each with their own mount point. They each work perfectly independently. I have tried switching usb ports around and rebooting.

View 3 Replies View Related

Ubuntu :: NTFS USB Hard Drive Unexpectedly Unmounts?

Feb 5, 2010

I recently updated to Kernel 2.6.32.7 available from the: Mainline. The reason I have done this is because it corrects an error that prevents my web-cam from functioning (Microsoft VX-3000). So, with this kernel I have a functioning web-cam *but* I have noticed now that my USB Hard Drive intermittently now unmounts. I am unable to remount the device without rebooting Ubuntu. The drive was mounting dirty but installing NTFSProgs and running NTFSfix was the solution for that. I have disabled power management completely on my machine by editing /etc/default/acpi-support and changing SUSPEND_METHODS to "none" and both ACPI_SLEEP and ACPI_HIBERNATE to false. This seems to have made the USB hard drive take longer before it unmounts but it does still unmount. Also as a GRUB2 boot option I have tried acpi=off but this also disabled my usb keyboard and mouse and my BIOS isn't flexible enough to work around that so I cannot use that option. With these things in mind are there any other avenues I could pursue and things I could try?

Edit: It may not be "unmounting" it just disappears. Also, I could try to whitelist the USB controller in /etc/default/acpi-support if I knew how to find out what it was called but I do not know how to do that.. Yet !

Edit2: I moved the physical plug to another slot where it connects on the computer. If this disconnects again I'll swap out the cable. If it disconnects again.. I'll go buy a huge 1TB internal sATA and call it a day. ~

View 1 Replies View Related

Software :: Wait For One Process To Stop Before Starting Another?

Jul 13, 2011

I have a certain process (or processes) and I want to wait for them to finish before launching another one. Do I have to make a while loop checking the process for this task or is there a ready command for it?

View 3 Replies View Related

Fedora Hardware :: HDD Auto Unmounts ?

Feb 14, 2011

I have been having this problem when playing music using Rhytmbox or Exaile.....The external HDD (sata through USB) automatically unmounts thereby stopping playback of music. I just have not been able to figure out how to stop "auto" unmount.

View 6 Replies View Related

Ubuntu Servers :: High I/O Wait After Every Reboot?

May 19, 2010

The Machine

Core 2 Duo E4600
2GB DDR2 RAM (1 stick)
Intel ICH10R based motherboard (tried an ICH9R aswell)
4-port SATA controller (PCI Sil 3114)
O/S: Ubuntu Desktop x64 10.04 LTS (using 'desktop' because I like having a remote desktop)

The Storage Setup Disks: Assorted selection of 9 disk. 750GB, 1000GB and 1500GB Seagate and Western Digital disks. The disks are joined through a standard LVM2 configuration. I don't know the LVM term, but normally you'd call it a JBOD setup. On that LVM device, I've put a cryptsetup device, made with the LUKS tools (aes-xts-plain 256) On the cryptsetup device, I've created and mounted an EXT4 partition.

All in all, a completely standard LVM2 and LUKS setup, running EXT4. After a reboot, I proceed to unlock my cryptsetup encryption device, and then mount the EXT4 partition. All is well, the mount is accessible and everything looks fine. I then try to send a file to the mount, via Samba. After a few hundred MB written, the I/O wait goes berserk. It stays at 50% (dual core setup remember). The system becomes unresponsive to network commands (can't browse samba) for about 5-10 minutes. When it finally responds, the I/O wait is gone and everything is now fine. I can write and read hundreds of GB's of data without any issues at all. I can benchmark and stress all disks perfectly fine and no logs are showing disk errors.

I tried monitoring my disks with 'iostat -d 2' while the I/O wait was happening, and there is some slight Blk_read/s activity on 1 disk at a time. First for example /dev/sda is showing a little Blk_read/s acitivty, then it jumps to the next disk, and when every disk has show that slight Blk_read/s activity (500-800 or so) the problem is gone and the I/O wait is no more. I've tried changing motherboards, switching disks around on the controllers, checking individual disks, replacing disks and I've tried different versions of Ubuntu. The problem however persists. I could see it being a network issue, possibly a driver issue. But since the NIC is a standard RTL8111 on-board it seems unlike that the problem wouldn't be more widespread since this NIC is litterally being used everywhere. I did change my motherboard, so a faulty NIC seems unlikely twice in a row.

View 9 Replies View Related

General :: Stop A Function Called In A Script?

Sep 30, 2010

I made the following script:

Code:
#!/bin/bash
logErrors(){exec 2>/tmp/errorlogfifowhile truedocat /tmp/errorlogfifo |echo $(date "+[%Y-%m-%d %H:%m:%S]") Error: >/var/log/error.logdone}
logErrors
ls inexistentFile
exit 0

If I execute the script I see the formated error message in /var/log/error.log, as to be expected. After the script execution, I hoped "logErrors" was not executing anymore, but when, in another terminal, I call "echo something > /tmp/errorlogfifo", I still see the formated error message "something" in "/var/log/error.log". How can I finalize "logErrors" before the script ends? Or, maybe someone knows a better way to format and log the erros in a script.

I forgot to say that the file "/tmp/errorlogfifo" is a named pipe created by the command "mkfifo /tmp/errorlogfifo".

View 8 Replies View Related

Ubuntu Servers :: Hdd Hiccups - Wait At 99%, Iostat Util At 99% For NO Reason?

Jan 28, 2010

I use this machine as a samba server with one small IDE hdd for system and one large SATA hdd (1.5TB) hooked via 4xSATA PCI card. The machine has 1.5GB RAM, and is also to run 2 ktorrent clients inside two Xvncs.The problem is, that even when ktorrent is doing nothing I observe A LOT of hdd activity to the point where movies or even mp3s stored on this server played via samba on a windows machine "stutter". E.g. smplayer will repeat 5 second piece a few times before moving on to the next piece... and it goes on for a good 10 minutes, once it starts.Even browsing directories is slow to the point where it takes 5-20 seconds to show the content in Total Commander (equivalent of Midnight Commander for windows).I am not sure how I can track what is really happening. Why would ktorrent clients create a massive I/O when there's virtually no traffic to/from them? (I have total of 1kB/s down and 10kB/s up while taking the masurements below).Or is there something wrong with the hdd? I had to send back the first one I got, it had plenty of bad sectors (this one does not though, as far as I can tell no data loss occured, just performance sucks).Here's some diagnostic data, please let me know if there's anything else I should check.

Code:
root@server:/datapool/shared# iostat -x 10
Linux 2.6.31-3-generic (server) 10-01-28 _i686_ (1 CPU)

[code].....

View 4 Replies View Related

Fedora :: Pen Drive Seems To Stop Working?

Sep 13, 2009

few days back i forcibly remove my flash drive from the USB, but after that the pen drive seems to stop working whenever i try to insert the pen drive in Windows or Linux, i see the appropriate image but if i double click on the image it says nothing is mounted,

i have seen what is mounted with
#fdisk -l
&
#df

no pen drive is showing

i have tried to mount it forcibly with

#mount -t ntfs-3g /dev/sdb1 /media/external -o force

with variou combination of /dev/**** can anyone mount this pen drive or can tell me what's the default for /dev/ ??? i think sdb1 it works with my external drive but i am not sure for flash drive and i am also not sure if it's ntfs file system, it's 4 GB so it should be ntfs

View 7 Replies View Related

Fedora Servers :: How To Stop KVM Start At Booting

Feb 25, 2010

Fedora 12 64bit KVM

How to stop KVM start at booting?

Then how to start it after booting?

View 4 Replies View Related

Ubuntu :: Grub Loading "Please Wait Error 17" Adding New Hard Drive

Sep 20, 2010

I'm getting a funny error after trying to add a new internal hard drive to my computer. After adding the new drive to the "Slave" slot GRUB will not load properly and gives me the following error Grub Loading, Please Wait Error 17 I've checked in my BIOS and the "Master" drive is still the one where grub is loaded. When I unplug the new drive the problem disappears and I can load Grub normally. I've searched the threads, but couldn't find a similar problem, or a problem that could be applied to mine. I've also tried loading the live CD, but my internal CD drive is broken, and the external one I have doesn't seem to recognized during boot time.

View 9 Replies View Related

Fedora :: Proliant G4 Becomes Non-responsive @ 100% Wait?

Jul 1, 2011

I've installed both Fedora 15 x64 and Fedora 14 x64 on an HP Proliant DL380 G4 with the HP SmartArray SCSI controller, 2x146GB UW320 SCSI drives.The server was running RH v4 with a hardware RAID 1 with uptime of 400+ days with no issues.I broke the HW RAID and made 2x volumes and software RAID. I have another identical server with 4x 146GB UW320 SCSI drives with Fedora 12 x64 and SW RAID, so I figured 14/15 should be the same process.What happens is the server runs great for a while, but when I leave it for a few hours, it becomes non-responsive. I've re-installed 15 and 14 multiple times now and also installed NRPE, which shows load increasing to the point to where the server is non-responsive. It hits high load levels (as reported by NRPE). The load levels appear to be increasing over time. Such as last night:

log off at midnight, load average 0/0/0
2:03 am - WARNING - load average: 9.91, 8.85, 6.75
3:03 am - WARNING - load average: 16.91, 15.86, 14.47

[code].....

View 4 Replies View Related

Fedora :: Make BASH Script Wait For A Few Minutes?

Nov 26, 2009

I'm using bash script now,and I want have a script that can do like this: first ,tell me it will shut down ,and then shut down.My script looks like this:

#!/bin/sh
/usr/bin/curl $stop_page
shutdown -h now

[code]...

View 4 Replies View Related

Hardware :: JBOD Function - Plugging In Third Drive?

Mar 26, 2011

I am setting up another computer with Debian 6 stable and I have only 2 normal sata slot on the motherboard, the board has also 2 other Raid sata slot, I don't want to use Raid, can I just plug my 3rd drive into one of those. I read that I can use those slot as JBOD (just another bunch of drive). By running a Mandriva live cd before I install any OS, I don't see that 3rd drive. I don't see anything about JBOD in the bios.

View 2 Replies View Related

Programming :: Calling Umount2() Unmounts Volume But Df Entry Still Visible?

Nov 14, 2010

This is an odd one. I have a C program that calls umount to unmount a volume. A simplified case looks like this:

Code: int main()
{
int rc = umount2("/v0", MNT_FORCE);
if (rc != 0)
{
printf("Unable to unmount volume /v0, err='%s'", strerror(errno));
code....

I also discovered the reverse effect with calling mount() in code. When I make a call like Code: mount(drive, volume, "xfs", MS_NOATIME, NULL); the indicated drive is mounted since I can access the files as expected, but df doesn't show the drive has been mounted.

Why is my C code behaving this way? What do the mount/umount commands do when run from the command line that I'm not doing in my C code?

View 6 Replies View Related

Fedora Servers :: Tar And Mt Commands For Tape Drive?

Feb 26, 2010

I'm having issues with mt commands. For some reason, my server doesn't like backing up directories using tar.

Code:

# tar -czf /dev/st0 /www /home

ends up giving me an error message saying "removing / prefix" and then using the command

Code:

# mt -f /dev/st0 status

gives me an IOCTRL error. I've googled the error code and haven't come up with a viable fix. Thus far, the only way I've been able to check which files are on the tape is:

Code:

# tar -tzf /dev/st0

Of course, without getting the actual directories on the tape in the first place, the only files I've been able to transfer at this point are just singular files within the directories as opposed to the entire directories themselves.

View 1 Replies View Related

Fedora Servers :: Samba Share On External USB Drive?

May 29, 2009

I have a server which currently has a samba share for a printer and my home directory. Both have been working fine for a while now. I have a drobo (which is like a little USB RAID machine) connect via USB to the linux box. While trying to share it via samba I get weird messages from my windows machine (see screenshot). I have tried to share multiple folders on this drobo and no luck, all the same result.

I also tried a symbolic link, no good.

Here is a screen shot
http://aivila.com/temp/screen.jpg
Here is my smb.conf file:
Code:
[home]
path = /home/savona
read only = no

[Code]...

View 12 Replies View Related

Ubuntu :: How To Stop External USB Drive Automount

Jan 17, 2010

Everyone seems to what to know how to automount an external USB drive. I'm trying to stop 9.10 from automounting it. Normally I use fstab to mount an external drive where I prefer it to be mounted. But after the last software update karmic (9.10) is now automounting my drive and screwing up the fstab mount. Some how the drive is showing up as /dev/hdd1 and /dev/hde1. I could just shutoff automount but I like it for USB sticks and cameras and MP3 players. How do you stop automount from mounting just an exteral USB drive??

View 3 Replies View Related

Ubuntu :: Unable To Stop Mounted USB Drive

May 26, 2010

Whenever I right-click on a mounted usb drive, I have the option to "safely remove" it. However, it I choose this option, I inevitably get the following error message:

Unable to stop drive
Error detaching: helper exited with exit code 1: Detaching device /dev/sdb
USB device: /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6)
SYNCHRONIZE CACHE: synchronize cache(10): Fixed format, current; Sense key: Key=9
Additional sense: Logical unit not ready, cause not reportable
Info fld=0x0 [0]
FAILED: No such file or directory
(Continuing despite SYNCHRONIZE CACHE failure.)
STOP UNIT: start stop unit: transport: Host_status=0x07 [DID_ERROR]
Driver_status=0x00 [DRIVER_OK, SUGGEST_OK]
FAILED: No such file or directory

I'm currently using Lucid, but this happened on Karmic as well. The way I see it, the result I would like would be either:
1. The "safely remove drive" command just unmounts the drive (I can't imagine what else it does anyways, besides give me this stupid error)
2. There is no "safely remove drive" option.

View 6 Replies View Related

Fedora Servers :: NFS Drive - Mount System Call Failed

Oct 5, 2009

These are the settings on my server, which has a static ip:
Code:
[tim@computim ~]$ cat /etc/exports
/media/cavern 192.168.1.*(rw,sync)

Code:
[tim@computim ~]$ cat /etc/hosts.deny
portmap:ALL
mountd:ALL
rquotad:ALL
statd:ALL
lockd:ALL

Code:
[tim@computim ~]$ cat /etc/hosts.allow
portmap: 192.168.1.2/100
lockd: 192.168.1.2/100
rquotad: 192.168.1.2/100
mountd: 192.168.1.2/100
statd: 192.168.1.2/100

When I try to mount the disk from my client machine I get the error:
Code:
[tim@localhost ~]$ sudo mount -t nfs 192.168.1.10:/media/cavern /media/cavern
mount.nfs mount system call failed

Thinking the problem might be due to iptables I tried the following command as recommended by a book I found on google:
Code:
sudo iptables -A INPUT -i wlan0 -f -j ACCEPT
didn't help so tried disabling the firewall - still getting the error
Both machines are running FC11 - should i be using nfs4?

View 7 Replies View Related

Debian Configuration :: Stop Usb Drive Automounting Under Gnome?

Apr 24, 2011

I have Squeeze with Gnome.How is the best to stop all kind of usb drive automounting under Gnome?

View 2 Replies View Related

Ubuntu Networking :: How To Stop NFS From Murdering Hard Drive

Dec 6, 2010

fine until I wanted to copy files. I tried two a hundred something MB files. But I had to interrupt the process because the server was working the HDD like crazy. Judging by the speed the progress bar and the crazy hdd sounds, the server tried to copy the whole thing into the memory, of which the server doesn't have much, so started swapping in swapping out and writing the the file to the destination at the same time. How can I stop the nfs server doing that, and make it copy the files straight to the disk?

View 3 Replies View Related

Ubuntu :: Stop Asking For Password On Hard Drive Access?

Jan 7, 2011

as much as i love ubuntu i am finding my desktop machine attached to the tv set a nightmare.it has ubuntu studio installed and everytime i want to access the movie drive ( which in XP used to be the d: drive) it asks me for a password to access the drive.as much as i like the idea of security this is one step too far for this machine.

View 9 Replies View Related

Ubuntu Servers :: Can't Stop SSH / Sort It?

May 9, 2010

With 10.04 I can't stop SSH anymore by running "/etc/init.d/ssh stop". I get an "OK" after executing it but it doesn't actually do anything.

View 8 Replies View Related

OpenSUSE Hardware :: Multi-function Epson Stylus Sx218 - Can Not Run The Scanner Function ?

Mar 24, 2011

I bought a multifunction stylus sx218 Espon model and I can not run the scanner function. I did some research and found a few solutions and very functional. I hope someone solves the problem. My version of openSUSE 11.2.

View 9 Replies View Related

Programming :: How Can A Friend Function Access A Public Function From A Base Class

Nov 16, 2010

Code:
#include <iostream>
using namespace std;

[code]...

View 1 Replies View Related

Programming :: Passing Data From Interrupt Handler Function To Tasklet Function?

May 18, 2010

I am doing some Linux kernel programming for my research project. I need to record the timestamp (by using cpuid and rdtsc) when an interrupt handler (top half) is first invoked. Due to the time critical nature of the problem itself, I have to do the timestamping inside the interrupt handler itself (the first operation when the handler is called). However, I understand that tasks that are not so time critical should be deferred to a tasklet function (bottom half) for processing because other interrupts are disabled in a (top-half) interrupt handler. I am currently out of idea on how I can pass the timestamp information that I have obtained in the interrupt handler to the corresponding tasklet function.

View 2 Replies View Related

Fedora Servers :: File Change Notification When Writing To Network Drive

Sep 8, 2009

I have a relatively common problem, but I don't seem to identify it's source. I have a SAMBA server on my LAN to which there are mapped a few shares as network drives in windows xp (as Y: ) and mounted as CIFS in linux [as /y]. The problem is that every time I save a file [either windows xp or linux] on the mapped drive / mounted folder, our IDEs alert us that the file changes right after the save. I am running SAMBA 3.3.2.

View 1 Replies View Related







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