LinuxQuestions.org
Register a domain and help support LQ
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-02-2009, 03:12 PM   #1
Neo@Matrix
LQ Newbie
 
Registered: Nov 2009
Location: Blackhole called Serbia
Distribution: Ubuntu 9.04 Jaunty on Asus Eee PC 4G surf
Posts: 16
Blog Entries: 1

Rep: Reputation: 0
Unhappy Error opening /dev/sdb:Permission denied


First post on this forum ,forgive me , I'm newbie to Linux .TY for taking time to read my question.
I am sick & tired of MS & seeking for substitute OS for me. The test machine is my Asus eee PC 4G Surf.
Installed Jaunty Ubuntu 9.04 from USB Flash drive.
Tried to format the SD card with Gnome format tool downloaded with add/remove Application.
After confirmation of formatting it returned this msg :
Error opening /dev/sdb:Permission denied

By accessing the SD card I can read the content, but not able to delete any of it. The card reader is internal.Most likely infected with conficker worm (the autorun.ini file).

Any help will be more than welcome.
 
Old 11-02-2009, 03:31 PM   #2
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by Neo@Matrix View Post
After confirmation of formatting it returned this msg :
Error opening /dev/sdb:Permission denied
Try doing it as the root user. BE CAREFUL FORMATTING THINGS AS A ROOT USER - THE PROGRAMS YOU USE WILL HAPPILY OVERWRITE /dev/sda IF YOU TELL THEM TO, SO MAKE SURE YOU CHECK BEFORE YOU CLICK THAT 'OK' BUTTON!

John G
 
Old 11-02-2009, 03:35 PM   #3
Neo@Matrix
LQ Newbie
 
Registered: Nov 2009
Location: Blackhole called Serbia
Distribution: Ubuntu 9.04 Jaunty on Asus Eee PC 4G surf
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by JohnGraham View Post
Try doing it as the root user. BE CAREFUL FORMATTING THINGS AS A ROOT USER - THE PROGRAMS YOU USE WILL HAPPILY OVERWRITE /dev/sda IF YOU TELL THEM TO, SO MAKE SURE YOU CHECK BEFORE YOU CLICK THAT 'OK' BUTTON!

John G
How can I do it as ROOT?
 
Old 11-02-2009, 03:51 PM   #4
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by Neo@Matrix View Post
How can I do it as ROOT?
Every *nix system, including Linux, has a user called the 'superuser' or the 'root' user, with username 'root' and a user id of 0. Basically, this user can do whatever they want, while other users can only do things that the root user lets them. One of the things root has to let you do is write to mountable devices, like the SD card you have.

What distribution are you using? You're normally asked for a root password when you installed your distro. Usually, you can open a terminal and type the command `su', and that will log you in as the root user and then all the commands you type in from there will be run as root. So, you type in `su', run the command for whatever formatting program you want, then type `exit' and you'll be back to your normal user status.

On Ubuntu, root isn't given a password by default, but the first user to have an account will be able to use the `sudo' command to run individual commands. So, instead of typing `program-name --argument' to run your program as a normal user, you'd type `sudo program-name --argument' to run your program as the root user, and then everything should be dandy.

Remember - the root user is able to overwrite any file, including important system files, without any warning whatsoever, so always be careful what you type and do as little work as possible as root.

For more info, look at the man pages for `su' and `sudo'.

John G
 
Old 11-02-2009, 04:39 PM   #5
Neo@Matrix
LQ Newbie
 
Registered: Nov 2009
Location: Blackhole called Serbia
Distribution: Ubuntu 9.04 Jaunty on Asus Eee PC 4G surf
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 0
What distribution are you using?

On Ubuntu, root isn't given a password by default, but the first user to have an account will be able to use the `sudo' command to run individual commands. So, instead of typing `program-name --argument' to run your program as a normal user, you'd type `sudo program-name --argument' to run your program as the root user, and then everything should be dandy.


As I wrote ,I use Ubuntu 9.04 ,
I tried the command :
sudo format/dev/sdb what is most likely not correct
But as I said , I have no experience with Linux at all
I know it is pretty much to ask , but if U could write the whole command line instead of `sudo program-name --argument'
it would make much easier for both of us. lol
I have no idea , what to write for program name or argument.
I know what should I do under windows , but I want to learn to use Linux.This is like homework for me .
Basically no one near me uses Linux at all .

When I read property tab on device , the filesystem type is MSDOS
The permission tab has info like: The permission of "NEW VOLUME"could not be determined.
ALSO only 967.5MB is the visible size of the 2Gb size of the card?!

TY very much on effort and Your time
 
Old 11-02-2009, 04:55 PM   #6
halborr
Member
 
Registered: Aug 2009
Posts: 112

Rep: Reputation: 18
You'll probably want to use fdisk as it is the standard (actually I think gparted is a frontend for fdisk), although it is a little cryptic (and scary!). cfdisk is the console front end for fdisk.

The man page of fdisk should tell you how to use it if you choose that ("man fdisk"), cfdisk and gparted are fairly self-explanatory. Just make SURE that you're formatting /dev/sdb and not /dev/sda.

You'll either have to run it as root or enable write permissions for your regular user (I believe if you mount it and then "cd" to /media or wherever it gets mounted to "ls -l" should give you the current permissions.)

(Kind of long winded but I think I answered your question in there somewhere...)
 
Old 11-02-2009, 05:27 PM   #7
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by Neo@Matrix View Post
As I wrote ,I use Ubuntu 9.04 ,
I tried the command :
sudo format/dev/sdb what is most likely not correct
But as I said , I have no experience with Linux at all
I know it is pretty much to ask , but if U could write the whole command line instead of `sudo program-name --argument'
it would make much easier for both of us. lol
I have no idea , what to write for program name or argument.
Oh - sorry, my bad, should read these things!

Yeah, the 'gparted' program is probably your best bet for a nice GUI, and is a front-end to several programs you might need to use.

I think gparted is installed by default in Ubuntu. From a terminal, try:

Code:
sudo gparted
If that doesn't work, you probably don't have gparted installed - type:

Code:
sudo apt-get install gparted
to install, then run the above again.

John G
 
Old 11-02-2009, 05:41 PM   #8
Neo@Matrix
LQ Newbie
 
Registered: Nov 2009
Location: Blackhole called Serbia
Distribution: Ubuntu 9.04 Jaunty on Asus Eee PC 4G surf
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by halborr View Post
You'll probably want to use fdisk as it is the standard (actually I think gparted is a frontend for fdisk), although it is a little cryptic (and scary!). cfdisk is the console front end for fdisk.

The man page of fdisk should tell you how to use it if you choose that ("man fdisk"), cfdisk and gparted are fairly self-explanatory. Just make SURE that you're formatting /dev/sdb and not /dev/sda.

(Kind of long winded but I think I answered your question in there somewhere...)

My goal is to: 1.make this drive usable.
2.to remove write protection.
3.format it to any extension usable with Linux
The SD card is useless this way.It is locked (write protected)
nothing important would be lost
In worst case I will reinstall Linux on AsusEee
 
Old 11-02-2009, 05:45 PM   #9
Neo@Matrix
LQ Newbie
 
Registered: Nov 2009
Location: Blackhole called Serbia
Distribution: Ubuntu 9.04 Jaunty on Asus Eee PC 4G surf
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by JohnGraham View Post
Oh - sorry, my bad, should read these things!

Yeah, the 'gparted' program is probably your best bet for a nice GUI, and is a front-end to several programs you might need to use.

I think gparted is installed by default in Ubuntu. From a terminal, try:

Code:
sudo gparted
If that doesn't work, you probably don't have gparted installed - type:

Code:
sudo apt-get install gparted
to install, then run the above again.

John G
Now we are talking LOL
This is what I was looking for ...
Right type of answer for the one like me , who is a
UR the man!!
TY very much
 
Old 11-02-2009, 05:53 PM   #10
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Hello Neo, welcome to LQ!

Looks like you guys are pretty much along the right track(s) here so far, so I am not going to start giving additional instructions and confusing the issue.
I want however, to suggest that you either *not* use those different colors in your posts, or use them more carefully -- as some of your posts above are terribly difficult to read, particularly where that light-green color is used.

Instead of the colors, consider using [u] for underline, [i] for italics, or [b] for bold when you want to emphasize something, and also using the
Code:
tags
and
Quote:
tags
when you wish to either put some console output or a chunk of code, or to quote what another member has written. This will make things much more readable . All of the bb-code tags are like this: [BLAH] in square brackets, and [/BLAH] with a slash in the closing tag; many of them have a clickable method of doing them when you use the 'Advanced" editor to edit your post, or see the B, I, and U buttons in the "Quick Reply" dialog at the bottom of the page.

Kind regards, and again, welcome to LQ! Best of success.

Sasha

Last edited by GrapefruiTgirl; 11-02-2009 at 05:56 PM.
 
Old 11-02-2009, 06:10 PM   #11
Neo@Matrix
LQ Newbie
 
Registered: Nov 2009
Location: Blackhole called Serbia
Distribution: Ubuntu 9.04 Jaunty on Asus Eee PC 4G surf
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Ok ,ThX I'll will use it more carefully (the colors)

I tried the gparted , and it looks like this :
http://img35.imageshack.us/img35/833...gparted.th.png

http://img35.imageshack.us/img35/833...sdbgparted.png

The drive is still not editable. :S
The boot flag can't be removed , not able to create new partition table .

Last edited by Neo@Matrix; 11-02-2009 at 06:11 PM.
 
Old 11-02-2009, 06:23 PM   #12
cantab
Member
 
Registered: Oct 2009
Location: England
Distribution: *buntu, Vector
Posts: 499

Rep: Reputation: 102Reputation: 102
Check the write protect tab physically on the SD card isn't set on.
 
Old 11-02-2009, 06:31 PM   #13
Neo@Matrix
LQ Newbie
 
Registered: Nov 2009
Location: Blackhole called Serbia
Distribution: Ubuntu 9.04 Jaunty on Asus Eee PC 4G surf
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Wether it is on or off , it is all the same :S.
I have tried in both position, makes no difference , but thx
 
Old 11-03-2009, 03:23 AM   #14
Neo@Matrix
LQ Newbie
 
Registered: Nov 2009
Location: Blackhole called Serbia
Distribution: Ubuntu 9.04 Jaunty on Asus Eee PC 4G surf
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Hmmm...Still unable to do anything with SD card...
Is there something else I can try?
Brutal force? Trash can?
 
Old 11-03-2009, 03:37 AM   #15
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by Neo@Matrix View Post
Wether it is on or off , it is all the same :S.
I have tried in both position, makes no difference , but thx
Sounds like it might be mounted read-only - post the output of the `mount' command when the SD card is in.

John G
 
  


Reply

Tags
gparted, protection, sd, unmounted, write


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound error (permission denied in /dev directory) davidas Debian 9 05-06-2009 12:29 PM
error: permission denied on key 'dev.parport.parport0.autoprobe' abhayani Linux - Newbie 0 04-27-2009 01:15 AM
Acrobat Reader "error opening document - permission denied" Robhogg Linux - Software 5 04-25-2008 08:44 AM
ln: creating symbolic link `/dev/dvd' to `/dev/hdc': Permission denied qazwsx27 Fedora 3 06-14-2005 02:09 PM
Error opening type hash map aliases.db : permission denied Tazzmanian Linux - Software 2 08-24-2004 11:56 AM


All times are GMT -5. The time now is 03:21 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration