LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-16-2015, 07:23 AM   #1
atux_null
Member
 
Registered: Mar 2015
Distribution: debian 12, ubuntu 22.04
Posts: 65

Rep: Reputation: Disabled
expand filesystem


dear all. i do have an image of a system with all the settings and i got it flashed to the new drives (cf, sd, hard disk....). the problem i am facing is that the original image is 2GB and it does not see the whole space of the disk. now everytime that i have to expand it i mount it to another system and through gparted i do system expansion.
I came across raspberry and i have seen the raspi-config(https://www.raspberrypi.org/document...aspi-config.md) they do have and it is really cool. it has a function to expand the partition without user interference.
is there a way to have a tool like this in debian 6 or 7 so i could call it and expand the partition?
 
Old 04-16-2015, 08:08 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
i think the command would be growisofs. maybe you could run parted/gparted and expand all the dropdowns on the log tab to get hints at what it is doing (i dont have it in front of me so i forget where to look exactly).
 
Old 04-16-2015, 08:31 AM   #3
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
Originally Posted by schneidz View Post
i think the command would be growisofs.
Is not iso9660 filesystem readonly? growisofs only adds data but it does not allows dynamic read/write.

Last edited by veerain; 04-16-2015 at 08:33 AM.
 
Old 04-16-2015, 08:33 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
Originally Posted by atux_null View Post
dear all. i do have an image of a system with all the settings and i got it flashed to the new drives (cf, sd, hard disk....). the problem i am facing is that the original image is 2GB and it does not see the whole space of the disk. now everytime that i have to expand it i mount it to another system and through gparted i do system expansion.
I came across raspberry and i have seen the raspi-config(https://www.raspberrypi.org/document...aspi-config.md) they do have and it is really cool. it has a function to expand the partition without user interference.
is there a way to have a tool like this in debian 6 or 7 so i could call it and expand the partition?
You can put a script to do that.
 
Old 04-17-2015, 02:29 AM   #5
atux_null
Member
 
Registered: Mar 2015
Distribution: debian 12, ubuntu 22.04
Posts: 65

Original Poster
Rep: Reputation: Disabled
this is what i am asking for. the script.
 
Old 04-17-2015, 06:32 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,813

Rep: Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958
It depends on how your drive is partitioned. You can see how others have created a similar script below. The method used below is for single one partitions. You delete the original and create a new one that uses the entire space of the drive. Then the actual filesystem is resized.


https://rpi.tnet.com/project/scripts/rpi-wiggle
http://www.raspberryvi.org/wiki/doku...-expand-rootfs
http://elinux.org/Beagleboard:Expand...n_On_A_microSD
 
  


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
Easy way to Expand my / manuel19 Linux - Server 6 06-12-2013 12:07 PM
Expand ext3 filesystem past 13TB... hazoom Linux - Server 2 04-27-2011 04:07 PM
add lvm to expand a full filesystem mariogarcia Linux - Software 3 04-27-2007 04:16 AM
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM
ntfs expand edgefield Linux - General 6 10-23-2004 09:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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