maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N800 (https://talk.maemo.org/forumdisplay.php?f=25)
-   -   permission denied (https://talk.maemo.org/showthread.php?t=35119)

johnathonbrown 2009-11-25 21:32

permission denied
 
I am trying to access /dev/mtd1 but it says permission denied. I don't really know anything about linux, so.... thanks in advance.

MrGrim 2009-11-25 21:40

Re: permission denied
 
Not sure what that is, but how, and more importantly why, do you want to access it?
Some files can only be accessed by root (and, yes, devices are special kinds of files)

fpbrooks 2009-11-25 21:40

Re: permission denied
 
it depends on why and how you are trying to access it. the access is set up as a device owned by root and only root has access to it

crw-rw---- 1 root root 90, 2 Dec 31 1969 /dev/mtd1

roundyz 2009-11-25 21:41

Re: permission denied
 
thats a device node, by the name looks like a memory device, do a file on it and see if its a block device or not

danramos 2009-11-25 21:45

Re: permission denied
 
Why are you trying to access the raw /dev/mtd1 device directly instead of wherever it's mounted?

x61 2009-11-25 21:57

Re: permission denied
 
What is the default root password?

Andre Klapper 2009-11-26 00:02

Re: permission denied
 
@johnathonbrown: Welcome to the forum. Can you please post the exact steps leading to your result?

@x61: Install "rootsh" from the Extras repository instead and enter "sudo gainroot".

johnathonbrown 2009-11-29 16:13

Re: permission denied
 
Thanks for the replies. I forgot to log on here for a while.

QUOTE=danramos;392447]Why are you trying to access the raw /dev/mtd1 device directly instead of wherever it's mounted?[/QUOTE]

I'm not really sure of any other way to access it, but I am trying to find my lock code. How would I access wherever it's mounted? Thanks in advance.

danramos 2009-12-02 19:28

Re: permission denied
 
Quote:

Originally Posted by johnathonbrown (Post 399253)
Thanks for the replies. I forgot to log on here for a while.

Quote:

Originally Posted by danramos (Post 392447)
Why are you trying to access the raw /dev/mtd1 device directly instead of wherever it's mounted?

I'm not really sure of any other way to access it, but I am trying to find my lock code. How would I access wherever it's mounted? Thanks in advance.

I seem to remember there was a lot of talk around this whole topic around here somewhere--you may want to use google (the talk.maemo.org search has always returned less than worthless results for me) to search for threads that talk about this. I'm reasonably certain that even in the unlikely even that you found out where the lock code was, it would probably be scrambled and not useful to you--but I don't know that for a fact. Google to see what turns up.

scaler 2009-12-06 20:15

Re: permission denied
 
Quote:

Originally Posted by johnathonbrown (Post 399253)
I am trying to find my lock code. How would I access wherever it's mounted?

As others have noted, you need to become root first: see Andre Klapper's post #7 above (the reply addressed to x61, not the one addressed to you). Then type the following in XTerm:

grep -A 13 lock_code /dev/mtd1 | tail -1


All times are GMT. The time now is 07:37.

vBulletin® Version 3.8.8