LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-16-2021, 11:00 AM   #16
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,365

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190

It matters not. The general recommendation to use a live environment is for convenience - most users have one (the install USB) whereas they may not have a spare multi-boot linux environment.
 
Old 06-16-2021, 11:16 AM   #17
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by ScatteredThunder View Post
Alright so I'm going to go ahead and try to resize partitions (already did backup)!

Is it really necessary to do that from a live-CD or can I do it from Ubuntu using GParted as long as I'm not booted up to such partitions about to be resized?

Are there any increased/decresed risks associated with doing such operation from a live-CD Vs. OS?
You can do it if you're booted up to a different partition. Only the partition(s) which are currently mounted will be "locked", as well as certain special partitions (if any).

There's not any significant difference in risk one way or the other.
 
Old 06-16-2021, 02:20 PM   #18
ScatteredThunder
Member
 
Registered: May 2021
Posts: 44

Original Poster
Rep: Reputation: Disabled
@syg00, IsaacKuo:

Thank you! Resizing/moving partitions were done successfully!

Now I noticed something rather odd after resizing and moving partitions with GParted:

https://ibb.co/tH96cJ2

Why is it showing 40GB used if I have nothing in that partition?

Does that mean after resizing/moving partitions around it will take up space as a side effect?
 
Old 06-16-2021, 09:27 PM   #19
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,365

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
By default ext filesystems reserve 5% of the space in case it fills so the root user can login and fix things. That can be set to zero to recover that space - best not done on the system filesystem. If this a data-only filesystem, go right ahead.
Then of course the metadata for the filesystem itself occupies some (small) space - this is true for every filesystem ever invented.
 
Old 06-17-2021, 01:43 PM   #20
ScatteredThunder
Member
 
Registered: May 2021
Posts: 44

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
By default ext filesystems reserve 5% of the space in case it fills so the root user can login and fix things. That can be set to zero to recover that space - best not done on the system filesystem. If this a data-only filesystem, go right ahead.
Then of course the metadata for the filesystem itself occupies some (small) space - this is true for every filesystem ever invented.
Thanks!

So how do I go about setting the value to zero? This is a data only partition!
 
Old 06-17-2021, 05:34 PM   #21
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,365

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
You'll note I didn't include that info. Better you learn that be told - exercise your favourite search engine.
If you want to post your command before running it, that's fine. The command itself can be run anytime, even if the filesystem contains files - it is non-destructive.
 
Old 06-18-2021, 03:43 PM   #22
ScatteredThunder
Member
 
Registered: May 2021
Posts: 44

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
You'll note I didn't include that info. Better you learn that be told - exercise your favourite search engine.
If you want to post your command before running it, that's fine. The command itself can be run anytime, even if the filesystem contains files - it is non-destructive.
Thank you syg00!

Upon a quick Google search, I found a couple articles suggesting eliminating that 5% reserve is possible though it would produce increased disk fragmentation as a result.

I also found a comment suggesting leaving 2% reserved space as precaution in case disk fragmentation occurs.

Do you know how to set the percentage value of reserved space? Is it the "-m 0" value in "sudo tune2fs -m 0 /dev/sdb1"?
 
Old 06-18-2021, 09:48 PM   #23
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
Quote:
Originally Posted by ScatteredThunder View Post
Alright, will do thanks!


Okay, but if something goes wrong then it will mess up the entire hard drive right?

I mean, all other existing partitions will be affected as well? Or just sda6?
I don't know if you are super paranoid or not, but as has been said. Gparted is almost 100% fail-safe. Meaning it either succeeds or fails without harm.

That is not to say a user cannot make a mistake, but it usually does exactly as told unless there is a valid reason not. Just like your image where it shows the partition locked. It cannot do anything on the device that is active, so it prevents that.

The suggestion to do a backup first is because of the possibility of user error (and the very unlikely application error). Nothing can protect against everything, which is why ID 10 T errors are common in the IT world.
 
Old 06-18-2021, 10:03 PM   #24
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
I have a very good suggestion for you, in light of your absolute timidity in trying things.

Turn off the computer and read a book. You will learn just as much.

If you really want to learn, then try things. How do humans learn? -- by doing, by making mistakes or succeeding, and learning from our experiences.

If you want your hand held for everything you do then I am tired of doing so. Your other thread about a failing drive insisted on having everything explained in detail and took over 50 posts to attempt to make a disk image and use photorec to try and recover after you changed the partition table as the first thing you did. While it is frustrating to make a mistake and then have to recover, we learn from our experiences.

Many tools are available, many people are willing to help, but we all get tired of the timid little boy who will do nothing for himself but ask for approval, just like we get tired of a know-it-all who always has the only right answer. Being in the middle is best. Being willing to search, try, educate yourself, and make an effort is worthwhile.
 
1 members found this post helpful.
Old 06-19-2021, 05:01 PM   #25
ScatteredThunder
Member
 
Registered: May 2021
Posts: 44

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by computersavvy View Post
I have a very good suggestion for you, in light of your absolute timidity in trying things.

Turn off the computer and read a book. You will learn just as much.

If you really want to learn, then try things. How do humans learn? -- by doing, by making mistakes or succeeding, and learning from our experiences.

If you want your hand held for everything you do then I am tired of doing so. Your other thread about a failing drive insisted on having everything explained in detail and took over 50 posts to attempt to make a disk image and use photorec to try and recover after you changed the partition table as the first thing you did. While it is frustrating to make a mistake and then have to recover, we learn from our experiences.

Many tools are available, many people are willing to help, but we all get tired of the timid little boy who will do nothing for himself but ask for approval, just like we get tired of a know-it-all who always has the only right answer. Being in the middle is best. Being willing to search, try, educate yourself, and make an effort is worthwhile.
Man, some of you on this forum are weird. If you don't want to help then just don't reply.

Are you here to help solving Linux problems or are you trying to be a sudo psychologist?

This is the first time I have this kind of problem on online forums.

Your replies here has nothing to do with my initial question.

And FYI, I have taken zero advice from your sudo knowledge about human nature.

Bye!

Last edited by ScatteredThunder; 06-19-2021 at 05:11 PM.
 
1 members found this post helpful.
Old 06-20-2021, 07:51 AM   #26
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,365

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
The comments were uncalled for IM(NS)HO.

As for concerns with fragmentation they are largely of a time past. The allocation schema for (particularly) ext4 have evolved to ameliorate the situation. And yes, I know the manpage still mentions it - they are maintained separately to the code itself. Unless you consistently run your filesystem above (say) 98% full, 0% is fine for data partitions in my experience.
 
Old 06-20-2021, 11:03 AM   #27
ScatteredThunder
Member
 
Registered: May 2021
Posts: 44

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
As for concerns with fragmentation they are largely of a time past. The allocation schema for (particularly) ext4 have evolved to ameliorate the situation. And yes, I know the manpage still mentions it - they are maintained separately to the code itself. Unless you consistently run your filesystem above (say) 98% full, 0% is fine for data partitions in my experience.
Thanks for the info!

I am very likely going to use the entire disk space of that partition since it's such a small partition after doing the resizing (only 800GB) therefore your information is useful.
 
Old 06-25-2021, 04:37 AM   #28
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
Quote:
How can I join the two unallocated spaces together?
This is very easy to do with LVM. You would format the two spaces as physical volumes and then add them to the same Volume Group. You can then create logical volumes from the VG. You would install a Linux distro to one or more LVs.

There is no need to move partitions around if you don't want to.

Quote:
You can't combine unallocated space that isn't contiguous.
You can easily do this with LVM.
 
1 members found this post helpful.
  


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
how to merge 2 unallocated spaces? nebeneffekt Linux - Software 16 11-17-2012 01:30 PM
[SOLVED] joining 2 unallocated spaces kox444 Linux - General 9 08-17-2012 04:48 PM
How i make unallocated spaces in the usb stick ? lse123 Linux - Newbie 5 05-11-2009 11:26 PM
Now I have a scsi hard disk, two IDE hard disk, i want install linux on scsi hard dis tecpenguin Linux - Server 4 11-10-2007 06:44 AM
Unallocated hard disk space now unusable!!!320 GB SATA riodeuno Slackware 6 08-25-2007 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:11 AM.

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