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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
06-16-2021, 11:00 AM
|
#16
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,365
|
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.
|
|
|
06-16-2021, 11:16 AM
|
#17
|
Senior Member
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
|
Quote:
Originally Posted by ScatteredThunder
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.
|
|
|
06-16-2021, 02:20 PM
|
#18
|
Member
Registered: May 2021
Posts: 44
Original Poster
Rep: 
|
@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?
|
|
|
06-16-2021, 09:27 PM
|
#19
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,365
|
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.
|
|
|
06-17-2021, 01:43 PM
|
#20
|
Member
Registered: May 2021
Posts: 44
Original Poster
Rep: 
|
Quote:
Originally Posted by syg00
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!
|
|
|
06-17-2021, 05:34 PM
|
#21
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,365
|
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.
|
|
|
06-18-2021, 03:43 PM
|
#22
|
Member
Registered: May 2021
Posts: 44
Original Poster
Rep: 
|
Quote:
Originally Posted by syg00
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"?
|
|
|
06-18-2021, 09:48 PM
|
#23
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
Quote:
Originally Posted by ScatteredThunder
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.
|
|
|
06-18-2021, 10:03 PM
|
#24
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
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.
|
06-19-2021, 05:01 PM
|
#25
|
Member
Registered: May 2021
Posts: 44
Original Poster
Rep: 
|
Quote:
Originally Posted by computersavvy
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.
|
06-20-2021, 07:51 AM
|
#26
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,365
|
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.
|
|
|
06-20-2021, 11:03 AM
|
#27
|
Member
Registered: May 2021
Posts: 44
Original Poster
Rep: 
|
Quote:
Originally Posted by syg00
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.
|
|
|
06-25-2021, 04:37 AM
|
#28
|
Member
Registered: Aug 2007
Posts: 483
Rep: 
|
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.
|
All times are GMT -5. The time now is 03:11 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|