LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-03-2006, 12:45 PM   #1
PeO
Member
 
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 60

Rep: Reputation: 15
Unhappy Problems when I need to change harddisk


Im running Slack 10.0 as a server... ASUS P5P800, Pentium4 3.0, 1280Mb
S.M.A.R.T told me my harddisk was bad!

I bought a new one... installed Slack 10.2 and made a large home-part using Reiserfs.


Copying all my pichtures and other stuff it hangs (freezing and kernal panic) all the time...
I have to copy a couple of files a time then i works better...
I made a dir 2006-03 and copied some files there and it froze...
When I restart it ls tells the dir exist... ls -al not.
Trying to cp the dir, remove it ore create it again it tells me i have no access!!!
What shall I do... ???
How do I find out why Slack is hanging??

root@chilie:/home/burn/mina_bilder# ls -al
ls: 2006-03: Permission denied
total 234
drwxr-xr-x 12 root root 448 2006-10-03 19:02 .
drwxr-xr-x 3 root root 80 2006-10-03 16:12 ..
drwxr-xr-x 2 root root 304 2006-10-03 16:13 031204
drwxr-xr-x 16 root root 1824 2006-10-03 16:36 2003-12-dec
drwxr-xr-x 8 root root 192 2006-10-03 16:39 2004-01
drwxr-xr-x 4 root root 1664 2006-10-03 17:43 2004-01-jan
drwxr-xr-x 2 root root 144 2006-10-03 17:46 2004-12-dec
drwxr-xr-x 2 root root 11216 2006-10-03 19:01 2006-04-apr
drwxr-xr-x 2 root root 6736 2006-10-03 18:39 2006-05-maj
drwxr-xr-x 2 root root 184 2006-10-03 17:48 Manzanitha
drwxr-xr-x 2 root root 1016 2006-10-03 17:49 julbildspel
-r-xr-xr-x 1 root root 12770 2006-10-03 17:50 jultub18a.jpg
-r-xr-xr-x 1 root root 99663 2006-10-03 17:50 micael.gif
-r-xr-xr-x 1 root root 93971 2006-10-03 17:50 renchilie kopia.jpg
root@chilie:/home/burn/mina_bilder# ls
031204 2004-01-jan 2006-04-apr julbildspel renchilie kopia.jpg
2003-12-dec 2004-12-dec 2006-05-maj jultub18a.jpg
2004-01 2006-03 Manzanitha micael.gif
root@chilie:/home/burn/mina_bilder# cd 2006-03
bash: cd: 2006-03: Permission denied
root@chilie:/home/burn/mina_bilder#
 
Old 10-03-2006, 04:03 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
root@chilie:/home/burn/mina_bilder# ls -al
ls: 2006-03: Permission denied

That sounds like a permissions issue. Permissions on folders must be read - write - execute in order to have access to the folder, read the contents, and write to the folder. If the execute bit isn't set, even root user will be denied permission to enter the folder.

If root made the folder, then the permissions probably will not allow user to enter, read, or write.

Verify the permissions on the folder. If you want root as the owner, but users may view the contents, then root must have rwx permissions; users must have r-x permissions (if user should be allowed to also write, add the w permission).

chown root:users /path/to/folder
or, chown -R root:users /path/to/folder if there are sub-folders.

Then, chmod u+rwx /path/to/folder as root owner.
chmod g+rx /path/to/folder for members of the users group. If users should be able to write to the folder, chmod g+rwx /path/to/folder.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the char-set when mounting local harddisk benben_shen Linux - Software 0 03-12-2006 08:39 AM
Linux harddisk converted from master to slave. What files to change? jagot Linux - Hardware 6 03-05-2006 11:59 AM
Change former Linux master harddisk to slave thort Linux - Newbie 4 02-28-2006 04:42 PM
Low Harddisk space. Can I just transfer the entire Linux to a bigger harddisk? davidas Linux - Newbie 12 04-13-2004 02:03 AM
Harddisk problems >32GB bruno Linux - Hardware 3 08-20-2002 02:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:40 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration