News: This forum is now permanently frozen.
Pages: [1]
Topic: Permission Denied using Gunzip  (Read 8964 times)
« on: November 28, 2008, 00:03:20 »
hatrickwah *
Posts: 4

I'm in the process of upgrading my m0n0wall router with all new hardware.  The previous system had been running on a compact flash drive (actually 3 over the past 3 years), and now I'm attempting to go to a different flash drive,  from Transcend. http://www.transcendusa.com/products/ModDetail.asp?ModNo=26&LangNo=0

I have attempted to load m0n0wall on the drive a few times now, using Windows and Ubuntu.  In Windows, the physdiskwrite program doesn't even see the drive (which appears as a hard drive in Windows).  In Ubuntu, I run the gunzip command and get the following:

dd: opening `/dev/sdb': Permission denied

I've tried this command multiple ways, mounted and unmounted and I still have the same problem.  Anyone have any ideas on how to get Ubuntu to allow me to write to this drive?
« Reply #1 on: November 28, 2008, 04:46:29 »
hatrickwah *
Posts: 4

While the problem with Linux still exists.  I figured out why Windows didn't cooperate.  Having used XP the past 3 years to configure m0n0wall, I hadn't configured it using Vista.  All is up and running now. Still confused by Linux and it's issue, but at this point, I just don't really care.
« Reply #2 on: January 26, 2009, 23:50:54 »
zot *
Posts: 9

.........dd: opening `/dev/sdb': Permission denied......

You must be a root(sudo su....su root.........)
« Reply #3 on: February 13, 2009, 09:17:59 »
Nurionn *
Posts: 1

I get the same error, even using sudo. Is there another error in the following command?

Code:
sudo gunzip -c generic-pc-1.235.img | dd of=/dev/sdb bs=16k
« Reply #4 on: February 13, 2009, 15:31:14 »
westerman *
Posts: 6

Doesn't sudo only affect the first command?  I'd run it in a sub-shell by using quotes, e.g.,

Code:
sudo "gunzip -c generic-pc-1.235.img | dd of=/dev/sdb bs=16k"

Or perhaps better a double sudo

Code:
sudo gunzip -c generic-pc-1.235.img | sudo dd of=/dev/sdb bs=16k

Of course one could always just run as root but it is a practice to be discouraged.
« Last Edit: February 13, 2009, 17:20:57 by westerman »
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines