LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-03-2015, 10:12 PM   #1
Dystu
LQ Newbie
 
Registered: Jan 2015
Posts: 3

Rep: Reputation: Disabled
how to copy files from red hat linux to external hard drive


how to copy files from red hat linux to external hard drive.
whether hard drive is ntfs or fat. give all way to copy files.
and also using su command with step by step meaning.
 
Old 01-03-2015, 10:43 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 3,879
Blog Entries: 1

Rep: Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998
Quote:
Originally Posted by Dystu View Post
how to copy files from red hat linux to external hard drive.
whether hard drive is ntfs or fat. give all way to copy files.
and also using su command with step by step meaning.
Is this homework, maybe?

First, it is not practical to ask for "all way"s to copy files from a source to a destination - there are very many!

The basic copy command for any GNU/Linux would be cp. The basic syntax is:

Code:
cp source [sourceN] destination
... where source would be the source file(s) and destination would be where you want to copy to, the mount point of the external hard drive in your case.

For more options see man cp.

For mounting your hard drive see man mount.

The su command is something else entirely - see man su, of course. Whether you need to use su or not would depend on your system configuration, ownership and permissions of source and destination files and paths.

And it is always best to say "please" when asking strangers for directions!

Welcome to LQ!

Last edited by astrogeek; 01-03-2015 at 10:44 PM.
 
Old 01-03-2015, 10:49 PM   #3
Dystu
LQ Newbie
 
Registered: Jan 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
mount hard drive

Please,
It means, i have to mount hard drive at first, then i can use cp command

Last edited by Dystu; 01-03-2015 at 10:52 PM.
 
Old 01-03-2015, 10:53 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 3,879
Blog Entries: 1

Rep: Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998
Yes, the external drive must be mounted before you can access it.

Some systems may automatically mount it (for USB drives especially), some may require it to be manually mounted, possibly by root user.
 
Old 01-03-2015, 10:57 PM   #5
Dystu
LQ Newbie
 
Registered: Jan 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Sir,
Could you please, say me.
How to mount best way, if my hard drive has single partition.
Should I make more than one partion before mounting.
 
Old 01-03-2015, 11:13 PM   #6
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 3,879
Blog Entries: 1

Rep: Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998
You should make as many partitions as are required by your own use, there is no "best" way. Each partition on a drive must be mounted individually.

The basic syntax applicable to your case I think (from man mount):

Code:
mount [-fnrsvw] [-t vfstype] [-o options] device dir
... where device is your external drive device node and dir is the mount point.

If you need more specific help it would be best to provide your version of Red Hat and some more info on the drive. The output of lsblk -f, cfdisk /device/path, etc.

I am not a Red Hat user so will not be able to give you much more specific help myself, others here might.

Also, Red Hat is a non-free Linux, so if you have a support subscription it might be easiest to simply ask their support or visit the knowledge base.
 
Old 01-04-2015, 04:10 AM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
you might want to start with
" The Basics "

the terminal
-- a bit old , but is still accurate
http://www.tldp.org/LDP/Bash-Beginners-Guide/html/

the EXACT commands on redhat will depend ON THE VERSION
the current " VERY NEW " is RHEL 7.0
and THAT will mount drives VERY differently than the current stable RHEL 6.6

and the old RHEL 5.12 can use DIFFERENT settings for mounting ide / sata drives


so
what you are using makes a big difference

and as above RHEL 7 is NOT free ,nor is 6.6 or 5.12
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to Copy Files To External Hard Drive rvijay Linux - General 17 07-18-2009 11:42 AM
How to install Red hat linux on External hard drive ? meharkoduri Linux - Newbie 2 02-05-2009 06:48 PM
How to install Red hat linux on External hard drive ? meharkoduri Linux - General 1 02-05-2009 03:07 PM


All times are GMT -5. The time now is 07:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration