You are not logged in.
Hello again guys could you help me how to resize partition , i want to take like 20 gig or more from /dev/sda1 but i honestly dont know how and ive been reading http://gparted.org/display-doc.php?name … -partition and other sites, just afraid that im gonna erase everything etc, partioning is very scary for me dont get it at all how to do it correctly on a new re install of bunsenlabs , just lost one hard drive burned pcb or something. Here is the output of sudo fdisk -l
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00051c32
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 87891967 87889920 41.9G 83 Linux
/dev/sda2 131620606 1953503999 1821883394 868.8G f W95 Ext'd (LBA)
/dev/sda3 87891968 89989119 2097152 1G 82 Linux swap / Solaris
/dev/sda4 89989120 131618815 41629696 19.9G 7 HPFS/NTFS/exFAT
/dev/sda5 131620608 1953503999 1821883392 868.8G 7 HPFS/NTFS/exFAT
Partition table entries are not in disk order.
output of lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 41.9G 0 part /
├─sda2 8:2 0 1K 0 part
├─sda3 8:3 0 1G 0 part [SWAP]
├─sda4 8:4 0 19.9G 0 part /media/36AE10AE6D2A743F1
└─sda5 8:5 0 868.8G 0 part /media/5CE0D62FE0D60EE01
sr0 11:0 1 1024M 0 rom
Last edited by pozric (2016-03-21 16:20:53)
Offline
Looks like sda1 is your linux root partition, so bearing in mind the risks of data loss involved (ie backup first!).....
You can't do anything to the partition which is booted, and where you are running gparted from, so
1) Boot to a live disk and run gparted
2) Make sure /dev/sda1 is unmounted
3) Select partition, "Partition -> Resize/Move", resize to your desired size.
4) There will then be unused space you can use for another partition, or expand the neighbouring one into it.
5) Reboot
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
Thanks damo im gonna reinstall bl with the graphic installer so i can do it from there right.
Offline
Hi guys so i want to merge unallocated space 29.34 gig to sda5 or sda4 , is that possible.http://postimg.org/image/a9xku2cnr/
Offline
Hi guys so i want to merge unallocated space 29.34 gig to sda5 or sda4 , is that possible.http://postimg.org/image/a9xku2cnr/
Not directly. You can only expand into adjacent space, so I would delete swap, then move sda4 next to sda1, and expand it (leave space for creating a new swap afterwards).
One gotcha is that you will have a new UUID for swap, so the entry in `/etc/fstab` will need editing to match it.
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
pozric wrote:Hi guys so i want to merge unallocated space 29.34 gig to sda5 or sda4 , is that possible.http://postimg.org/image/a9xku2cnr/
Not directly. You can only expand into adjacent space, so I would delete swap, then move sda4 next to sda1, and expand it (leave space for creating a new swap afterwards).
One gotcha is that you will have a new UUID for swap, so the entry in `/etc/fstab` will need editing to match it.
Hey Damo is that 'only able to merge into adjacent space' thing a limitation of gparted, or does that apply to all re-sizing/re-partitioning of disks?
Also will rebooting update the UUID of SWAP, or do UUID's need to be edited manually when they are changed?
"I have not failed, I have found 10,000 ways that will not work" -Edison
Offline
Ok thanks damo im gonna try that , understanding this with partitioning is pretty difficult atleast for me.
Offline
@pozric
IIRC windows partitions need extra attention, so do some research on it first. There is plenty of help on the interweb, eg https://help.ubuntu.com/community/Howto … gPartition
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
I would recommend resizing Windows partitions from Windows using the tools provided by that operating system.
Probably best to defragment your drive as well (from Windows) before you do anything.
Offline
Ok cool , thanks guys for the info.
Offline
...
Hey Damo is that 'only able to merge into adjacent space' thing a limitation of gparted, or does that apply to all re-sizing/re-partitioning of disks?
Also will rebooting update the UUID of SWAP, or do UUID's need to be edited manually when they are changed?
AFAIK, using this type of partitioning, you cannot merge into non-adjacent unallocated space, as you can see if you try it with gparted. Maybe you can with LVM etc, but I don't know anything about that.
[NB this is an arbitrary image off the web. You don't think I would have a theme or icons like that on my machine do you?!]
Swap UUID needs to be manually edited in fstab (same as if any partition has its UUID changed). The system will still boot if you don't, but you will get a 90sec hang at the start because of the discrepancy.
But if swap can be moved instead of deleting/creating it, then the UUID won't change.
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
[NB this is an arbitrary image off the web. You don't think I would have a theme or icons like that on my machine do you?!]
Lol, I was totally judging you. Thanks for the replay though.
"I have not failed, I have found 10,000 ways that will not work" -Edison
Offline
I would recommend resizing Windows partitions from Windows using the tools provided by that operating system.
Probably best to defragment your drive as well (from Windows) before you do anything.
I agree that you should use the tools provided by Windows to start with, and do an agressive defrag. But in many situations, there are those "unmovable" files that can't be defragged and that even the Windows partition utility will refuse to move, thus not resizing the partition.
You can quickly check if you have some of these files by running a visual defragger like MyDefrag, et al.
If this is the case, your best bet is to use a linux partition utility, like gparted, which happily will resize your partition and move the unmovable!
Next time you boot Windows, it will detect some "errors" and run chkdsk to fix them. Then you should be fine...
I've done this many times, but not on anything higher than NT 6.1 though...
BunsenLabs | LMDE 5 | Linux Mint | Void Linux
Was Linux user #348237...
Offline