LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-30-2014, 05:45 AM   #1
Rasool
LQ Newbie
 
Registered: Dec 2014
Posts: 2

Rep: Reputation: Disabled
Automated partitionin


Hi,

I am building an embedded system which has a requirement for dynamic change in partition sizes. Also one partition would be ext3 and other would be FAT32. Also whenever I repartition, my data should be recoverable.My question is following -

1. How safe is it to have a system where partition sizes are changed dynamically? I am asking this coz most of the partition tools warn about data loss when using the tool.
2. Is it possible to shrink the partition so that the new partition starts elsewhere, and still recover data. Please note the new shrinked partition will overlap the old partition. I have already tried to shrink partitions where the start of the partition is not changed and I am able to recover data.

Thanks in advance,
Rasool
 
Old 12-30-2014, 06:36 AM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
I think you need to look at LVM:
http://tldp.org/HOWTO/LVM-HOWTO/
 
Old 12-30-2014, 07:32 AM   #3
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You can shrink filesystems and wish the data the FS uses is not at end of partition space. ext2/3/4, reiserfs has these features. Then you can adjust partition end sector. For dynamically changing partition size of last partition it is no problem, but the partitions before it would be difficult. Else while creating partitions you can put some space between partitions so that afterwards you can resize. And with LVM it's very easy to add or change blocks of sectors/space.
 
Old 12-31-2014, 03:57 AM   #4
Rasool
LQ Newbie
 
Registered: Dec 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
veerain, I am already doing what you ve mentioned. I was specifically looking for moving the start of partition to new location.
Will take a look into LVM.
Thanks guys for your time.

Rasool
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LINUX Partitionin mackubex Linux - Newbie 3 01-24-2011 06:37 AM
automated backup GameSky Linux - Software 23 06-18-2007 01:57 AM
automated installer rhelnewuser Linux - Newbie 8 04-27-2007 03:25 PM
setupin linux FC5 - a partitionin thing monkey_eater Linux - Newbie 7 07-30-2006 01:19 AM
automated transfer robhargreaves Programming 6 05-03-2004 11:25 AM

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

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