Fedora :: Write A Shell Script Which Will Mount The Data HDD On Boot?

Jun 18, 2011

I using fedora 14 and two HDD one for O.S and other for data. I manually mount the data HDD each time I put on my PC I want to write a Shell Script which will mount the data HDD on boot.

View 4 Replies


ADVERTISEMENT

Fedora :: Write A Shell Script That Will Look At Each File?

Jul 23, 2010

I have a number of text files throughout my /home/pjs/Documents directory tree that have execute permissions set. Almost all of my file names have spaces in them. I am trying to write a shell script that will look at each file in my Documents directory, find the ones that have execute permissions set, and run the command chmod 644. Of course, I don't want the command run on the directories.

The following script *doesn't work*, but might serve to illustrate what I am trying to do:

#!/bin/bash
for x in "$(ls -R)" do
if [ -f "$x" ] && [ -x $x ]; then
chmod 644 "$x"
fi
done

I want each file and directory name to be placed, one by one, in the variable $x, and then tested with the "if" conditionals.

The first problem seems to be that, although the command "ls -R" does produce a complete list of the files and directories I need, they are not placed, one by one, in the variable x like I want them to be.

Also, I think I should use the shift command so that the option -R doesn't get included as one of the values of the variable $x, but I can't figure out where to put it.

View 14 Replies View Related

General :: Write A Shell Script Which Will Simultaneously Collect OS User Information And Write In An Individual Text Files?

Feb 17, 2010

I want to write a shell script which will simultaneously collect OS user information and write in an individual text files.Can anyone tell me the syntax of the script.N.B. The user name will be mentioned in an array within the shell script.

View 8 Replies View Related

General :: Write A Shell Script Instead Of Shell Function?

Apr 27, 2011

I would like know when it is necessary or advisable to write a shell script instead of shell function ?

View 3 Replies View Related

Fedora Hardware :: HP Laserjet 1300n - Unable To Write Print Data

Aug 23, 2011

I use a network printer (HP Laserjet 1300n). Since a few days ago I couldn't print anything, the error message is 'Unable to write print data:Broken pipe'. What could be wrong? I replaced the cartridge recently, but nothing else.

View 11 Replies View Related

Fedora :: Mount And Unmount Data Partitions

Jul 29, 2011

I'm in the process of building a new Fedora machine. I use the machine for a VMWare server, the file server for the house as well as a Linux desktop for work.My current machine has a single 1.5GB hard drive. The new machine will have a mirrored RAID drive(2TB). I'm also contemplating using a smaller 250GB drive for the OS installation. I would then divide up the 2TB drive into /home and /var/lib/vmware partitions where the bulk of the data would reside.The goal is to be able to unmount the /home and /var/lib/vmware partitions when I need to upgrade the OS version with the data intact and remount them once the new install is complete.

The goal is to keep the family network file shares and my Virtual machines intact while reinstalling the new Fedora OS from scratch. In theory it should work. I just want to mak an (in)sanity check to ensure it will work in practice.

View 2 Replies View Related

General :: Mount: /dev/mapper/gegevens-Data Already Mounted Or /data Busy

Jul 14, 2010

A few months ago I have setup a server with three hard disks. The partition mapping the disks as follows:

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7ca36fee

[code]....

Now I have the following problem the LVM file system don't mount properly.If I open the mount point I see only a few files of the LVM disk. If I want to unmount the disk I get the following error:

umount /data/
umount: /data/: not mounted

If I want to mount the volume I get the following error:

mount -a
mount: /dev/mapper/gegevens-Data already mounted or /data busy

View 3 Replies View Related

Fedora Hardware :: Trying To Mount Drive - Create An Ext4 Partition To Move The Data

Jun 12, 2010

I just installed F13 x86_64 on a system that used to be running Windows 7.

The boot drive is a SATA drive attached to the motherboard which is working fine.

However, my data drive is an NTFS partition filling a 3.6TB SATA raid.

It's GPT--Gparted sees 3 unknown partitions, and gdisk shows:

Code:

How do I mount this in Fedora 13? I had intended to shrink the NTFS partition so that I can create an ext4 partition to move the data to. Will this be possible?

I've got a LOT of valuable data on this drive, and nothing else big enough to store it.

View 3 Replies View Related

Fedora :: RAMDISK: EOF While Reading Compressed Data ...Kernel Panic - Unable To Mount Root?

Jul 31, 2010

I was following this tutorial on How install the rpmfusion nvidia drivers in Fedora 13Here's the tutorial:Quote:Originally Posted by leigh123linuxF13 Howto for the rpmfusion nvidia drivers This is a Three-Step Process. If you don't follow all three steps, your install will fail!1. Install the nvidia driver. ( if you have 4Gb of RAM or more you will probably have a PAE kernel [32bit only] so follow the PAE part )For GeForce 6, 7, 8, 9, 200 & 300 series cards

Code:
su
rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-

[code]...

View 2 Replies View Related

Ubuntu Installation :: Duplicate Drives In "Places" - Error "mount: /dev/sdd1 Already Mounted Or /media/Data Busy Mount: According To Mtab, /dev/sdd1 Is Already Mounted On /media/Data"

Feb 13, 2010

Just moved to Ubuntu from XP. Whole process has gone very smoothly, but left with a small problem (i.e. it isn't actually affecting usability) that I don't seem to be able to fix and can't find on forums/internet. I also have a problem with the Floppy drive, but I've seen that problem elsewhere in the forums.

It's a dual boot system with both NTFS and Ext4 drives. All are visible and fully accessible. I decided to convert one of the NTFS drive to Ext4. That appeared to be successful and was successfully remounted as an Ext4 drive. The drive label is "Data". I did have a bit of a problem getting it remounted so that I could see/use it under my log-in as opposed to just under root. It's at this point I think that I did something to create the problem.

I now have two entries for "Data" in drop down menu for Places. The true one is shown as a standard hard drive icon, but the false one is shown as a different icon - possibly an external drive icon (note that the floppy drive is also showing as the same icon and I can't access that, but I've seen that's a problem elsewhere in the forums).

I can write and read to the true "Data" hard drive. If I click on the other false "Data" icon, I get the message "mount: /dev/sdd1 already mounted or /media/Data busy mount: according to mtab, /dev/sdd1 is already mounted on /media/Data". If unmount the true drive and try to mount the false drive, the system mounts the true drive instead. If I log into nautilus as root, neither the false data drive or the floppy appear in the left hand panel.

View 9 Replies View Related

General :: How To Write Own Shell

May 26, 2011

how to write own shell in linux?i want to know procedure of shell programming.

View 5 Replies View Related

Programming :: How To Write A Toy Shell

Mar 24, 2011

I'm trying to write a toy linux shell. For starters this is what I'm trying to do:

1. Start a new process with fork.

2. Execute a program in the new process with execl().

3. Redirect the output from the new process from STDOUT to another file descriptor, using dup2(2).

4. In the parent process, read the output from the child process and write it to the screen.

Creating a new process and executing a program in it is no problems, the problem is that I can't seem to capture the output from it in the parent process.

Code:

//digenv
//C++arl 2011-03-24
#include <stdio.h>
#include <sys/types.h>

[code]...

View 14 Replies View Related

General :: How To Write Korn Shell

Oct 14, 2010

I am new and start learning how to write korn shell, can you someone please translate the below command to common English? code...

View 1 Replies View Related

General :: Write A Shell Script?

Dec 11, 2010

write a shell script that allows only user 1 and user 2 to execute a program and only from terminal 01 and terminal 02

View 4 Replies View Related

Programming :: How To Write Own Shell In Unix

Sep 16, 2010

I wish to create my own shell for my operating systems project in college...

My professor has asked me to make sure that my shell can execute at least 30 or 40 commands... I have around a month's time

I have seen endless source codes in the net, I'm not able to understand any of it

How do i get about doing it?

View 2 Replies View Related

Fedora Networking :: Wireless Enable Correctly On Boot / NFS Can Mount Properly At Boot Also?

Aug 8, 2009

I have a server that NFS exports the /home directory out to other computers. On the desktop they all work great, but on a wireless laptop, this is where the problem occurs. The wireless enables after the person logs in, rendering the NFS export /home useless on the laptops.Is there anyway to have the wireless enable correctly on the boot so that NFS can mount properly at boot also?I'm using Fedora 11 (32bit) with a wireless router that has a security of WPA-PSK [TKIP] + WPA2-PSK [AES]. I could switch to some of the older versions if necessary to get this working.

View 5 Replies View Related

Ubuntu :: Write A Shell Script To Add Job To Cron?

Apr 1, 2011

I write a shell script below to add a job to cron.

#!/bin/sh
touch date.cron
echo '*/3 * * * * /usr/sbin/ntpdate 192.168.2.3' >date.cron

[code]....

View 4 Replies View Related

Programming :: Write A Function In A Shell Script?

Sep 22, 2010

I need a help regarding writing a function in a shell, what exactly a function does!!

View 3 Replies View Related

General :: Write A Shell Script Contains Python One?

Oct 22, 2010

I want to write a shell script contains python one. So,the result of python one is flv file. I want the path of this is copied into a enviroment variable that i have to pass as a flag argument of another program (to convert into mp3). To individuate the result of python script I thought to use (in PWD)

Code:
ls | grep -E '^.*mp3$'
But my question is: How can I copy this result into enviroment variable?

View 4 Replies View Related

Ubuntu :: Unable To Write A Shell Script To Vi

Nov 2, 2009

unable to write a shell script to vi

View 1 Replies View Related

Ubuntu :: Write A Shell Script To Run The Configuration Of Vim Editor?

Apr 12, 2010

I have a question, tried to search on the Internet but it is hopeless. I want to write a shell script(bashShell) that will run commands of configuration for vim editor.For example: in the script, it will run ":let", ":set", ":highlight" to configure for vim editor. In addition to, when I searched a pattern and wrote it to file,ed vi to open it automatically. But, I couldn't highlight a word(that is the pattern I'm searching) in vim automatically

View 3 Replies View Related

Ubuntu :: How To Write Shell Script To Change Resolution

Aug 6, 2010

Writing a Shell script which changes my X11.org config to 800x600 from any other resolution .

View 1 Replies View Related

Programming :: Write Shell Script To Ssh Into A Remote Computer And Run That?

Jun 26, 2010

How do i write a shell script to ssh into a remote server with password and run a script in it?

View 2 Replies View Related

Ubuntu :: Write Shell Script To Change Resolution?

Sep 23, 2010

Canceled a sys backup in progress now my Waste bin is at max and must be emptied.However OpenSuse 11.3 contradicts itself by claiming there is 0 in the waste bin? Perhaps there is a Bash command that would solve the problem

View 8 Replies View Related

General :: Write Either PYTHON Or Bash Shell Scripting?

Jun 4, 2010

I do not know how to write either PYTHON or Bash Shell Scripting. I am to learn one for Linux Administration purpose. Which one will you recommend for a Linux Admin/Eng environment?

View 4 Replies View Related

General :: Write A Shell Script That Will Delete All The .dat Files?

Apr 21, 2011

i have to write a shell script that will delete all the .dat files in /var/oracle/etl/incoming which the created date of the file is 7 days before the currrent date.

View 8 Replies View Related

Security :: Write A Shell Script Setup Policies?

Apr 14, 2011

Write a shell script setup linux security policies include:

1. password policy
2. User policy
3. firewall

Note: Create a file.sh from 1 to 3. purposes:

If (1) successful then 2 If (2) successful then 3 End

View 3 Replies View Related

Server :: Write A Shell Script Which Will Check IP And Domain Name In Rbl?

Feb 12, 2011

i am trying to write a shell script which will check my IP and domain name in rbl and inform me if it is listed.

View 4 Replies View Related

Programming :: Write Shell Script For Copy Files?

Mar 25, 2010

write shell script for copy files to usbdąsk that cosist of very long argument like "2009025_efkl".

View 1 Replies View Related

Programming :: Write A Shell Script To Set Security Policies?

Apr 13, 2011

I don't know how to write a shell script to set security policies for Linux to start. and how. I know that there are many security policies for Linux but do not know which one best suited to write a shell script.

View 5 Replies View Related







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