LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 04-07-2006, 05:00 PM   #1
speedfreq
LQ Newbie
 
Registered: Apr 2006
Distribution: FC4, Knoppix
Posts: 3

Rep: Reputation: 0
DD copy reports permission denied error


I am trying to do a bit for bit copy of one HDD to another same size HDD. The command I am using is dd if=/dev/hda of=/dev/hdb conv=notrunc,noerror which I found in these forums somewhere. The problem is that I get a "dd: opening '/dev/hda': Permission denied" error. Both the drives show up on the desktop however I cannot mount the HDA and subsequent partitions. The HDB is mountable. I believe the HDA is using PSOS. This drive comes out of a unit called a Compaq MC-1 and I want a backup so that I can restore it if it dies. Any help would be appreciated.
 
Old 04-08-2006, 12:01 AM   #2
aus9
Senior Member
 
Registered: Oct 2003
Location: Australia
Posts: 4,258

Rep: Reputation: Disabled
1 are you running dd command after doing a su or sudo command to bypass any permission issues?
eg su
dd commands or
sudo dd commmands
2 what is is your distro?
3 this is one of the best dd posts you will may wish to read
http://www.linuxquestions.org/questi...d.php?t=362506

by AwesomeMachine
 
Old 04-08-2006, 02:36 PM   #3
speedfreq
LQ Newbie
 
Registered: Apr 2006
Distribution: FC4, Knoppix
Posts: 3

Original Poster
Rep: Reputation: 0
No I am a total noob to unix and it's related commands. What is the su or sudo command and what is the proper syntax? I looked through the DD thread and it looks like everything I might ever want to know about DD but I didn't see a reference to the two commands you mentioned. I am using Knoppix because it recognizes both the drives. When I booted FC4 I ran into all sorts of errors and it only saw the secondary drive that I want to copy to, not the source drive.
 
Old 04-08-2006, 03:03 PM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 46
Quote:
Originally Posted by speedfreq
No I am a total noob to unix and it's related commands. What is the su or sudo command and what is the proper syntax? I looked through the DD thread and it looks like everything I might ever want to know about DD but I didn't see a reference to the two commands you mentioned. I am using Knoppix because it recognizes both the drives. When I booted FC4 I ran into all sorts of errors and it only saw the secondary drive that I want to copy to, not the source drive.
You need to be root to access drives. So you need to log in as root (with su) or run commands as root (with sudo, if it's set up) somehow.
 
Old 04-09-2006, 12:55 AM   #5
speedfreq
LQ Newbie
 
Registered: Apr 2006
Distribution: FC4, Knoppix
Posts: 3

Original Poster
Rep: Reputation: 0
Nice, the sudo command worked out perfectly. I took quite a while to make the copy but that was expected. You guys are the best. Thanks for all the help.
 
Old 09-23-2009, 01:28 PM   #6
Logomachist
LQ Newbie
 
Registered: Aug 2009
Posts: 20

Rep: Reputation: 0
Question I need to restore a drive image (spanned across several files) onto a NEW partition

I'm trying to do a similar thing, but I need to restore a drive image (spanned across several files) onto a NEW partition. I'm told "cat x* | dd of=/dev/sda3" should work, but I get the permission denied error.

Do I have create the permission first before I use dd on it? If so how do I know what size partition to create?
 
Old 09-23-2009, 06:30 PM   #7
aus9
Senior Member
 
Registered: Oct 2003
Location: Australia
Posts: 4,258

Rep: Reputation: Disabled
Logomachist

assuming you have not used some kind of drive image software...if so name it pls?

try moving those files onto one partition and then try

Code:
su
cat x* > bigfilename
dd if=bigfilename of=/dev/sda3
this is a longer way of doing it but might show up any errors in my thinking....I have not tested this technique
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java n fc3, error permission denied AVD_ZM Linux - Software 1 05-23-2005 03:46 AM
Samba error: Permission denied dmkang Linux - Software 6 04-01-2005 08:29 AM
sasldb Permission denied error shino Linux - Networking 0 01-15-2004 03:55 PM
permission denied error endezeichen Linux - General 5 12-20-2003 06:59 PM
FSTAB / Permission Denied Error clearh20 Linux - Newbie 5 06-10-2003 12:43 AM


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

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
Open Source Consulting | Domain Registration