LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-12-2010, 09:38 PM   #1
dmonking
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Rep: Reputation: 0
How to Move a Folder From one Partition to Another


Hello, I searched Google for this answer, but I'm a the noobiest of them all,and don't understand the concept of mounting.


Anyways, I recently got into the whole HTPC scene, and picked up an Acer Revo for my self, with a media center OS (XBMC) that was apparently modded from Ubuntu. Keep in mind that I can only use the terminal for any of this, as the GUI is just for video settings, etc.

So, XBMC just totally crashed on me, and the GUI stopped working. The files were still there, I just couldn't watch them. After many hours of tinkering, I decided to just reinstall XBMC, but make two partitions, and then move my movies and stuff to the new, working partition, and afterwards, delete the old, non working one.


I just don't know how to move from one partition to another.

So, can someone explain, in absolute layman terms, how to move my "Movies" folder from my first partition, to the New one?

Thanks in advance
 
Old 03-12-2010, 09:51 PM   #2
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
Is the new partition mounted?
If not, or you don't know, post the output of (as root)
Code:
fdisk -l
 
Old 03-12-2010, 10:14 PM   #3
dmonking
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Alrighty, thanks for the reply

The output for fdisk -l is

Code:
Disk /dev/sda: 500.1 GB 500107862016 bytes 

(I assume this is unimportant but tell if it is)
...
...
...
...

Device      Boot     Start       End   Blocks         Id      System      
/dev/sda1   *          1        24413   196097391      83   Linux
/dev/sda2              24414    60801   292286610      5    Extended
/dev/sda5              59673    60801   9068661        82   Linux swap /Solaris
/dev/sda6              24414    58543   274149162      83   Linux
/dev/sda7              58544    59672   9068661        82   Linux swap/ Solaris


Partition table not in disk order
 
Old 03-12-2010, 11:00 PM   #4
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
Post the entire contents of fdisk -l as it will show the partition table of all disk that are mounted on your machine.
 
Old 03-12-2010, 11:38 PM   #5
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
Just wondering why do you have two swap partitions? You don't need two swap partitions even if you are dual booting.

If you are wanting to move files from one partition to another, lets say you booted to your primary os located on /dev/sda1 and you would like to move file from that to your other partition located on /dev/sda6 you need to mount that partition. Open a terminal login as root on your main os or prefix the command with sudo then make a mount point call it what you want. In this example I used name-of-dir then mount the partition. Depending on what os you are using the new mounted drive should show up on your desktop as a icon. When done moving files un mount the drive with the umount command.

Code:
:# mkdir /mnt/name-of-dir

:# mount /dev/sda6 /mnt/name-of-dir
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to automatically move files from one folder into another folder? xmrkite Linux - Software 6 11-05-2006 11:39 AM
Is it possible to move a folder to a new partition mazebane Slackware 3 06-27-2006 05:27 PM
i move my /etc folder in my /home folder Casanogab Linux - Newbie 8 03-31-2006 02:21 PM
move folder to new partition blizunt7 Fedora 11 10-13-2005 08:16 AM


All times are GMT -5. The time now is 05:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration