LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-20-2004, 03:09 PM   #1
furryspider
Member
 
Registered: Feb 2004
Location: by the Bavarian Sea
Distribution: Devuan 3 Beowulf
Posts: 74

Rep: Reputation: 18
moving system betw. harddisks - cp says not enough space


I have a weird feeling this is going to be a total newbie question... =(

Situation:
=======
I've acquired a new 120 GB Harddisk. Onto that I intend to throw all my "non-system" data, whilst one of my older 40 GB HDDs should hold the system (root, home, usr and swap on primary partitions). To that end I want to first copy the current system contents (using the 120 GB as buffer), repartition the 40 GB to my changed needs and then copy the system contents back. This was reported to work, so I don't think there's a problem in principle.

Alas, the problem:
=============
On the 120 GB HDD, I have created (among others) a 10 GB ext2 partition to serve as a buffer for my root contents, and a 20 GB ext2 partition for my home contents. I did so using the following command:
Code:
mkfs.ext2 -c -T largefile -v /dev/hda2
(respectively hda3)
That space should suffice easily: my root (still including usr at this point) is currently about 4 GB, and my /home is about 5 GB.
Now I try to copy the data like this (example for root partition):
Code:
cp -axv / /mnt/hda3
It starts fine, but after a while I recognise among all the cp-output a message indicating that there is no more free space on the destination drive (don't know the correct syntax of the message in English, my system runs in German). However, there definately IS plenty of space left.

Question:
=======
What's happening there?
Is this an inode problem?
Any remedies?

Thanks in advance!
- furrySpider -

---
Just an addition:
I'm running Slackware 10, the new Harddrive is a Samsung Spinpoint, and there are no journals in the concerned file systems. And, it copied a FAT32 partition nicely.

Last edited by furryspider; 11-20-2004 at 03:13 PM.
 
Old 11-21-2004, 04:51 AM   #2
furryspider
Member
 
Registered: Feb 2004
Location: by the Bavarian Sea
Distribution: Devuan 3 Beowulf
Posts: 74

Original Poster
Rep: Reputation: 18
Alright, found my mistake.

On a different forum I was advised to try the command df -i, which will reveal the number of inodes for the partitions.
I still won't claim to fully understand the inode issues (something I have to change in the future), but obviously they dictate the possible number of files a partition may hold. And a difference of a couple million inodes between target and destination partitions seems to be a problem. ;-)

So, I reformatted the target partitions with
Code:
mke2fs -v -T news /dev/hda2
and it worked.
 
Old 11-21-2004, 07:13 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683
Near the end of the info page for the 'tar' command is an example of using tar to move an entire directory. All of the attributes are duplicated also.

$ cd sourcedir; tar -cf - . | (cd targetdir; tar -xf -)
 
  


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
Moving space between partitions GoBillsBN Mandriva 1 07-12-2005 11:41 AM
moving space in harddrive from windows to linux SuSE_User Linux - Software 2 02-21-2004 07:39 PM
Moving around my file system... slackMeUp Slackware 9 01-31-2004 06:15 PM
Moving Disk Space in Linux ALF Linux - Software 6 11-27-2003 06:19 AM
Printer sharing betw Mandrake & Win ME Ishkabibble Linux - Networking 3 09-05-2003 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:10 AM.

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
Open Source Consulting | Domain Registration