Results 1 to 5 of 5

Thread: Disk partitions I want to remove, resize, shrink, reinstall Leap 15.3

  1. #1
    Join Date
    Apr 2018
    Location
    In S.E. Iowa, on the Mississippi River
    Posts
    968

    Default Disk partitions I want to remove, resize, shrink, reinstall Leap 15.3

    https://susepaste.org/33898171 This image shows the Gparted state of /dev/sdb which I want to change and where on the disk each partition is currently located.

    I would like to remove the xfs partition, the Leap partitions,
    Resize the Windows 7 partition to the 'front' of the drive. (Without data loss..... hopefully)
    Reinstall Leap 15.3 behind Windows 7.
    (maybe be able to not have an 'extended' section.)
    Eventually use the PATA drive (/dev/sda) as storage. It has 3 bad sectors).

    Possible?
    I know it will take a lot of time for /dev/sdb to get things done if it is possible to do. Will I need something other than Gparted or parted or fdisk?

    Code:
    fdisk -l
    Disk /dev/sda: 149.05 GiB, 160041885696 bytes, 312581808 sectors
    Disk model: WDC WD1600AAJB-0
    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: 0xfb30b87c
    
    DeviceBoot    Start      End  Sectors SizeIdType
    /dev/sda1            2048  20973567  20971520   10G 82 Linux swap / Solaris
    /dev/sda2  *     20973568 100665343  79691776   38G 83 Linux
    /dev/sda3       100665344 312581807 211916464  101G 83 Linux
    
    
    Disk /dev/sdb: 465.76 GiB, 500107862016 bytes, 976773168 sectors
    Disk model: ST500NM0011      
    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: 0x00000001
    
    DeviceBoot    Start      End  Sectors  SizeIdType
    /dev/sdb1              64    204863    204800   100M  7 HPFS/NTFS/exFAT
    /dev/sdb2          206848 214767615 214560768 102.3G 83 Linux
    /dev/sdb3       531282528 976769071 445486544 212.4G  7 HPFS/NTFS/exFAT
    /dev/sdb4       214769601 531282527 316512927 150.9G  f W95 Ext'd (LBA)
    /dev/sdb5       214769664 231546879  16777216     8G 82 Linux swap / Solaris
    /dev/sdb6  *    231548928 315435007  83886080    40G 83 Linux
    /dev/sdb7       315437056 531282527 215845472 102.9G 83 Linux
    
    Partition table entries are not in disk order.
    
    
    Disk /dev/sdc: 149.01 GiB, 160000000000 bytes, 312500000 sectors
    Disk model: ST3160815AS      
    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: 0x44b753a6
    
    DeviceBoot   Start      End  Sectors SizeIdType
    /dev/sdc1           2048  10487807  10485760    5G 82 Linux swap / Solaris
    /dev/sdc2  *    10487808  90179583  79691776   38G 83 Linux
    /dev/sdc3       90179584 312499999 222320416  106G 83 Linux
    Code:
    lsblk -f
    NAME   FSTYPE FSVER LABEL             UUID                                 FSAVAIL FSUSE% MOUNTPOINT
    sda                                                                                        
    ├─sda1 swap   1                       3cb7ceb0-f1a8-4aa8-921e-0cec9d4f39e1                 
    ├─sda2 ext4   1.0   PATA-root         34b30e42-2c86-45b9-b27e-cfe1aa7c7868                 
    └─sda3 ext4   1.0   PATA-home         997de06e-983c-40e0-9297-296e72284acf                 
    sdb                                                                                        
    ├─sdb1 ntfs         System Reserved   1A0CB3280CB2FE37                                     
    ├─sdb2 xfs                            c00c68ad-39da-4ac4-9836-dcbe1fbfca6d                 
    ├─sdb3 ntfs         Windows 7 64 Home ACB2B4EEB2B4BDE0                                     
    ├─sdb4                                                                                     
    ├─sdb5 swap   1                       438294c1-619b-4532-8786-e8ebc6283362                 
    ├─sdb6 ext4   1.0   root-Windrive     efccc6c6-5c0a-4875-8733-2942be05b872                 
    └─sdb7 ext4   1.0   home-Windrive     828fc63b-35fe-4a90-961f-e9f1adcab5d3                 
    sdc                                                                                        
    ├─sdc1 swap   1                       effdd0f4-9789-4254-8550-7708d9eb0d31                [SWAP]
    ├─sdc2 ext4   1.0   Root-SATA160      60d428c6-d739-45b2-b544-c2c797195af3   28.6G    18% /
    └─sdc3 ext4   1.0   Home-SATA160      079bb985-d65a-41dd-bcb9-e1c19e8e31e0   64.1G    33% /home
    sr0                                  
    HP Compaq desktop Leap15.2, Win10, Win7
    Toshiba laptops Leap15.2 & Win10, HP AiO Leap 15.2.
    I can now print with openSuSe Leap! Can Scan now, could be better!!
    I can backup my iPod and iPad with Windows, can't with Linux.(Will get there someday!)

  2. #2
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    3,810
    Blog Entries
    1

    Default Re: Disk partitions I want to remove, resize, shrink, reinstall Leap 15.3

    Quote Originally Posted by Bill_L View Post
    Will I need something other than Gparted or parted or fdisk?
    Code:
    DeviceBoot    Start      End  Sectors  SizeIdType
    /dev/sdb1              64    204863    204800   100M  7 HPFS/NTFS/exFAT
    /dev/sdb2          206848 214767615 214560768 102.3G 83 Linux
    /dev/sdb4       214769601 531282527 316512927 150.9G  f W95 Ext'd (LBA)
    /dev/sdb5       214769664 231546879  16777216     8G 82 Linux swap / Solaris
    /dev/sdb6  *    231548928 315435007  83886080    40G 83 Linux
    /dev/sdb7       315437056 531282527 215845472 102.9G 83 Linux
    /dev/sdb3       531282528 976769071 445486544 212.4G  7 HPFS/NTFS/exFAT
    I see no reason you couldn't do exactly the layout you want.

    When I repartition, I use a specific other (non-FOSS) tool, so can't speak to your tool selection.

    I would create a primary partition for Linux boot, then put the rest of linux within an extended. It's what usually do when not doing UEFI/GPT.
    Reg. Linux User 211409 *** multibooting since 1992
    Primary: 15.3, TW, 15.1 & 13.1 on Haswell @earthlink.net
    Secondary: eComStation (OS/2) &15.2 on i965P/Radeon
    Tertiary: Debian, Fedora, Mageia, more on Rocket Lake & older Intel, AMD, NVidia....

  3. #3
    Join Date
    Apr 2018
    Location
    In S.E. Iowa, on the Mississippi River
    Posts
    968

    Default Re: Disk partitions I want to remove, resize, shrink, reinstall Leap 15.3

    Quote Originally Posted by mrmazda View Post
    I see no reason you couldn't do exactly the layout you want.

    When I repartition, I use a specific other (non-FOSS) tool, so can't speak to your tool selection.

    I would create a primary partition for Linux boot, then put the rest of linux within an extended. It's what usually do when not doing UEFI/GPT.
    Since it is not EFI, how big a primary for Linux boot? Extended for swap, /, and /home not a problem.
    HP Compaq desktop Leap15.2, Win10, Win7
    Toshiba laptops Leap15.2 & Win10, HP AiO Leap 15.2.
    I can now print with openSuSe Leap! Can Scan now, could be better!!
    I can backup my iPod and iPad with Windows, can't with Linux.(Will get there someday!)

  4. #4
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    15,984
    Blog Entries
    3

    Default Re: Disk partitions I want to remove, resize, shrink, reinstall Leap 15.3

    Quote Originally Posted by Bill_L View Post
    Since it is not EFI, how big a primary for Linux boot? Extended for swap, /, and /home not a problem.
    I normally use 500M for "/boot". Currently, I am using 122M of that, but a kernel update will require more.

    If you plan on using "btrfs", then a separate "/boot" is not a good idea. I am using "ext4" for root and "ext2" for "/boot".
    openSUSE Leap 15.4; KDE Plasma 5.24.4;
    testing Tumbleweed.

  5. #5
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    3,810
    Blog Entries
    1

    Default Re: Disk partitions I want to remove, resize, shrink, reinstall Leap 15.3

    Quote Originally Posted by Bill_L View Post
    Since it is not EFI, how big a primary for Linux boot?
    You need to decide how many kernels you would have at most, then calculate something suitable. I have a 400M EXT2 /boot on one PC that has 4 installed TW kernels and is 56% in use. Its initrds average about 11,000K each.

    20+ years ago when I first installed RedHat 6 I remember the recommended or default size for /boot was 70M.
    Reg. Linux User 211409 *** multibooting since 1992
    Primary: 15.3, TW, 15.1 & 13.1 on Haswell @earthlink.net
    Secondary: eComStation (OS/2) &15.2 on i965P/Radeon
    Tertiary: Debian, Fedora, Mageia, more on Rocket Lake & older Intel, AMD, NVidia....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •