LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-01-2005, 09:44 AM   #1
valkur
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Rep: Reputation: 0
Unhappy Operation not permitted when using mkdir


Okay, I am using INSERT off of the Ultimate Boot CD.

My goal is to try and copy all of the contents of my hard drive to an external USB hard drive.

At first when I clicked the button to mount the two drives it would mount them as read-only, so I couldn't copy anything.

Now I use the console and mount them myself with the mount command. Now they are mounted read-write.

But now when I try and copy it tells me

cp: cannon create directory 'sda1/hda1' : Operation not permitted.

So my question is how do I get the apporpriate privileges to perform the requested operation?

BACKGROUND:

The NTFS structure on my hard drive is corrupted and hence I am unable to boot windows or even use the XP CD's recovery console or repair install. What I am hoping to do is copy all of my important files to my external using INSERT and then just reformat and start all over with my main hard drive.

ALTERNATIVE:

I also have this program called Partition image which will copy an entire partition. But since my original partition is corrupted, if i tried to image it onto my external, wont the partition created on the external also be corrupted?

Thank you so much for any advice, this problem has been plaguing me for over two weeks
 
Old 04-01-2005, 09:59 AM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
Quote:
cp: cannon create directory 'sda1/hda1' : Operation not permitted.
You need write access to the directory where you are going to create the directory. If you have mounted the device on a directory with path /home/user/somepath/backup then the command would be
mkdir /home/user/somepath/backup/newdir or something like that. Have you verified a successful mount? Give the mount command with no arguments. Do ls -l fullpath to see the permissions for the directory where you are going to create the directory. To change permissions user chmod. To change ownership, user chown. See man chmod or chown
 
Old 04-01-2005, 10:28 AM   #3
valkur
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Okay it is mounted properly as this is returned when only mount is entered without arguments

/dev/hda1 on /mnt/hd1 type ntfs (rw)
/dev/sda1 on /mnt/sda1 type ntfs (rw)

Then when I do ls -l /mnt I get this


drwx------ 1 root root 4096 Apr 1 8:25 sda1

Checking another website I tried the following command

chmod a=rwx sda1

Now doing ls -l /mnt I get this

drwxrwxrwx 1 root root 4096 Apr 1 8:25 sda1

But now trying mkdir I still get Operation not permitted

Now what?

Last edited by valkur; 04-01-2005 at 10:51 AM.
 
Old 04-01-2005, 12:57 PM   #4
valkur
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Original Poster
Rep: Reputation: 0
UPDATE

I think the reason why I am not permitted to make new directories or add files to my external is because of something in CMOS.

I disconnected my old hard drive and only left in my external, booted up with the XP CD and tried to install windows on the external but it said that it did not have access to it and that it might be possible to change a setting in CMOS to allow access.

This is strange though because before all of this my external was FAT32 and I was able to copy files and directories to it although not all of them because FAT32 is not entirely compatible with NTFS. How come after formatting to NTFS I was unable to make any changes to it anymore?

Is there really a setting somewhere in CMOS that I could change to rectify this? I am using Phoenix AwardBIOS on the Nvidia nForce Motherboard.

All help and advice is very much appreciated
 
Old 04-01-2005, 06:25 PM   #5
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
Talking

I suspect your problem may be NTFS. Some/most Linux distros do not write NTFS well. See
this link . You can trick that other OS to do the writing. Store the files in a more Linux friendly file system such as jfs, and serve them back to that other OS via samba or apache or even writing to a CD or DVD. If you need to manually copy them back, you may pack them into a zip archive to let unzip or winzip to put them back. Of course, if you are converting to Linux, life will be easier. No need to use NTFS ever again.
 
  


Reply


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
Operation not permitted jakkals Linux - General 3 09-26-2005 07:30 PM
su - operation not permitted jrtayloriv Linux - Newbie 2 06-09-2005 09:27 PM
operation not permitted jamaso Slackware 2 05-08-2004 05:55 AM
Operation not Permitted as root? Godboo Linux - Newbie 4 02-17-2004 08:42 AM
Operation not permitted FrozenShadow23 Linux - Newbie 6 10-05-2003 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:48 PM.

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