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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-18-2008, 08:31 AM
|
#1
|
Member
Registered: May 2007
Posts: 64
Rep:
|
Rescued my system-partition using dd... now it is full?
Hello.
Might b, this os not the right place for this post.
After having trouble with knoppix using qtparted for making my sys-partition bigger, I created a bigger one and dd'd my sys-partition to that.
The bigger one had suddenly a usage of 100 %.
Strange.
I created another, with the same size of the one to rescue data on.
And dd'd again on that new hoping having now more place for some reasons.
but it also has a usage of 100%( I could have guessed that).
Is there a possibility to get this unused space free for usage again?
My first was 3.8 GB, my new one should take 4.5 GB, so normally on a 4.5 GB 3.8 GB are used, but why is it called 100%.
Does anyone know something useful for that problem?
THX in advance.
|
|
|
12-18-2008, 09:48 AM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873
|
If the file structure on the bad partition was corrupt then the inode table for the new partition would have received the bad file structure. I would recommend using tar if it will work. That way files on the new partition are created through the kernel and the file structure will be okay.
You could try running fsck on the new partition to see if that frees up the disk space. Note that if you are not using ext2 or ext3 then you will have to use a different utility to repair the file system. (i.e. xfs_fsr or xfs_repair for an XFS file system)
|
|
|
12-19-2008, 02:38 AM
|
#3
|
Member
Registered: May 2007
Posts: 64
Original Poster
Rep:
|
It got even worse now...
It did not work.
all e2fsck-tries ended up immediately wih one line as result, which tolde me the block and directory-usage.
After I checked by tune2fs, how many starts an automatic checks would need (4) I restarted four times instead of setting it to one or the next.
The automatic told me, check forced and checked bit freed nothing.
Instead of that I get the information, that my fstab is not correct.
It all ended in the misery, that I cannot boot any more, because everytime the dmesg at the beginning tells me to start 32fsck manually.
But it does not work, I only get one line with the result of used directories and blocks.
I checked my fstab: empty.
I could not write into it nor write a new one, because the fs tells me, it is fully occupied.
Even more strange is the fact, that qtperted on knoppix tells me, this partition has a size of4.5 GB and 3.2 are used, means, qtparted gets the right information……. E2fsck and the kernel itself does not seem to scan the pertition right.
What can I do ( not to mention, never using dd for such things any more), because qtparted seems to scan correctly, there MUST be a possibility… but which?
THX in advance.
|
|
|
12-19-2008, 02:45 AM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,441
|
It is the filesystem that is reporting as it was when you imaged it - as it should.
Simply resize it - it will fill the partition by default - "man resize2fs".
|
|
|
12-19-2008, 03:59 AM
|
#5
|
Member
Registered: May 2007
Posts: 64
Original Poster
Rep:
|
THX. Will try that and post the results.
|
|
|
All times are GMT -5. The time now is 11:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|