Results 1 to 4 of 4
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
07-12-2009 #1
- Join Date
- May 2009
- Posts
- 6
how to transfer data from one hda to another hda partition?
I have several partitions in a hard disk, say, hda1 and hda2 as well as hda3, and now I create a big amount of data in hda1, because there is more space in hda3 unused, so I hope to transfer my data file to hda3 from hda1,
(1)how to do that?
(2)how to write my data directly when i run my program in the terminal?
any help will be appreciated greatly?
Thanks!
Phil
-
07-12-2009 #2
- Join Date
- Apr 2009
- Posts
- 33
(1)
first you need to mount the target partition
say, you want to move/copy some files from your current mounted partition
to the partition /dev/hda3:
a. create a mount point if it doesn't already exist, mount /dev/hda3 to that
mount point:
mkdir -p /mnt/hda3; mount /dev/hda3 /mnt/hda3
b. if the commands above were successful
you can now copy/move the files from your current partition to
/mnt/hda3
(2) you do step a. and output to /mnt/hda3/wherever_subfolder_you_want
replace hda3 by whatever destination partition you want to use
When you are done, don't forget to unmount the partition:
umount /mnt/hda3
-
07-12-2009 #3(1)how to do that?
(2)how to write my data directly when i run my program in the terminal?
Let say, hda3 has ext3 filesystem :
Execute this in Terminal
Code:su - mkdir /media/hda3 mount -t ext3 /dev/hda3 /media/hda3 chown -R user_id:group_id /media/hda3
Execute id command as Regular User to confirm user_id and group_id.
If you have any confusion, post the output of fdisk -l command here.
Code:su - fdisk -l
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
-
07-12-2009 #4
- Join Date
- May 2009
- Posts
- 6
thanks
hi thanks so much!