You are not logged in.
Hi,
I would like to add some unallocated space from my SSD to the Linux install; during installation I only allocated ~90Gb to Arch, but have come to reconsider and would now like to add all space on the drive.
fdisk -l
Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 850
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: 0x30031fc5
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 778242047 778240000 371.1G 7 HPFS/NTFS/exFAT
/dev/sda2 778242048 779290623 1048576 512M ef EFI (FAT-12/16/32)
/dev/sda3 779290624 976773167 197482544 94.2G 83 Linux
So my question is: How do I add the space from /dev/sda1 to /dev/sda3?
At the moment it's fortmatted to NTFS for use on my W10 boot; but it's not required anymore.
Cheers,
M
Offline
Highly recommend you copy the data off elsewhere (rsync), once you verify it is safely backed-up, repartition the device, format, and copy back.
Offline
If you really wanted to add that space to the existing linux partition, you'd have a bit of work to do: you'd have to delete sda1, move (basically recreate and copy) sda2, move sda3, expand sda3, then resize the filesystem on sda3. Don't even think of doing any of this unless you have a complete backup of all of your data - honestly, if this is your intended approach and you have a complete backup, then don't even bother: just wipe the partition table and start from scratch in partitioning, making filesystems, then just restore the backup.
However, a *much much* easier approach would be to just make a new linux (e.g., ext4) filesystem on sda1, and make that your home partition (move everything from /home/ to sda1). Then you'd have a 94G root partition, which is *enormous*, and a 371G home partition.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
However, a *much much* easier approach would be to just make a new linux (e.g., ext4) filesystem on sda1, and make that your home partition (move everything from /home/ to sda1). Then you'd have a 94G root partition, which is *enormous*, and a 371G home partition.
Well, I guess this is the best solution. Having an enormous root partition doesn't seem that bad!...
(inb4 I make another thread asking how to downsize root to free up space for my /home... )
Thnx
Highly recommend you copy the data off elsewhere (rsync), once you verify it is safely backed-up, repartition the device, format, and copy back.
I think this is probably the best approach here. I need to learn more about what goes where anyway - as it seems like I made my root a tad too large.
Thnx
Offline
(inb4 I make another thread asking how to downsize root to free up space for my /home... )
This also wouldn't work with your current partition layout. But really these are huge partitions. Take a moment to consider what is going to take up space. Here's an alternative: make sda1 a meda or data storage partition (as this is almost certainly what is taking up lots of space). Then shrink sda3 to a reasonable root partition size (e.g., 20G) then create a 74G home partition as sda4. Sda1 can then be mounted wherever you like including under /mnt or /media or under your home partition at ~/music, or ~/media, or ~/pr0n ... whatever it is that's using all that space.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Sda1 can then be mounted wherever you like including under /mnt or /media or under your home partition at ~/music, or ~/media, or ~/pr0n ... whatever it is that's using all that space.
Is 456 G enough for pr0n ![]()
Offline
Trilby wrote:Sda1 can then be mounted wherever you like including under /mnt or /media or under your home partition at ~/music, or ~/media, or ~/pr0n ... whatever it is that's using all that space.
Is 456 G enough for pr0n
I didn't list my other disks that only exists for that purpose.. ![]()
Xelathur wrote:(inb4 I make another thread asking how to downsize root to free up space for my /home... )
This also wouldn't work with your current partition layout. But really these are huge partitions. Take a moment to consider what is going to take up space. Here's an alternative: make sda1 a meda or data storage partition (as this is almost certainly what is taking up lots of space). Then shrink sda3 to a reasonable root partition size (e.g., 20G) then create a 74G home partition as sda4. Sda1 can then be mounted wherever you like including under /mnt or /media or under your home partition at ~/music, or ~/media, or ~/pr0n ... whatever it is that's using all that space.
I believe I will do this, just to have it slightly cleaner. Thanks for your assistance Trilby
Offline