LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-24-2005, 09:40 AM   #1
linuxbh
LQ Newbie
 
Registered: Aug 2004
Distribution: FC1,redhat9.-0,mandrake9.0
Posts: 10

Rep: Reputation: 0
can i dd 2.5gb partition into 763mb????


hello friends

i have implemented lfs 5.1 completely using fedora core 1.

i have done implementation on 2.5gb partition ( /dev/hda7 on my hdd). now i want to make it on 763 mb ( /dev/hda6) so that i can create a single cd of my base system.

can i devicedump 2.5gb partition into 763mb using dd?

if possible is it necessary to do defragmentation of 2.5gb partition. and how shud i defragment it ....

thank you in advance

please do reply
linuxbh


please note: on 2.5 gb my lfs implementation has just taken 750 mb
 
Old 03-24-2005, 10:17 AM   #2
nhs
Member
 
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
Use resize2fs to resize the ext2/3 filesystem (use reiserresize (I think) for reiserfs) to shrink it (i.e. make sure that nothing beyond 760 Mb (for example) is used. Then copying the first 760 Mb should work. Once in the destination partition use resize2fs to expnd it to fit the partition and you're done.
 
Old 04-04-2005, 01:59 PM   #3
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
I think, Linux filesystem's 'unlike DOS, Win, and such' don't defragment because they don't need to.
 
Old 04-04-2005, 02:34 PM   #4
nhs
Member
 
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
They don't need defragmentation. All that resize2fs does is guarantee that no part of the filesystem extends beyond the given boundary and changing the filesystem's internal size field to prevent ext2/3 from allocating a block beyond that boundary subsequently.
 
  


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
Kernel and 1.5gb of ram Hexane Mandriva 4 01-21-2005 11:10 AM
1gb DDR400 or 1.5gb DDR333? The Grim Reaper General 10 11-10-2004 05:52 PM
second 200GB HD is only showing as 2.5GB johnniefp Linux - Hardware 1 10-15-2004 09:45 AM
I can't see all of my memory (only 3.5Gb of my 8Gb is seen) in Mandrake 10 jmaxdirect Linux - Newbie 15 06-03-2004 03:23 AM
120GB HDD posing as 2.5GB Azriphale Linux - Hardware 1 09-04-2003 09:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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