-
n00b needs help moving files
Sorry my first post is one asking for help.
Here is the situation:
I have a neighbor's HP PC which the system restore files are on a 5GB hidden partition (HDA1, NTFS).
I want to reinstall his OS (Win XP home) on the already formatted C:\ (HDA2) after I can recover the files from the hidden partition.
I have temporarily placed a 2nd hard drive in the machine to copy the 4GB of system restore files from HDA1 to HDB5 (the 2nd hard drive, FAT32).
I am running Knoppix Live from the CD.
I opened the console and typed su to logon as root.
Typed the following command to copy all files and folders from HDA1 to HDB5:
cp -R/mnt/hda1/* /mnt/hdb5/
this is what was returned to me:
cp: cannot create regular file '/mnt/hdb5/insert filename here' : Read-only file system
How can I change the permissions so that I can copy all the files from the hidden partition to the 2nd hard drive, WITHOUT destroying the files on the hidden partiton?
and
Is there a simple way to restore the permissions to original after the copy (if the permissions are changed)?
thank you for any help you can provide.
---------
Alan
-
Senior Member
registered user
Do you have the partitions mounted? Did you change hdb5 to read-write mode?
To mount hda1 (NTFS) - as root: mount -t ntfs -o ro /dev/hda1 /mnt/hda1
To mount hdb5 (FAT32) - as root: mount -t vfat -o rw /dev/hdb5 /mnt/hdb5
Or mount them and change hdb5 to read-write mode, using the desktop icons.
That's assuming Knoppix created a "/mnt/hdb5" folder when it detected your hardware - if not, you can use any of the unused folders in /mnt as a mountpoint (e.g. replace "/mnt/hdb5" with "/mnt/test").
Not sure what you mean about permissions.
-
Thank you, eco2geek
that worked!
-------
Alan
-
Senior Member
registered user
use to preserver mode, ownership and timestamp!
Similar Threads
-
By Girtych in forum MS Windows & New to Linux
Replies: 2
Last Post: 12-26-2004, 02:56 PM
-
By firebyrd10 in forum General Support
Replies: 1
Last Post: 05-28-2004, 01:09 AM
-
By liebrand in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 04-20-2004, 04:28 PM
-
By tha_raptest in forum General Support
Replies: 0
Last Post: 02-12-2004, 08:05 PM
-
By kleptophobiac in forum General Support
Replies: 1
Last Post: 08-06-2003, 03:36 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p
$499.88

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb
$374.99

Dell Poweredge C4130 2x LGA2011-3 1U 4x GPU Rackmount Server CTO (NO CPU/NO RAM)
$299.95

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD
$378.93

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W
$409.99

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD
$149.99

Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO
$488.00

Dell Poweredge R620 10x 2.5" bay with 256GB (16x16gb) DDR3, 2x E5-2690v2, H710
$349.99

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores | 32gb | HBA330 | 2x 1...
$324.99