CentOS 5 :: Executing Bash On External Drive

Jun 7, 2010

I have a CentOS system totally devoted to a 500GB disk. I have an additional disk mounted via an external device that will not execute scripts that are located on that device.

Current hardware configuration:
Quote:
t [root@localhost ~]# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 60801 488279610 8e Linux LVM

Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 * 1 42261 339457466+ 83 Linux
/dev/sdd2 42261 60801 148925985+ 5 Extended
/dev/sdd5 59372 60801 11486443+ 82 Linux swap / Solaris
/dev/sdd6 42261 58671 131814400 83 Linux
/dev/sdd7 58671 59371 5623808 82 Linux swap / Solaris

Partition table entries are not in disk order
[root@localhost ~]# uname -a
Linux localhost 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:08:30 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]#

View 17 Replies


ADVERTISEMENT

General :: CentOS 5.5 - External DVD Drive Does Not Show Up

Dec 5, 2010

Installed CentOS 5.5 some time ago and I can proudly say I am more than satisfied with it. Managed to install codecs, flash player, media players, chrome and opera browsers and all other things I need. My only problem is that as of about a week ago my external DVD player is not recognized any more by CentOS so I am unable to watch movies. My external DVD player is Magnavox and it works great but CentOS does not recognize it any more. I used to watch movies in CentOS in SMPlayer all the time. What to do to get it back?

View 1 Replies View Related

CentOS 5 :: Installed 5.3 On An External USB Drive But Can't Boot From It

Oct 5, 2009

I recently installed CentOS 5.3 (from DVD media) on a Seagate 320GB external USB drive; this drive is connected to an Intel-based desktop computer (Intel D945GNT motherboard) with two internal SATA drives (both NTFS, as I'm running Windows XP SP3 as my primary OS). The install found the USB drive fine, and I manually configured my partitions; I had the install place the boot loader in the first sector of the boot partition of the external USB drive. I had set my BIOS to boot from the USB drive first; after a reboot, nothing happened...no GRUB menu, nada.

After some research, I had found an article discussing the need to rebuild the initrd for USB drive support. So, I booted the computer from the CentOS DVD, then went into 'linux rescue' mode; once I was at a command prompt, I navigated to the /boot directory and executed the following command:

mkinitrd --with-usb --preload=ehci-hcd --preload=usb-storage --preload=scsi_mod --preload=sd_mod ./usbinitrd-2.6.18-128.el5 2.6.18-128.el5

After the new "usbinitrd" was created, I edited grub.conf to reflect the new image, then attempted the reboot again from the USB drive. Still no GRUB menu.

View 2 Replies View Related

CentOS 5 :: Anaconda Unmounting DVD From External Drive

Oct 25, 2010

I have an external DVD burner hooked up to an EEE PC 701SD. The disk has worked on a dell desktop computer, and a 701 (the first eee pc which I built the install on) without a problem, however when I boot up the install disk on the 701SD, I get a message telling me it's unable to download the kickstart file. It's being set to cdrom:/ks.cfg, which should work, but it isn't.... This exact same disk just did a full install on the 701 15 minutes before I ran it on this computer.

View 8 Replies View Related

Programming :: Executing An External Command With Python (CGI)

Jul 8, 2011

I need to execute an external command with Python from Web. I know there is subprocess module that executes external programs but I'm trying to execute a command registered for the execution of a program. In this case when I execute my file in the shell everything is Ok, but from the Web it doesn't work.

View 1 Replies View Related

CentOS 5 Hardware :: Can't Boot With External USB Drive Installed?

Sep 30, 2009

I installed the latest download of centos 5 on to a older dell optiplex gx260. install went fine. I then hooked up an external 1tb USB drive, formatted it ext3 from inside the LVM, and mounted it to /usb-mnt. the mount command is in /etc/fstab like normal: /dev/1tb-usb/1tb-usb /usb-mnt ext3 defaults 1 2

all of the steps taken were straight out of the gui now on boot up I get: checking filesystems fsck.ext3" No such file or directory while trying to open /dev/1tb-usb/1tb-usb [FAILED]

*** an error occurred during the file system check
*** Droping you to a shell; the system will reboot
*** when you leave the shell.
give root password for maintenance
(or type control-D to continue):

and yeah all the /dev entries are gone. I have rebooted in linux rescue mode from the install cd, commented out fstab and been able to boot. but that doesn't actually get me to having this disk available. how to I get the system to see the drive again? if I add it back to fstab is just goes into the above. I don't seem to be able to get LVM to see the disk anymore to reformat it, I can't get the system to allow me to access it so I seem stuck.

so how do you get the system to reprobe and add a drive that once existed? uname -a output: Linux guff.domain.edu 2.6.18-128.el5 #1 SMP Wed Jan 21 10:44:23 EST 2009 i686 i686 i386 GNU/Linux

View 6 Replies View Related

CentOS 5 Hardware :: Connect IOSafe Solo External Usb Drive?

Oct 22, 2009

I am trying to connect IOSafe Solo external usb drive. The systems sees it then disconnects it.

View 1 Replies View Related

CentOS 5 Hardware :: External Hard Drive Stopped Working?

Aug 26, 2011

I have a 2TB hard-drive connecting via a usb port on my server for automatic backups. I noticed the backups had stopped working and then I realize I had lost the ability to communicate with the drive.

/sbin/lsusb gives:
Bus 005 Device 001: ID 0000:0000
Bus 002 Device 003: ID 046b:ff10 American Megatrends, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 002: ID 046b:ff01 American Megatrends, Inc.
Bus 001 Device 005: ID 059f:1018 LaCie, Ltd

[Code]...

View 1 Replies View Related

Ubuntu :: Permission Denied For Executing Files On The External Storage?

Jan 24, 2010

I have a dual boot Dell Studio laptop with Windows (VISTA) and Ubuntu (9.0.4) installed on it. I have recently installed Ubuntu to make it a dual boot. Before that I was using LiveUSB Ubuntu image for six months (without any problems).

During the installation of Ubuntu, I created a Linux partition of 2GB for Ubuntu installation (assuming that it was running successfully on my 2GB USB drive). All of my other work (e.g. documents/programming projects etc.) are stored on the Windows partition (which is loaded during the boot time automatically). The problem is that I get a "permission denied" error while running any executable file on the Windows partition. But if I copy the same executable on the Linux partition, everything works perfect. Am I missing something here?

I have verified that the executable have necessary execute permissions.

View 4 Replies View Related

CentOS 5 :: Install The Reiserfs Drivers To Read / Write To External Drive?

Jul 20, 2009

I am trying to install the reiserfs drivers to read/write to my external drive. But keep getting command not found. Although the system can get man pages for modprobe.

modprobe reiserfs
bash: modprobe: command not found

I also need to know how to add myself to the sudoers file. I have already tried visudo but this has not worked.

View 1 Replies View Related

CentOS 5 Hardware :: USB External Hard Drive - Entry In Fstab File

Nov 13, 2009

I have centos 5.3 installed. I plugged in a WD usb external HD, Icon is showing up on desktop everything is working formatted with ext3. I would like to have an entry for this in my /etc/fstab file, and I need to know how to enable Quotas on some files on it.

View 3 Replies View Related

Programming :: Bash Script: Assign Command Ouput To A Variable Without Executing It?

Feb 12, 2011

I'm trying to execute the following command within a bash script:

Code:
tac /var/log/system.log | head -1
The script I wrote is:

[code]...

View 1 Replies View Related

Programming :: Check If The User Is In Correct Directory Before Executing Bash Script

Dec 10, 2010

I have been searching for 90 minutes for something that I "think" should be fairly easy. I'm pretty new to Bash Scripting so I could be completely wrong. Then again it may be a weird request to even need something like this. But here it is.I have a script written to convert data from one of our software version to another. The only thing I need to add to it is a "check to make sure the user running the script is in the /tmp directory".

View 7 Replies View Related

CentOS 5 Hardware :: Support HP EH854A LTO4 External SCSI Tape Drive?

Mar 24, 2010

Does CentOS 5 support HP EH854A LTO4 External SCSI tape drive?

View 3 Replies View Related

Ubuntu :: Executing Bash Script As Root In Terminal Via Shortcut In Main Menu?

Jul 31, 2011

I wrote bash script that uses zenity and a choice to install various programs, tested it and it works, but only when I call it from terminal. I wanted to add it in gnome main menu. The script is /home/eee/zenity.sh. In accessories I added an entry with command:

Code:
/home/eee/zenity.sh
, but since there is no terminal it starts zenity, but it does not work. I have also tried
Code:
gksu gnome-terminal -x /home/eee/zenity.sh

[Code].....

View 4 Replies View Related

Software :: Ubuntu Installed On External Hard Drive, Can't Startup Without External Hard Drive?

Jan 14, 2009

I have 2 ubuntu's: 1 on my ineternal hard drive, 1 on my external

When I startup without my ext drive =>GRUB error 21.

And when I plug it in I can choose: the standard ubuntu kernel is the one on my external, and the original one is listed under other...

I'd like to be able to startup without external hard drive and make the ubuntu on my internal drve the standard.

View 14 Replies View Related

Ubuntu :: Permission Denied Errors When Executing A File On A Different Hard Drive?

Sep 8, 2010

I installed Ubuntu 10.10 beta yesterday and most of it is working very well. However, I ran into a problem with permissions today.I have a HDD containing my home folder and a HDD containing my data folder. The HDD with the data folder is mounted on /media/data/data_1.

Code:
jensen@jensen-desktop:~$ ll /media/data/ | grep data_1
drwxrwxrwx 8 jensen jensen 4.0K 2010-09-07 23:10 data_1/[code]....

I made sure I had set a+x rights on the file, tried executing it as root but the permission error stayed.When I copy that same file to my Desktop folder I can perfectly execute it.When it's located on the other hard drive I can't. I tried several command line scripts and they all work when I execute them from my OS hard drive,but not from another hard drive.

View 2 Replies View Related

CentOS 5 :: Cron Entries Not Executing?

Jun 2, 2010

I'm trying to add several cron jobs. I have a folder (/etc/cron.myapp) with several subfolders in it (30minute, 3minute, daily, hourly). Each of these folders contains a script.Runnng/usr/bin/run-parts /etc/cron.myapp/3minute/will execute the contents of that folder.I have tried adding the following entries to /etc/crontab with no luck, and nothing is showing up in /var/log/cron

*/3 * * * * /usr/bin/run-parts /etc/cron.myapp/3minute/
*/3 * * * * /usr/bin/run-parts /etc/cron.myapp/3minute
*/3 * * * * root /usr/bin/run-parts /etc/cron.myapp/3minute/

[code]....

View 3 Replies View Related

CentOS 5 :: Executing Bash_profile Everytime?

Jul 21, 2010

I have installed Centos 5 for Oracle on my PC. I observe that everytime I have to execute .bash_profile. Otherwise I get command not found message.How to change this behaviour so that it executes automatically everytime I open a new terminal or a tab.The bash_profile is as follows. I notice that the same entry is in another Centos 5 installation in another PC, But I don't have to executeeverytime the bash_profile .

# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then

[code]....

View 1 Replies View Related

Programming :: Fork: Not Enough Memory While Executing "spawn Bash"

Apr 9, 2010

I have a TCL framewrok for my test cases automation. This is been working for last 1 year. But yesterday it exited with exception when a function was called. The exception was given as fork: not enough memory while executing "spawn bash"(procedure "runtrigger" line 36) invoked from within "runtrigger $fnAfter $sid_l $mapver" ("trigger" arm line 6) invoked from within

View 4 Replies View Related

CentOS 5 Server :: Crond Not Executing Script

Dec 5, 2009

I have a php script that i made to check if the internet is working and if not, it should execute a command that starts a service on my server (service jistarter start), and i want to run it every 3 minutes, so i added it to the crontab, this is how it looks:

The problem is that cron isn't executing it or something.. i don't know but the service it was intended to start, doesn't start.

The thing is that the script runs fine when i run it myself, in all the 3 methods it woks fine: "/usr/bin/php /srv/checkping.php" or "php /srv/checkping.php" or "/srv/checkping,php" (it has chmod 755):

This is the file:

View 2 Replies View Related

Programming :: Bash Script - Executing Answer To Another Script?

Nov 4, 2010

I have a simple BASH script that I want to make it execute USERNAME and PASSWORD to another bash script and htdigest. But After passwd, with htdigest and the script rustart, I have to manual enter the answers.

#!/bin/bash
echo -n "What is the user name?"
read -e USERNAME

[code]....

Quote:

This will ask me for username and password, but I want it to take the username and password from $USERNAME and $PASSWORD

service rustart restart

Quote:

This script needs a username to restart another exec, but I don't wana have to manually type in the username, I just want it to automatically fill in the $USERNAME

View 4 Replies View Related

Fedora Hardware :: When Safely Remove Drive Menu Is Clicked On External Hard Drive

May 30, 2011

I have 350GB external Western Digital USB hard Drive.When I try to remove it from the system by executing Safely Remove Drive menu the fedora 15 system gets stuck.The processor starts giving a hum sound and it goes on even if it is left for half an hour in the stuck state.The Mouse is not working and everything is halted.

View 13 Replies View Related

Ubuntu Installation :: Installing 11.04 On External Hard Drive Drive?

Jun 19, 2011

I would like to install Linux Ubuntu 11.04 on an external hard drive - its partitioned and ready for Linux.I've downloaded and burnt the .iso file to a DVD so its all good so far...First of all... is this possible without messing up my macbook? I don't particularly want to break into my macbook to disconnect the hard drive (I read on a tutorial for a previous version of Ubuntu that I'd have to do that... - does it still apply to 11.04?) - as it voids the warranty (I checked ).The reason I ask this is because I had a friend who partitioned their internal hard drive and installed Ubuntu on it. But after installation was complete they couldn't boot up Windows 7 or Ubuntu... and it resulted in them having to clean install Windows 7... - I don't want to end up in that situation

Second... If it is possible to install it without messing up my macbook... - Do I just follow the install instructions but just make sure that where possible I make sure that everything is installed on my external hard drive?...I really need someone to put my mind at rest that everything will run smoothly and that I'll be able to run Mac OS X as usual but also that I'll be able to boot from my external hard drive to run Ubuntu.

View 2 Replies View Related

Red Hat / Fedora :: Move Hard Drive Installation To External Drive?

Mar 30, 2011

i have installed fedora 14 with so many libraries ,development tools installed on my pc but i usually have to present some projects which can run on my system .........and can't be executed or compiled due to absence of libraries and tools there so, i there some way to so that i can use this current installation on my hard drive of my pc to some external media like external hard disk and plug and use that installation anywhere on any system..

View 2 Replies View Related

Ubuntu :: Error "occurred While Executing Syslinux. Your USB Drive Won't Be Bootable" When Installing To USB Memory Stick

Jan 18, 2011

When using the Universal USB Installer and following the instructions according to the Ubuntu web site, I get the following error: an error () "occurred while executing syslinux. Your USB drive won't be bootable" There is no number between the brackets and I has no problem with a previous version of Ubuntu netbook remix.

View 9 Replies View Related

Programming :: Bash Script: Order And Display On External File

Mar 12, 2010

I'd like to create a script which allows me to order its data (let's say: Name, age, department and work start date) by date. And display the result in another file.

View 1 Replies View Related

General :: Upgrade Internal 2.5" Hard Drive Vs External Usb Hard Drive For An Old Laptop?

Jan 25, 2010

I got a dell inspiron 1501 laptop with a 80Gb sata drive what is the best solution to add data storage space for someone that love to have multiples operating systems at hand Note: I use mostly linux so I won't need to change my laptop for many years maybe ...

View 2 Replies View Related

Ubuntu :: Seeing Folders - Plug In The External Drive And Get Error "format The Drive"

May 30, 2010

I'm not sure what to do, but I just rescued photos and documents using ubuntu live cd, gddrescue and photorec. The data carving went fine and I was able to move all of my recovered jpg's into a recovery/jpg folder, as well as my word doc's into a recover/doc folder. I also have recovery/video and recovery/audio. Now here's my problem...

I used the right-click "safely remove drive" from the ubuntu interface and then unplugged my external drive. I then tried to view the recovered photos, etc on my windows 7 desktop, but when I plug in the external drive I get an error and a prompt to "format the drive" so that windows can use it.

I plugged the external drive back into my failed laptop and with the ubuntu live cd can see the drive, but none of the folders display. I can cd "change directories" to all of the folders using a terminal, but still can't see them outside of the terminal. That is, with the ubuntu interface. I'm just trying to finish up recoverying these photos, which I thought I had done.

View 4 Replies View Related

Red Hat / Fedora :: Reformatting External Drive - Error "drive Doesn't Show Up At All Via Df -k"

Apr 15, 2011

I need to re-format an external drive. All the instructions I have found start with figuring out where the drive is mounted (sda, hda, etc.). However, as soon as my RH Linux machine sees the drive's format (ntfs) it decides it won't even mount it in the first place. Gives me an error message. Also, the drive doesn't show up at all via "df -k". how to convince RHL to be a little more accepting?

View 5 Replies View Related







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