CentOS 5 :: File Copy From Cdrom?

May 18, 2009

I just installed CentOS 5 and am trying to learn how to copy ISO files onto my new install, to practice network installation. The Cdrom doesn't auto mount, which isn't so bad I can mount it using :

[root@rhatserver ~]# mount /dev/cdrom /media mount: block device /dev/cdrom is write-protected, mounting read-only

My question is... I want to copy from the Cdrom... to a new folder, then practice a network install across my network. I can't seem to figure out how to do this... I know that its an ISO file. When I check the name of the file on my Debian system it lists: CentOS_5.3_Final

I created a directory ( just for practice ) calle inst on /

how do I copy that ISO file from the CDrom to the inst directory... I have tried a number of commands as root: All similar to [root@rhatserver ~]# cp -ar /dev/cdrom /CentOS_5.3_Final /inst cp: cannot stat `/CentOS_5.3_Final': No such file or directory

View 2 Replies


ADVERTISEMENT

General :: Ubuntu 10.10 Cdrom Won't Copy Cds?

Nov 9, 2010

the error thats coming up is, need to install cdrdao but i went to the terminal and did that its already installed.

View 2 Replies View Related

CentOS 5 :: Using Mouse & Vim To Copy Contents Of One File Onto Another

Aug 4, 2010

I am using CentOS 5.5 and openSUSE 11.0. I use vim editor but do not know more than 1 - 2% of its functionality. In openSUSE if i open 2 text files in 2 separate terminals, i can copy the contents of one file onto another by just left-clicking and dragging the mouse over the required text. But i am unable to do this in CentOS.

View 6 Replies View Related

CentOS 5 :: Kickstart File Post - Copy / Paste Scripting

Feb 23, 2010

I want to design a kickstart file that creates an unattended installation (I've passed that part). After it installs, I want it to automatically read the device's MAC address and change the hostname to match the MAC address with the separators removed. (For example if the MAC address is 01-02-03-04-05-06, the prompt after login should read "root@010203040506")

I know this is entered in the "%post" section of the kickstart file, and I know I'm supposed to use the "cut" and "sed" commands, but I have no idea what I'm doing or how to do it. script so I can copy/paste it into my kickstart file?

View 5 Replies View Related

CentOS 5 :: Why The Cdrom Always Mounted Under /media

Aug 10, 2010

I went through some conf files under /etc. But cannot find out why cdrom always mounted under /media? Also there is one line in /etc/auto.misc:

cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

Does that mean the cdrom should be mounted under /misc/cd?

View 1 Replies View Related

CentOS 5 :: Cdrom Always Mounted Under /media?

Mar 1, 2009

I went through some conf files under /etc. But cannot find out why cdrom always mounted under /media? Also there is one line in /etc/auto.misc: cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

Does that mean the cdrom should be mounted under /misc/cd?

View 1 Replies View Related

General :: Copy A Read-Only File And Make The Copy Writable With A Single Cp Command?

Mar 1, 2011

How to copy a Read-Only file in Linux and make the copy writable with a single cp command in Linux (Ubuntu 10.04)? The --no-preserve and --preserve seemed to be good candidates, except that they should "and" the mode flags, while what I am looking for is something that will "or" them (add +w mode).

More details: I have to import a repository from GIT to Perforce. I want that all Perforce depot files are Read-Only (that is how Perforce was designed), while all other files that were derived/copied from depot files are writable. Currently if a Makefile tries to copy a Read-Only file then the derived file will also be Read-only. This leads to build-errors when cp tries to overwrite Read-Only file second time. Of course the --force is a workaround here but then the derived file is also Read-Only. Also I do not want to mess with "chmod" after each "cp" command - I will do that only as the last resort.

View 1 Replies View Related

General :: Use Kickstart To Install Centos From Cdrom?

Apr 12, 2010

when i use kickstart to install centos from cdrom (i make it myself in my way),i got a %post script problem with the kickstart file. 1.%post script used to copy my own software from cdrom to hard disk.then make install automaitlly with bash script.

the %post script like :
%post
mkdir -p /myownsoftware
cp -r /mnt/myownsoftware/* /myownsoftware
cd /myownsoftware

[Code]...

View 10 Replies View Related

CentOS 5 Server :: Mounting DVD / CDROM On WinXP Platform?

Dec 30, 2009

I have installed XP on linux xen, when I mount a dvd or cdrom, it would mount on linux not windows! What should I do to mount it on windows? (I installed xp in virtual machine via an image file, so, whenever windows is poped on, the windows xp cd-rom is mounted with that image file), is there any way to mount it from hard?

View 1 Replies View Related

CentOS 5 Hardware :: Unable To Mount Media CDROM

May 17, 2011

I get allways thus message when I try to access try to access my drive.

I have CentOs 5 and an HP Laptop. I use Oracle Virtualbox.

View 3 Replies View Related

CentOS 5 :: Installing Testing Repo Php And Mysql On PC No Internet/cdrom

Dec 6, 2009

I running Centos 5.3 on a computer with no internet access and no cdrom, i need to know how to keep it updated via USB stick. I have a 2 Gb USB stick, i am trying to update my centos machine and also update php and mysql with the testing repo packages. I am testing vBulletin 4 Publishing Suite and vBulletin 4 requirements are: PHP: 5.2.0 and MySQL:4.1.0 but Recommended: PHP: 5.2.6 or newer AND MySQL: 5.0.19 or newer.

currently running:

PHP 5.1.6 (cli) (built: Apr 7 2009 08:00:04)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

and

mysql Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (i686) using readline 5.1

edit:i am trying to follow this guide: [URL]since i have no internet access, i have downloaded all files to my USB stick.i added the testing repo manually.is there a way to instruct centos to update these packages from my usb stick ? since i have them on USB, i can upload them on centos.

View 2 Replies View Related

General :: Mounting CDROM With File And Directory Names In Uppercase?

Mar 25, 2011

We have an application that on a SCO box that we are converting to Linux.Basically it mount a CDROM drive and pulls data files off of it. We can mount the drive and it displays all the file/directory names in uppercase. Is there a way to do it in Linux?

View 2 Replies View Related

General :: Boot A Cdrom From A Mobile USB Cdrom (old Bios, Without Usb Boot)?

Aug 29, 2010

I have been trying plop floppy to boot a bootable cdrom from a mobile USB cdrom reader, but the usb cdrom are not recognized.I was thinking that with grub or grub2 or syslinux that would be possible, no ?

View 13 Replies View Related

General :: Copy Certain File Types Recursively While Maintaining File Structure On Destination?

Jun 14, 2011

I have just been bothered by a fairly small issue for some time now. I am trying to search (using find -name) for some .jpg files recursively. This is a Redhat environment with bash.

I get this job done though I need to copy ALL of them and put them in a separate folder BUT I also need to keep the order intact after copying.

For e.g - If I get a JPG file under /home/usr/new/1/ then the destination also needs to be /test/old/new/1/.

At the moment, I am simply putting all files under /test/old/ and I can't somehow get the later /new/1/ folder path created under /test/old/

I understand this could well be done using while OR if else loop, though if someone can just guide me with a hint, I would be really grateful.

I will complete the rest of the steps and was asking here since I am still not comfortable with the shell/bash scripts yet and planning to be really good at it over the next couple of months.

View 1 Replies View Related

Programming :: Script To Copy Paste Text From One File To Another (overwriting Part Of The File)?

Apr 19, 2011

I have a .txt-file with ~50.000 lines of numbers, generated by a mathematics program. From this file, I need line ~ 1.100 to line ~16.000 (these lines are always the same btw, this may make the solution easier, dunno) to be copy/pasted to another file, where the lines ~500 to ~15.000 (also, every time the same) should be overwritten by the aforementioned lines...I haven't found or come up with anything that works yet, mostly I find solutions to copy everything from one file to another but I can't find something to specifically overwrite a part of a file with part of another.

View 4 Replies View Related

Debian Configuration :: Can't Copy A File From SMB Share To The Local File System

Aug 17, 2015

There is this bug in the latest version of Ubuntu, which is also Jessie, which is:

Can't copy a file from SMB share to the local file system: Software caused connection abort

The problem, apparently, is that newer versions of Samba hit servers with multiple requests at the same time, and for some reason the Zyxel and Iomega boxes can't handle this. The best solution they've come up with is to modify the smb.conf file on your server to include this setting: "max mux = 1".

Here is the reference material on this bug: [URL] ....

People who develop samba have fixed it in the latest version but neither the ubuntu nor Debian have released the fixed version of nautilus, as of yet. Here, is the reference: [URL] ....

View 0 Replies View Related

General :: Copy File Whose Source Path Is Mentioned In File To Specified Destination

Jun 3, 2010

I had a situation in which the the path of the file to be copied is written in other file and I had to copy it using shell script..I can use cp $(cat /home/robert/location.txt) /media/sda1 on normal linux shell...But I am using buildroot script where $(cat /home/robert/location.txt) evaluate to nothing..is just blank..

View 1 Replies View Related

CentOS 5 Hardware :: Change CDROM Drive To DVD Drive?

Mar 31, 2009

I exchanged my CDROM drive for DVD drive. The DVD is recognized in the BIOS (will boot to DVD install disc) and in CentOS 5.2 (when I list the hardware), but CentOS must still think it's a CDROM drive. When I run VLC in a terminal it kicks back these errors code...

I think this means that "hdc" is linked to a CDROM configuration somewhere, but I don't know where to find it to change it (or out it). It also appears thee is no DVD module loading. (Of course, I could be making poor guesses.)

I thought there might be something in the fstab, but it doesn't appear there is anything there (for the CDROM or DVD drive)?

Is there somewhere else I should be looking? /dev/*** ?

View 4 Replies View Related

Ubuntu :: Copy The File Via SSH \ Save The File Via SSH To This Server?

Mar 22, 2011

Now i install the Ubuntu 10.4 64 bit on Sunfire X4170I want to save the file via SSH to this server.But i m not sure how to configure.

View 4 Replies View Related

Programming :: Copy One File Content To Multiple File

May 28, 2010

I wanted to copy one file to multiple new files. I have an idea to write a script and do the operation. But here i m looking for any particular command to do this operation.

View 1 Replies View Related

General :: When Copy File And Then Power Off / On Copied File Is Gone

Nov 16, 2010

I have an embedded linux system (Debian 'Lenny') which booting from a microSD flash. If I make a copy of a file on the flash file system (cp test test1) and then power off (disconnect power spontanious). Connects power again and the system come up, but the file test1 is gone. How can I secure that test1 is NOT disappear if the power get lost?If I copy file and then restart system with reboot command, the file test1 does not disappear.

View 7 Replies View Related

General :: Copy Some Text In One File And Paste It To Another File?

Sep 19, 2009

favor and let me know how can I copy some text in one file and paste it to another file ,when both of the files are being opened by vi text editor ?

View 7 Replies View Related

General :: Wrong File Permission / When Copy File

Oct 18, 2010

I have a C-function that create a file and then make a copy in the same directory, but somethin is wrong with permission or owners.The program starts as root user.The file creates by the program:

-rwxrwxrwx 1 root staff 199680 Oct 18 10:58 test

Ok, but after copying the permission is not the same.The file after copying (with new name) by the program:
-rw-r--r-- 1 root root 199680 Oct 18 10:58 test_copy

I want to have full permission of the copy, how to do??

View 2 Replies View Related

Ubuntu :: "Error Splicing File: File Too Large" - Copy To A 500G USB Drive?

Sep 10, 2010

I have seen this 3 times now - it's an updated Lucid with EXT4, trying to copy to a 500G USB drive?

View 3 Replies View Related

General :: Get Socket.h Header File / Copy Pasting This Header File In 'incl' Directory Allow To Use It In The Program?

Apr 22, 2011

where can i get socket.h header file? will copy pasting this header file in 'incl' directory allow me to use it in the my program?

View 1 Replies View Related

General :: Copy One File To Different File

Jan 18, 2011

I have a sample.log file which contains 100 lines. I need to copy last 50 lines from this file to a new text file. how can I do this.

View 4 Replies View Related

Ubuntu :: Nautilus Copy File/directory Path Should Not Put "file://" Prefix

Dec 27, 2010

I really missed the old Ubuntu file/dir. copying feature. When I copied in nautilus file explorer and paste into a terminal or text editor, I got the exact path (eg. /home/user/abc.txt), but when coming the Ubuntu 10.04, it added some "file://" prefix to the actual path (eg. file:///home/user/abc.txt), and I always had to manually delete the "file://" prefix. I don't see clearly that we need to place "file://" in front of the actual path (maybe just in the case we want to put the path in an Internet browser?). Wish this reversed back.

View 1 Replies View Related

General :: CentOS 5.4 - LVM Data Copy To Different Disk

Jan 26, 2010

I've got a CentOS 5.4 box and the following disks connected:
# parted /dev/sda print
Model: ATA WDC WD1600BEKT-0 (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 107MB 107MB primary ext3 boot
2 107MB 160GB 160GB primary lvm

# parted /dev/sdb print
Model: ATA WDC WD1200BEVT-0 (scsi)
Disk /dev/sdb: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 107MB 107MB primary ext3 boot
2 107MB 120GB 120GB primary ext3 lvm
the OS, data and programs are on /dev/sda.

I'd like to copy the full directories and files to the newly added /dev/sdb wich has, as you can see, less space. Also note that /dev/sda has only about 3.6Gigs uses, so it will no doubt easily go into /dev/sdb. How can I do the full copy, and yet make /dev/sdb bootable just like /dev/sda (just as if it was cloned by Ghost)? I've checked dd, but AFAIK, it needs that both source and target devices be the same in size.

View 1 Replies View Related

General :: Copy Files From One CentOS System To Another One?

Jul 12, 2011

copy files from one CentOS system to another one. The files are generated automatically at one server, and i want to copy them immediately to an other server.

View 9 Replies View Related

CentOS 5 :: Unable To Copy Files In Pendrive

Sep 22, 2009

I am using CentOS 5.3, kernal version is 2.6.18-164.el5 i cant copy things from my CentOS to any External pen drive. I tried from terminal also. but everytime the system is getting hanged leaving no option then to reboot.

View 11 Replies View Related







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