LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-19-2004, 12:51 AM   #1
tomamodi
Member
 
Registered: Jul 2003
Location: saudi arabia
Posts: 31

Rep: Reputation: 15
possibility of copy from other hdd


i have one hdd write protected can i copy its all files to other hdd and change its configuration without password
thanks for helping
 
Old 04-19-2004, 06:46 AM   #2
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
Well, I dont understand the second part of your question (password?) but for the first part do this:

cp -R -f /dev/hdXX/ /path_to_copy_to

where hdXX is the hard drive from which you want to copy, and /path_to_copy_to is the path on the new hard drive onto which you want to copy the files. The -R -f makes the copy recursive, which means it'll copy everything in every directory, and the -f forces it to copy regardless of permissions or errors, and it won't ask you to confirm each and every file.

As I said, I don't get the other part of the quesiotn regarding the password, could you elaborate?

Good luck...
 
Old 04-19-2004, 06:55 AM   #3
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
You copy from a mounted partition. There is no '/dev/hdxx' folder, that is the file for the device. You need to mount the device to access the files inside:
mkdir /mnt/write-protected-hd
mount /dev/hd[insert appropriate numbers/letters] /mnt/write-protected-hd
mkdir /mnt/destination
mount /dev/hd[insert ... for destination drive] /mnt/destination
cp -r /mnt/write-protected-drive/* /mnt/destination

If you don't have the password, you will need a bootdisk to do this.
 
Old 04-19-2004, 10:38 PM   #4
tomamodi
Member
 
Registered: Jul 2003
Location: saudi arabia
Posts: 31

Original Poster
Rep: Reputation: 15
dear the clearification of password
the hdd is containing squid cache and i forget the pasword its lan card is malfuntioning so iwant to change the lan card and confugrate it need root password which i forget it is long time so i want to extract the main to other hdd and configurate the lan so please again is it possible and what to do for
thanks for prev reply and thanks for next

Last edited by tomamodi; 04-19-2004 at 10:40 PM.
 
  


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
Can't copy to another hdd tct1501 Linux - General 2 02-10-2005 01:33 PM
backup copy of hdd nyk Linux - Software 2 01-11-2005 06:51 AM
how to copy partition table from 1 hdd to another? turbokid Fedora 4 12-10-2004 03:04 PM
DD Image File Copy To HDD klownska Linux - Software 2 04-12-2004 07:06 PM
how do i copy rehdhat 8.0 to my hdd predator Linux - General 1 01-12-2003 12:00 AM


All times are GMT -5. The time now is 05:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration