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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-12-2005, 04:30 PM
|
#1
|
LQ Newbie
Registered: Dec 2005
Posts: 3
Rep:
|
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
|
|
|
12-12-2005, 04:33 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
12-13-2005, 01:04 PM
|
#3
|
LQ Newbie
Registered: Dec 2005
Posts: 3
Original Poster
Rep:
|
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.
|
|
|
12-13-2005, 01:24 PM
|
#4
|
Member
Registered: Oct 2005
Distribution: FC3,Debian
Posts: 127
Rep:
|
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.
|
|
|
12-13-2005, 02:29 PM
|
#5
|
Member
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390
Rep:
|
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.
|
|
|
12-13-2005, 02:50 PM
|
#6
|
LQ Newbie
Registered: Dec 2005
Posts: 3
Original Poster
Rep:
|
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
|
|
|
12-13-2005, 03:00 PM
|
#7
|
Member
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390
Rep:
|
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.
|
|
|
12-14-2005, 05:50 AM
|
#8
|
Member
Registered: Oct 2005
Distribution: FC3,Debian
Posts: 127
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 09:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|