LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-12-2005, 04:30 PM   #1
poordoggie
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
Why can't copy to hard drive?


I am using Slax Linux which runs from booting a CD. I want to copy a file (winsrv.dll) from a CD to my HDD, which is connected and the linux picks it up. Now I can also download the winsrv.dll file off the internet if the CD version is too tricky.

It always comes up with the error that it cannot overwrite the file that is already there because of the permissions. Can I not overwrite this file? Is there any way to grant permissions?

Thanks
Tom
 
Old 12-12-2005, 04:33 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well naturally you need to be copying the file to somewhere you have permissions, e.g. your own home directory. note that only the root user can copy to somewhere like /usr/local/lib/ or similar.
 
Old 12-13-2005, 01:04 PM   #3
poordoggie
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry I did not explain it correctly.

I am currently running Slax Live CD - my hard drive has a windows xp installation. Now, I don't have an XP disk, so I need to copy a file using linux, but it says I don't have the correct permissions!

Is there any way to grant permissions? I only want to copy to my System32 folder of windows.
 
Old 12-13-2005, 01:24 PM   #4
hiren_bhatt
Member
 
Registered: Oct 2005
Distribution: FC3,Debian
Posts: 127

Rep: Reputation: 15
Ok when you start Live CD, then issue "su root" this will let you in to the root.
Most of the time Live CD do not have any password for root.
Then afte you will be able to copy yours file.

Try another Live CD also like Kanotix or Knoppix.
Well I dont think there is a chance of filesystem being mounted read only, so try the above thing.
 
Old 12-13-2005, 02:29 PM   #5
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Rep: Reputation: 30
You have to mount the partition with write access. If it is an NTFS partition, you have to make sure that the NTFS write is turned on in the kernel. I'm not sure about Slax, as I'm not familiar with it, but I know if I boot using knoppix, when it mounts NTFS partitions, it mounts them as read only. Actually, I think it mounts them all as read only.
 
Old 12-13-2005, 02:50 PM   #6
poordoggie
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by purelithium
You have to mount the partition with write access. If it is an NTFS partition, you have to make sure that the NTFS write is turned on in the kernel. I'm not sure about Slax, as I'm not familiar with it, but I know if I boot using knoppix, when it mounts NTFS partitions, it mounts them as read only. Actually, I think it mounts them all as read only.
If I use knoppix, how would I mount/remount it as writeable? Thanks, Tom
 
Old 12-13-2005, 03:00 PM   #7
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Rep: Reputation: 30
make sure you include the rw option in the command eg:

mount -t ntfs -o rw /dev/hda1 /mnt/windows

I think that's how it goes.
 
Old 12-14-2005, 05:50 AM   #8
hiren_bhatt
Member
 
Registered: Oct 2005
Distribution: FC3,Debian
Posts: 127

Rep: Reputation: 15
Here is the tested thing on Knoppix 3.6

When you start Knoppix, on desktop it will show you the icons of drives on left side, do now open a drive from there, this will mount a drive as read only, instead do the following.

Start your Knoppix Live CD, open knosole, in that say "su root", it doesnt requires any password for that. Now soppose you want to mount your c: drive which me be containing your windows system then say some thing like "mount /dev/hda1 /mnt/hda1" (may differ on your computer). If it is ntfs file system you might need to specify the type by -t ntfs.
It if fine if you do not specify the same in case of vfat. Also It is fine if you do not specify the -rw option that is because it is the default parameter.

Go to /mnt/hda1 and do what ever you want, copy, past or delete...
Also this change is permenent.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
change, copy a hard drive chil326 Linux - Hardware 1 09-04-2005 10:47 AM
Easiest way to copy a boot drive to a new hard drive lsgko Linux - Software 3 05-24-2005 09:38 PM
How to copy ext2fs from failed hard drive to good drive? DogWalker Linux - Hardware 2 08-30-2004 10:52 PM
Copy a Hard Drive rjneeley Linux - Software 3 06-11-2004 07:58 AM
STUCK--Trying to copy old Hard Drive to new Hard Drive. Please Help tsw Linux - Newbie 8 05-26-2004 02:47 AM

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

All times are GMT -5. The time now is 09:56 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