Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Best dual boot partition disk allocation?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 741
Location: Tokyo, Japan

PostPosted: Tue Apr 07, 2020 8:33 am    Post subject: Best dual boot partition disk allocation? Reply with quote

Hello everyone. I am preparing to do a Gentoo install on on a new box I picked up. It has been some time (10+yrs) since I last did an install. Anyway new hardware will probably bring new issues so please put up with my anticipated increase in questions over the next few days. Under lock-down so have TONS of time.

My previous installation is on a 1TB dual boot box. I partitioned it as follows:

Quote:
# fdisk -l /dev/sda
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: SAMSUNG HN-M101M
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x14317ff8

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
/dev/sda2 206848 212019199 211812352 101G 7 HPFS/NTFS/exFAT
/dev/sda3 212019200 1908707327 1696688128 809G f W95 Ext'd (LBA)
/dev/sda4 1908707328 1953521663 44814336 21.4G 2 XENIX root
/dev/sda5 212021248 230985727 18964480 9G 7 HPFS/NTFS/exFAT
/dev/sda6 230987776 231397375 409600 200M 83 Linux
/dev/sda7 231399424 1908707327 1677307904 799.8G 83 Linux

Partition table entries are not in disk order.


Quote:
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 100M 0 part
├─sda2 8:2 0 101G 0 part
├─sda4 8:4 0 21.4G 0 part

├─sda5 8:5 0 9G 0 part
├─sda6 8:6 0 200M 0 part
└─sda7 8:7 0 799.8G 0 part
└─root 253:0 0 799.8G 0 crypt
├─vg-root 253:1 0 30G 0 lvm /
├─vg-swap 253:2 0 9G 0 lvm [SWAP]
├─vg-var 253:3 0 10G 0 lvm /var
└─vg-home 253:4 0 750.8G 0 lvm /home
sdb 8:16 0 7.5G 0 disk
└─sdb1 8:17 0 7.5G 0 part
sr0 11:0 1 1024M 0 rom




It has worked well for me with one exception. At some point, 100GB was not enough for Win7. And I stored no data on that partition. I'm just talking about the system updates. It's crazy that only the OS grew that much.

The new machine is Win10 so I am wondering if anyone has experience with disk requirements for it. I'd like to allocate only what is truly needed if at all possible. I hate the idea of splitting the drive into 500GB parts because although I must dual boot...I rarely if ever am in the Windows system.

I also have run into problems with 30GB not being enough for portage on the Gentoo side. I wouldn't think that would be the case but it has happened enough that I should probably grow it. Thinking 50GB? Also can't remember why sda3 partition got out of sorts like that but didn't seem to have any negative effect that I could tell.

Since this is new hardware I think it might be best to try to do as clean an install as possible but wondering if there is an upside/downside to just DD'ing my current drive to the new one because they are both 1TB?

Thanks as always.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3282

PostPosted: Tue Apr 07, 2020 9:15 am    Post subject: Re: Best dual boot partition disk allocation? Reply with quote

Budoka wrote:
The new machine is Win10 so I am wondering if anyone has experience with disk requirements for it.

For size of ESP see https://wiki.gentoo.org/wiki/EFI_System_Partition#Size_considerations
Here is partition scheme still working with Windows10 (recently updated) and Gentoo:
Code:
Number  Start   End     Size    File system     Name                          Flags
 1      1049kB  99.6MB  98.6MB  fat32           EFI System Partition          boot, esp
 2      99.6MB  90.0GB  89.9GB                  Gentoo LVM
 3      90.0GB  110GB   20.0GB  ext4            Gentoo root (no LVM)
 4      110GB   128GB   18.0GB  linux-swap(v1)  swap
 5      128GB   128GB   16.8MB                  Microsoft reserved partition  msftres
 6      128GB   256GB   128GB   ntfs            Basic data partition          msftdata
 7      256GB   256GB   500MB   ntfs                                          hidden, diag
Code:
$ lsblk /dev/sda
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda            8:0    0 238.5G  0 disk
├─sda1         8:1    0    94M  0 part
├─sda2         8:2    0  83.7G  0 part
│ └─vg0-root 254:0    0  75.4G  0 lvm  /
├─sda3         8:3    0  18.6G  0 part
├─sda4         8:4    0  16.8G  0 part [SWAP]
├─sda5         8:5    0    16M  0 part
├─sda6         8:6    0 118.8G  0 part
└─sda7         8:7    0   477M  0 part

And it's regardless if Windows gets installed before or after Gentoo.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
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