LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-03-2005, 09:55 PM   #1
matthewa
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123

Rep: Reputation: 15
ok..Parted question.


I am about to use parted to resize /dev/hda3............which is the home partition on my current running distrobution.

It begins at 2988.655 and ends at 79316.594.

Now if I start the partition at 2988.655 and end it at .......say 40000.000 will I loose all of my information contained on that partition?
 
Old 04-04-2005, 01:44 AM   #2
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
Is there some reason you can't just repartition with fdisk while reinstalling your Distro?
 
Old 04-04-2005, 06:22 AM   #3
matthewa
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123

Original Poster
Rep: Reputation: 15
Well now I guess not! But would'nt that just defeat the purpose of learning how to do something?

Whats the point in destroying the set up of my current distro when I dont have to? I've been running this distro for some time now and have things set up! If I whipe the...........................nevermind

tnaks for your help!
 
Old 04-04-2005, 11:37 AM   #4
Yerp
Member
 
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Rep: Reputation: 15
Good question. I am not familiar with how ext3, reiserfs, etc works but heres what I know.

Under a Window fat and ntfs, files get degragmented due to the way in which data is placed unto the drive. If the partition were to be resized before it was defraged, data could potentially be lost.

With ext2,3,etc.. for whatever reason defragging is not necessary.

Whether this is a risk or not will be related to the following.

Are you under ext2, ext3, xfs, jfs, reiserfs, etc?
You should be able to go to their sites and find somebody who can help on how safe they are to resize.

Secondly, parted is a very low level and a very small tool. As a rule of thumb of mine, I donot expect very low level applications to handle complex operations. My guess is that that does not exist as of yet.

Finally, I made an assumption on what you mean by the program "parted". I am assuming GNU Parted. If that is the case you can go to their website: http://www.gnu.org/software/parted/#documentation
There is some interesting information there.

Hopefully this helps some as I donot know the answer myself.

----
Almost forgot
If you have enough space available, you can backup the entire partition image with the following simple command:
Code:
cp /dev/hda1 harddrive.img
This will copy partition 1 on harddrive A and save it in the image file harddrive.img

after that you can burn it to a cdrom or transfer it on a net to another computer.

Unfotunately, I've only copied from a partition image, I am assuming that copying to a partition image would be like the following
Code:
cp harddrive.img /dev/hda1
But make sure you have all of the partition settings down so you can resize it back and then restore in case anything goes wrong.

Last edited by Yerp; 04-04-2005 at 11:45 AM.
 
Old 04-04-2005, 02:58 PM   #5
matthewa
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123

Original Poster
Rep: Reputation: 15
shotokan,
I have posted my thanks to you in our other post and thanks again for the link. Didnt mean to sound outright with you back there, but I wanted information that would help me not distroy my distro. I have a pet peve about installing and reinstalling a distro when it is really not nes.


Yerp,

Thanks for all your help, but I gotta tell you Parted is about as low level as a nine-hundred story building........lol. It's actualy a very complex program to learn, which is why I was trying to find information about it's usage (and probably why I found none). I enjoy learning everything I can about the tools I have available to me.
Parted is an very good partitioning solution. It's more detailed than other partitioning grams and allows you full control over your partitioning schemes. I think ill use it from now on as my main part-gram......as soon as I learn to use it fully.......lol.
And no, by resizing /dev/hda3 I did not loose any information, nor did I corrupt any files. I have an 80 gig seagate drive with the majority of the space on that partition. I just cut a little off the end.
 
Old 04-04-2005, 03:11 PM   #6
Robert G. Hays
Member
 
Registered: Jan 2003
Location: Atlanta, Ga., USA
Distribution: Gentoo, Mandrake, ~others
Posts: 157

Rep: Reputation: 30
matthewa,

yes, go for the qt version of parted.

Also check out partimage, D*** fine backup tool. Has limitation that to restore an image, it does need (at least the version I am using!) a partition, unformatted if fine!, that is the exact same size as the one that was backed up. Having said that, I _have_ restored to one that was a tiny bit larger, YMMV...

Linux Rocks.
Best!,
 
Old 04-05-2005, 02:14 AM   #7
matthewa
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123

Original Poster
Rep: Reputation: 15
thanks robert, ill check that out.
 
Old 04-05-2005, 08:59 AM   #8
Yerp
Member
 
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Rep: Reputation: 15
speaking of which, there are two great features of qt_parted

1) The embedded compile time option allows support for framebuffer support

2) It supports ntfs resizing, for all you win users. (and for converting )

Of course the downside is that you need to install qt, which takes about just as long as compiling glibc with checks!

And then theres my problems, I use these graphical frontends and get spoiled, resulting in not fully knowing parted!

My second problem is actual. It seems I might need to download their libreiserfs. I cannot seem to compile reiser support into qt_parted..

All in all, qt_parted is indeed worth looking into; But as far as learning, it might not be what you want; but then, I can't possibly know what you like!

Last edited by Yerp; 04-05-2005 at 07:03 PM.
 
  


Reply



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
cannot use 100% of hard disk, fdisk / parted / partition question lucastic Linux - Hardware 5 12-02-2005 08:58 PM
parted question greg108 Linux - Newbie 2 08-11-2004 11:54 PM
parted alaios Linux - General 5 04-29-2004 12:13 PM
Question about parted abw Linux - General 12 04-19-2004 04:12 AM
parted question lockejr Linux - Software 2 04-30-2003 03:40 PM

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

All times are GMT -5. The time now is 03:10 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