PDA

View Full Version : [SOLVED] Permission denied while trying to open /dev/sda1



hihihi100
March 26th, 2010, 12:59 AM
Hello:

When, from the live cd I try to execute

e2fsck -y /dev/sda1

All i get is:


Permission denied while trying to open /dev/sda1
you must have r/w access to the filesystem or be root

To be root, as I have read, I must type, in a terminal:


sudo nautilus

or


gksa nautilus

both open a new window, but I still dont know how to open a terminal being "root user"

Help please

n0dix
March 26th, 2010, 01:01 AM
Open a simple terminal, gnome-terminal or xterm, and use
$ sudo, or you can do
$ su -

coffeecat
March 26th, 2010, 01:02 AM
Hello:

When, from the live cd I try to execute

e2fsck -y /dev/sda1


You need:


sudo e2fsck -y /dev/sda1

See:

https://help.ubuntu.com/community/RootSudo

pastalavista
March 26th, 2010, 01:04 AM
All you need to perform tasks as root is 'sudo'(or gksu for graphical programs) before the command
sudo e2fsck -y /dev/sda1