Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 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
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.
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.
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.
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.