LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 11-24-2013, 09:36 AM   #16
Tech7
Member
 
Registered: Oct 2013
Location: Maine
Distribution: BT 5
Posts: 68

Rep: Reputation: Disabled

I think the thread is a 'lil off topic. Sudo or root or not, I am curious if you have had success with the permission issues, dd and the drive. Have you tried chown on the actual device in the /dev/ directory? Example: $chown user:user /dev/sdb1 and have you checked the permissions on the device? You need to make sure you have ownership, permissions and write abilities to the drive, and the mounted directory.

Last edited by Tech7; 11-24-2013 at 09:39 AM.
 
Old 11-24-2013, 03:30 PM   #17
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Original Poster
Rep: Reputation: 70
Talking

Quote:
Originally Posted by Tech7 View Post
I think the thread is a 'lil off topic. Sudo or root or not, I am curious if you have had success with the permission issues, dd and the drive. Have you tried chown on the actual device in the /dev/ directory? Example: $chown user:user /dev/sdb1 and have you checked the permissions on the device? You need to make sure you have ownership, permissions and write abilities to the drive, and the mounted directory.
I'm sorry but your curiosity is going to have to go unsatisfied. I just don't have the time at present to experiment with things; I lost a lot of time trying to overcome Ubuntu's constant objections. I did the job with Puppy with no dramas in about 5 minutes flat so great job, Barry, should you be reading this! :-D
 
Old 11-25-2013, 05:35 PM   #18
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Well, the last error message in you exposition is simply because you used media instead of /media. But that doesn't address the problem you had unziping the compressed image file.

You used gunzip -c /dev/sdc6/pi_raspbian_timelock_entire_image_latest.gz, but I think you probably needed the -k option so gzip wouldn't delete the .gz file (which it would, of course, do by default). Um, noting that, does your pi_raspbian_timelock_entire_image_latest.gz file still exist on your backup drive? If not, that would explain the "not a directory" error message.

By the way, when you created the pi_raspbian_timelock_entire_image_latest.gz did you do it by a dd -of=pi_raspbian_timelock_entire_image_latest -if=/dev/... bs=4096 followed by a gzip pi_raspbian_timelock_entire_image_latest? If you did almost anything else, you don't have a drive image file in pi_raspbian_timelock_entire_image_latest.gz.
 
Old 11-25-2013, 05:47 PM   #19
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Original Poster
Rep: Reputation: 70
Quote:
Originally Posted by PTrenholme View Post
Well, the last error message in you exposition is simply because you used media instead of /media. But that doesn't address the problem you had unziping the compressed image file.
Well spotted, sir!

Quote:
You used gunzip -c /dev/sdc6/pi_raspbian_timelock_entire_image_latest.gz, but I think you probably needed the -k option so gzip wouldn't delete the .gz file (which it would, of course, do by default). Um, noting that, does your pi_raspbian_timelock_entire_image_latest.gz file still exist on your backup drive? If not, that would explain the "not a directory" error message.
I wasn't aware of that. But despite several re-images now and no use of the -k option, the image file hasn't gone anywhere. Thankfully!

Quote:
By the way, when you created the pi_raspbian_timelock_entire_image_latest.gz did you do it by a dd -of=pi_raspbian_timelock_entire_image_latest -if=/dev/... bs=4096 followed by a gzip pi_raspbian_timelock_entire_image_latest? If you did almost anything else, you don't have a drive image file in pi_raspbian_timelock_entire_image_latest.gz.
Yes, dd output piped to gzip in one operation.
 
Old 11-25-2013, 11:45 PM   #20
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Well, can you do a gunzip -ck /dev/sdc6/pi_raspbian_timelock_entire_image_latest.gz | cat > pi_raspbian_timelock_entire_image_latest.img to recreate the image on you hard drive?

Oh, before that can you do a ls /dev/sdc6/*.gx to see if that syntax is correct. Normally, to read from a device, the device must be mounted. It's only when dd is outputting a device image that the actual device name is used.
 
Old 11-26-2013, 03:32 AM   #21
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Original Poster
Rep: Reputation: 70
Quote:
Originally Posted by PTrenholme View Post
Well, can you do a gunzip -ck /dev/sdc6/pi_raspbian_timelock_entire_image_latest.gz | cat > pi_raspbian_timelock_entire_image_latest.img to recreate the image on you hard drive?

Oh, before that can you do a ls /dev/sdc6/*.gx to see if that syntax is correct. Normally, to read from a device, the device must be mounted. It's only when dd is outputting a device image that the actual device name is used.
I refer you to the answer I gave in post #17...
 
Old 11-26-2013, 09:45 PM   #22
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Rep: Reputation: 265Reputation: 265Reputation: 265
A little off topic, I have a word about the "sudo" and "su" commands. From my experience, I never could run the "su" command directly. Instead, I would have to do
Code:
sudo su
to get to be the root.

Hope you find this useful!
 
Old 11-27-2013, 05:30 PM   #23
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Original Poster
Rep: Reputation: 70
Quote:
Originally Posted by maples View Post
A little off topic, I have a word about the "sudo" and "su" commands. From my experience, I never could run the "su" command directly. Instead, I would have to do
Code:
sudo su
to get to be the root.

Hope you find this useful!
Here's something very much more useful:

Code:
root@slax #
No messin' about.
 
  


Reply



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
[SOLVED] error Permission denied areza Linux - Software 2 08-02-2013 01:00 AM
mkdir throws Permission Denied error in a directoy even with root ownership and 777 permission surajchalukya Linux - Security 14 09-03-2012 08:34 AM
Permission Denied Error? your_shadow03 Linux - Newbie 5 12-10-2009 01:38 PM
permission denied error mjalalynia Linux - Desktop 2 07-26-2008 01:28 AM
permission denied error endezeichen Linux - General 5 12-20-2003 06:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:55 PM.

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