Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 20 Nov 2019, 07:28
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Resizing a working partition
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [18 Posts]   Goto page: 1, 2 Next
Author Message
LNSmith


Joined: 28 Mar 2013
Posts: 65
Location: Lake Macquarie, NSW, Australia

PostPosted: Tue 08 Oct 2019, 02:51    Post subject:  Resizing a working partition
Subject description: Is there any known problem if I resize a partition?
 

G'day all,

I have a small (280GiB) rotating disk drive.
This is now my main working drive. Recently re-formatted to 280GiB/ext4.
While I consider this my "main" working drive, it is NOT my home drive - that is a smaller, separate drive.
The partition I want to shrink is the first partition on the drive.

The second partition on the drive is VFAT32 80MiB - M not G. Tiny.
I want to shrink the first partition to 200GiB and increase the second partition from 80MiB to 80GiB.

I will use GParted.
The process appears to be vy simple.
The first partition uses about 15GiB - the rest is free space.
My "Q": Are there any "gotchas" if I do this?

Thank you.

Leslie
Back to top
View user's profile Send private message 
8Geee


Joined: 12 May 2008
Posts: 2088
Location: N.E. USA

PostPosted: Tue 08 Oct 2019, 05:56    Post subject:  

Data on the partitions will be erased.
Make backups.

_________________
Linux user #498913 "Some people need to reimagine their thinking."
"Zuckerberg: a large city inhabited by mentally challenged people."
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12775
Location: Stratford, Ontario

PostPosted: Tue 08 Oct 2019, 06:00    Post subject:  

8Geee wrote:
Data on the partitions will be erased.

Evidence please.
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12866
Location: S.C. USA

PostPosted: Tue 08 Oct 2019, 06:29    Post subject:  

Quote:
The second partition on the drive is VFAT32 80MiB - M not G. Tiny.
I want to shrink the first partition to 200GiB and increase the second partition from 80MiB to 80GiB.

If you keep the format, the same as it already is, on each partition. Data should be good.

What is actually on the very small second partition?
Are you sure it is not being used as the location of the boot loader and it's needed files used to boot the computer?
If it has boot loader files on it. Keep it the way it is.
If not the boot loader partition.
Is anything on it really needed?
If no.
I would delete the second very small partition.
Resize the first partition.
Make a second partition out of the still unallocated space.

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1388

PostPosted: Tue 08 Oct 2019, 11:50    Post subject:  

I'd done similar things a number of times.

It takes a very long time. Many hours. Any kind of crash or power outage would probably be disastrous.

If here are errors on the disk, it will abort. Usually, you end up back where you started from, but once I lost data.

Back up anything important, do a fsck and if you have windows on it, do a chkdsk too, and plan on it taking several hours.
Back to top
View user's profile Send private message 
8Geee


Joined: 12 May 2008
Posts: 2088
Location: N.E. USA

PostPosted: Tue 08 Oct 2019, 21:14    Post subject:  

I was/am preparing the OP for the worst, by presuming it will happen.

We do not know if there is an OS with boot sector on that disk until the OP responds.

I have done this with Windows, and it is a long process, IIRC longer than defragging the disk (20Gb was 6+ hours to defrag)

I am crossing my fingers that the OP has an Uninterruptable Power Supply (UPS device... mains backup) and that ext4 has enough of the numerous bugs worked out in the kernel. Nothing worse than a corrupted OS without a CD/DVD as backup.

Regards
8Geee

_________________
Linux user #498913 "Some people need to reimagine their thinking."
"Zuckerberg: a large city inhabited by mentally challenged people."
Back to top
View user's profile Send private message 
Burn_IT


Joined: 12 Aug 2006
Posts: 3583
Location: Tamworth UK

PostPosted: Wed 09 Oct 2019, 11:13    Post subject:  

Providing you defragment the first part, moving data to the front, nothing should be lost.
The only time this will take a very long time is if there is data in sectors that need resizing which I believe is no the case here.

_________________
"Just think of it as leaving early to avoid the rush" - T Pratchett
Back to top
View user's profile Send private message 
oui

Joined: 20 May 2005
Posts: 3494
Location: near Woof (Germany) :-) - 3 PC's: DELL SX280 750 MB Pentium4, Acer emachines 2 GB AMD64. DELL XPS15

PostPosted: Wed 09 Oct 2019, 17:45    Post subject: Re: Resizing a working partition
Subject description: Is there any known problem if I resize a partition?
 

Hi Leslie

LNSmith wrote:

I have a small (280GiB) rotating disk drive.
This is now my main working drive. Recently re-formatted to 280GiB/ext4.
While I consider this my "main" working drive, it is NOT my home drive - that is a smaller, separate drive.
The partition I want to shrink is the first partition on the drive.

The second partition on the drive is VFAT32 80MiB - M not G. Tiny.
I want to shrink the first partition to 200GiB and increase the second partition from 80MiB to 80GiB.

I will use GParted.
The process appears to be vy simple.
The first partition uses about 15GiB - the rest is free space.
My "Q": Are there any "gotchas" if I do this


see above answer!

now, an approach of solution:

I assume you are using a Puppy, (about) each one!

I assume a boot loader is preinstalled on your disk (you say nothing about all those details and wish to be help Rolling Eyes !).

2 ways:

first way

you have a CD/DVD drive

burn a Puppy on CD and restart from CD drive

second way

you don't have some CD or CD drive / don't want to use some CD

- download from you now active Puppy (I did assume that!) -about- each Puppy you want into your home drive
- hit on the file using rox
- a "virtual" directory opens and you can look into the file and see the components
- create a new dir in your home drive, for ex. "Zpuppy"
- copy the files vmlinuz, initrd.gz (probably!) and all the files ending in *.sfs from the virtal dir into the new Zpuppy dir
- add a starting item in your boot loader configuration's file
- restart and select the new Puppy entry

for both way:

you are now at the same point! Puppy runs RAM only - no partitions is open (*1!

start gparted and modify your partitions like youn want Wink

and enjoy as easy all those manipulations are easy in Puppy,,,

(*1 the most usual situation after Puppy start (depending of course of the Puppy version) - if you yet use a save file / dir in Puppy, do that with a fully different version not recognizing your save system Razz (use of save file is absurd! do better remaster!)
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 3489
Location: 500 seconds from Sol

PostPosted: Wed 09 Oct 2019, 19:08    Post subject:  

Qui has almost got it. But I think LNSmith has left out too much vital information.

What's on the 2nd 80 Mb vfat partition? Is it only a small SaveFile -- just large enough to hold setting and configurations which would cause Puppy to see it as the HOME Partition? 80 Mbs is too small to hold all the file-systems required for even a frugal install of almost all Puppies. Does it hold Grub2 as boot-loader?

Is there another Operating System on the 280 Gb first Partition? Obviously not Windows as it formatted Linux Ext4. Is Puppy on the first Partition with its SaveFile for some reason on the 2nd?

To avoid any misunderstanding, the terms drive and partition are not inter-changeable. A drive is a physical object. A partition is the product of a program which instructs the computer to treat different sections of a drive as entirely separate from one another.

To figure out how to get to your final destination, we first have to know where you are.

And while an answer to these questions may prove to be unnecessary, to avoid further delay:

How are you now booting Puppy?
Can you burn a Puppy to a CD?
Can you 'burn' a Puppy to a USB-Key and then use that to boot the computer?
When you boot into Puppy, is the first drive automatically mounted? If so, can it be unmounted? gparted can not work with mounted partitions.
Back to top
View user's profile Send private message 
LNSmith


Joined: 28 Mar 2013
Posts: 65
Location: Lake Macquarie, NSW, Australia

PostPosted: Thu 10 Oct 2019, 17:47    Post subject: Resizing a working partition
Subject description: Additional info on resizing a SPECIFIC partition.
 

To all: Thanks for responses to date.

To MikeSLR
Quote:

Q1. How are you now booting Puppy?
Q2. Can you burn a Puppy to a CD?
Q3. Can you 'burn' a Puppy to a USB-Key and then use that to boot the computer?
Q4. When you boot into Puppy, is the first drive automatically mounted? If so, can it be unmounted? gparted can not work with mounted partitions.


Ans_#1) I boot Tahr-Pup 6.0.6 from a CD I burnt some time ago.
The "real" files sit on a different drive (sdb2) in the second partition (making the sdb2 my "home" directory). This is a smaller drive, partitioned into two equal parts. I can (and have) a second USB key that will boot. This is 5.7.1 not Tahr. I can (and have) booted Tahr without the save file many times. (Quietly, portability and the ability to boot "cold-turkey" is one of the great assets of Puppy.)
Ans #2) Yes, I burnt several "sons" of Puppy to CD - Tahr, 5.7.1, Stretch etc.
Ans #3) Yes, I can (and have) booted THIS box (and others) using 5.7.1 (This is the version of Puppy with the darker background to the desk-top. I suspect it's a favorite place for Barry's pup. It looks like a doggy-place to me.
Ans #4) No. sdb2 is my "home" directory - the boot directory. sda1 is the 280GiB directory that I will re-size. I must mount that drive before I use it.

Now to more general comments. The answers given have been most useful.
Here is the plan I have formed. I have several spare rotating drives lying around the place. I will back-up the files from this working partition to one of these spare drives. (Here the dd command (disk duplicate) command will come in handy. BTW - I am aware of the warnings associated with "dd")

After that, just before I go to bed I will begin the re-sizing exercise. gParted will do that task. I will report the result here (although I can't say how long the exercise took bec. I will be sleeping).
Since I have a back-up and since I am working with a drive I partitioned only 2 weeks ago the chance of disaster is vanishingly small. Not impossible - just vanishingly small.

Thanks to all. 'dd' is most useful.

Leslie
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12866
Location: S.C. USA

PostPosted: Thu 10 Oct 2019, 18:53    Post subject:  

Gparted time to do the resizing is all about how much is on the partition and how much of it is free space.
The more data that is on it, the longer it will take.
If most of the partition is still free space.
That takes very little time to resize.

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
LNSmith


Joined: 28 Mar 2013
Posts: 65
Location: Lake Macquarie, NSW, Australia

PostPosted: Fri 11 Oct 2019, 05:55    Post subject: Resizing a working partition
Subject description: This is what happened. (success - soft of ...)
 

The situation: I had a (rotating) disk drive that I accidentally partitioned as:

Partition #1 | Partition #2
ext4/280GiB VFAT32/ a few MiB (I wanted a few GiB, not Megs)

Using Gparted, the partition editor, I resized the 280GiB (sda1) to 192GiB.
Files in this (fairly new) partition: About 15GiB
Time to shrink: about one minute.
Result: Success. I have the report if anyone wants to see it.

Then: MY BAD. GParted told me (after I tried to re-size sda2 to about 94GiB) "I'm sorry, but I can't let you do that dave!" Ummm. Windows has an artificial limit on VFAT32 of 32GiB. I think that's what HAL (or Gparted) wanted me to understand. So ... I erased the complete partition and re-formatted it to 32GiB, leaving space between sda1 and the VFAT partition.

Reformatted VFAT32 and after that made a third partition (sda3) - ext4.
So - I got a third partition (that I didn't really want).

The report, after checking all 3 partitions using gParted and fsck (or e2fsck) was "success". Good file system structure.

The moral: Don't try to create a VFAT file system larger than 32GiB using gParted. The other moral: Always backup your drive before resizing.

Always backup your drive, rain hail or shine.

Leslie
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12866
Location: S.C. USA

PostPosted: Fri 11 Oct 2019, 06:10    Post subject:  

Why do you want a fat32 format?
You are using Linux!
If it is something for Windows to be able to use.
ntfs format does not have size issues.

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
LNSmith


Joined: 28 Mar 2013
Posts: 65
Location: Lake Macquarie, NSW, Australia

PostPosted: Fri 11 Oct 2019, 14:15    Post subject: Resizing a working partition  

Hello Big-dog!

Quote:
Why do you want a fat32 format?
You are using Linux!
If it is something for Windows to be able to use.
ntfs format does not have size issues.


My intention: Make a small partition available for working with Windows.
In the past I used Windows often and gradually 'slid into' Puppy Linux - using the Windows file systems. Now I'm using Linux but it's convenient to be able to visit the past. Windows doesn't speak ext4.

On a parallel topic: whether Linux or Windows - System maintenance is more easily done when the boot disk (whatever system) is on a separate physical device, not just a different partition, from the working directories. If the OS falls over, I still have my work. If I want to back up my work, I don't have to worry about the OS. I always separate 'work' and 'OS'.

All the best.

Note: I have directories, not folders.
I have storage, not memory.
I have Linux, not Windows (mostly).
Back to top
View user's profile Send private message 
oui

Joined: 20 May 2005
Posts: 3494
Location: near Woof (Germany) :-) - 3 PC's: DELL SX280 750 MB Pentium4, Acer emachines 2 GB AMD64. DELL XPS15

PostPosted: Fri 11 Oct 2019, 15:52    Post subject:  

Hi Leslie
I am sorry

LNSmith wrote:
The moral: Don't try to create a VFAT file system larger than 32GiB using gParted. The other moral: Always backup your drive before resizing.


the moral is that you use a old Puppy (and old Ubuntu) Version!

gparted, the actual one, is a really brave helper for all his users and never does complications without reasons, and it works pretty!

more!

gparted show you how to do that what it does in CLI (commando line) and reading the man pages of the proposed commands, you can extend your actions Rolling Eyes . those app's learning how to do more, are very rare (look what it does on vfat or, perhaps today, ntfs partitions: you see the command and, if you are yet an expert Windows user, can perhaps understand what is the matter better as a linuxer as I Wink !)

concerning major security app's and gparted is certainly one of them, I would always use the most fresh one awaiting that the most problems are erased and the compatibility is maximal Rolling Eyes (I would only take the next precedent one in case of evident difficulty! So can you preserve the most higher security through the mos recent level of the utility version! you can check the utility version for ex. in distrowatch.com!)

why are you using an old version? look at the titel of the internet page of the forum, look for the link Puppy HOME page (ok, tahr pup is on it at the last position, not for nothing - it is the last actual version made out Ubuntu bin's),

in new versions developers did spend a lot of hours or days to eliminate precedent difficulties in all main app's. and you are REFUSING to use the ameliorations and wine in the forum?

i don't understand it!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [18 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0749s ][ Queries: 11 (0.0157s) ][ GZIP on ]