Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Slackware Linux Help > how to transfer data from one hda to another hda partition?

Forgot Password?
 Slackware Linux Help   For help and Discussion about Slackware linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-12-2009   #1 (permalink)
Just Joined!
 
Join Date: May 2009
Posts: 6
how to transfer data from one hda to another hda partition?

hi any expert,
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
naishi is offline  


Reply With Quote
Old 07-12-2009   #2 (permalink)
Just Joined!
 
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
vonbiber is offline   Reply With Quote
Old 07-12-2009   #3 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,081
Send a message via Yahoo to devils casper
Quote:
(1)how to do that?
(2)how to write my data directly when i run my program in the terminal?
Its very simple. Just mount hda3 partition and move data of hda1 to hda3.

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
Above code will mount hda3 partition at /media/hda3. chown command will give read/write access to Regular user for data transfer.
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
* Its small L in fdisk -l.
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 07-12-2009   #4 (permalink)
Just Joined!
 
Join Date: May 2009
Posts: 6
thanks

hi thanks so much!
naishi is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:57 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2