LinuxQuestions.org
Review your favorite Linux distribution.
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 04-30-2003, 03:53 PM   #1
lockejr
Member
 
Registered: Jan 2003
Location: Wichita, KS
Distribution: Slack, Gentoo, CPUBuilders
Posts: 37

Rep: Reputation: 15
parted question


Ok here is my scenario

At my company we have our own linux distro that we preinstall on the computers we sell. I have been put in charge of making the installation easier.

The way it worked before I took over is you would put the harddrive in a machine that already had 2 hardrives. 1 boot and the other is the image. it would dd the contents of the image drive to the new one and then run parted to resize the drive. we have 4 sizes of drives 20, 40, 60, and 80. it had a separate script for each one.

Now here is how i have changed it. I wrote a script that uses /proc/ide/hdc/geometry to see what size the drive is and then use the appropriate script. made things much easier. then they decided they wanted to do a multi-cast duplication after the machines are all put together. ok i tweaked UDPCast to meet our needs and used it.

The problem is UDPCast takes forever on a 20 gig so a 80 would take several hours. They want to only transfer the 6 gig partition that we actually use and then run the parted scripts again to resize.

My though was to make a customized knoppix disk and have it do the auto sense thing and resize the partition for me. well it doesn't work. I put the script in /etc/rc3.d (after changing the default runlevel to 3) and it doesn't run at boot up like it is supposed to according to the documentation. plus when i try to run the script just from a command prompt it tells me that hda2 is in use. how can this be?

Anyone have any ideas how I can make this work or a good alternative. It has to be something that you just pop the cd in and it does it's thing. no user intervention.


thanks
 
Old 04-30-2003, 04:24 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Your best bet is probably to use partimage.
1) Get a minimalist distro
2) Install partimage
3) Use partimage to copy the partitions on your preconfigured drive
4) Remove the preconfigured drive and replace with a blank one
5) Create the partitions
6) Run partimage to copy the partitions back

Once this is done once you only need steps 5 & 6 and these could probably be handled by a seperate script so you only have to boot and type:
makemealinuxcomputernow

or:
go

for short
 
Old 04-30-2003, 04:40 PM   #3
lockejr
Member
 
Registered: Jan 2003
Location: Wichita, KS
Distribution: Slack, Gentoo, CPUBuilders
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks man I will look at doing that.
 
  


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
cannot use 100% of hard disk, fdisk / parted / partition question lucastic Linux - Hardware 5 12-02-2005 09:58 PM
ok..Parted question. matthewa Linux From Scratch 7 04-05-2005 09:59 AM
parted question greg108 Linux - Newbie 2 08-12-2004 12:54 AM
Using parted jdmml Linux - Newbie 5 07-08-2004 09:39 PM
Question about parted abw Linux - General 12 04-19-2004 05:12 AM


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