LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-14-2011, 04:50 AM   #1
estratos
Member
 
Registered: Jan 2006
Distribution: Ubuntu
Posts: 85

Rep: Reputation: 15
Automatic creation and formating of HOME partition


Hi,

I'm a big fan of the NSLU2-Linux project so I've been doing some developments for this platform for the last three years. In order for the end users to test my applications, I initially created an USB image with everything bundled into it. Then, they only had to download the image and decompress (dd) it into an USB pendrive with capacity equal or greater than 4 GB. The fact is that this has brought me lots of problems in the practice since my Web server hardly accepts long file transfers. Moreover, flash spaces beyond 4GB are wasted.

As result, I'm now considering a different approach but I'll need some help as I don't know how to do it. Well, I've thought that I could maybe create an USB disk image only with the root file system partition. Then, the first time a script runs, it creates a home partition and formats it into the rest of the space available in the pendrive.

There is maybe some command-line alternative to fdisk without having the user to interact during the format process... ??

Any fresh idea is welcome !!

Thanks in advance.

Daniel.
 
Old 01-14-2011, 09:54 AM   #2
redgoblin
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 189

Rep: Reputation: 41
It seems that you can sort of script fdisk by storing all the key strokes in a text file and redirecting the input. Have a look at this article.

Out of curiosity is there any reason your not just providing your application[s] as something that can be installed onto OpenSlug or DebianSlug?
 
Old 01-14-2011, 12:15 PM   #3
estratos
Member
 
Registered: Jan 2006
Distribution: Ubuntu
Posts: 85

Original Poster
Rep: Reputation: 15
Thanks redgobling for the link. This could be a possible solution.

My application is in fact a bit more complex than a simple binary. It needs lighttpd, PHP, SQLite and a bunch of config files installed at given lotations. Moreover, current users (of my solution) typically know nothing about linux so I need to simplify them the install process as much as possible.

Thanks again.

Daniel.
 
Old 01-14-2011, 12:54 PM   #4
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Rep: Reputation: 50
perhaps make a cript to detecct available space on the disk and then make a file to use the whole space mounted like home .

perhaps the puppy linux saving fs into a file with the size you want to selelct would help ?
sorry im just giving some idea now cuz i dont know uch about fdisk or the tools you mentioned and i mentioned ..
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installed 12.1 without formating the old /home http:// Slackware 12 05-19-2008 06:53 PM
Automatic AD user directory creation/mapping HalJordan Fedora 5 02-19-2005 10:31 AM
post installation creation of /home partition problem timsch75 Linux - Newbie 2 03-13-2004 09:07 AM
Formating a FAT32 partition, putting the partition correctly into FSTAB, and more. squall14716 Linux - General 14 10-27-2003 10:16 PM
Automatic user creation Skorpio Linux - Networking 3 09-25-2003 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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