Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: deleting partitions on second disk ( the old boot disk)

  1. #1
    Join Date
    Feb 2010
    Location
    nh,usa
    Posts
    151

    Default deleting partitions on second disk ( the old boot disk)

    Leap V15-64 + KDE

    I just did a fresh install of Leap-15 onto a new disk.

    I'm mounting my old Leap-42.3 disk as a second disk and want to delete unused system partitions.

    Can I do this?

    When I boot, the OS "sees" the old Leap-42.3 disk and offers it as a boot option, dev/sdb8

    When looking at the second old disk with yast/partition, it appears as dev/sdb with sdb1, ..., sdb6, and types of WDC-WDC.., Linux Native, Linux LVM, Extended, and swap.

    Which of these may be deleted?

    In the end I want to edit the partition with my data and make it bigger.

    Does this make sense or am I flirting with disaster?

    Thank you.
    Regards,

    RIH5342

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,341
    Blog Entries
    14

    Default Re: deleting partitions on second disk ( the old boot disk)

    Use YaST's partitioner. Delete the partitions on /dev/sdb , then create new ones as you like, incl desired mountpoints. After doing so, run YaST's Bootloader module. It will detect the changes, and remove the 42.3 entries. Hit OK, reboot and done.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,193

    Default Re: deleting partitions on second disk ( the old boot disk)

    Quote Originally Posted by rih5342 View Post
    Leap V15-64 + KDE

    I just did a fresh install of Leap-15 onto a new disk.

    I'm mounting my old Leap-42.3 disk as a second disk and want to delete unused system partitions.

    Can I do this?
    Yes.

    When I boot, the OS "sees" the old Leap-42.3 disk and offers it as a boot option, dev/sdb8

    When looking at the second old disk with yast/partition, it appears as dev/sdb with sdb1, ..., sdb6, and types of WDC-WDC.., Linux Native, Linux LVM, Extended, and swap.

    Which of these may be deleted?
    It depends which have data you wish to keep, which partition(s) you wish to enlarge. If you show us content of etc/fstab/ on the sdb8 partition and output from 'gdisk -l /dev/sdb' we should be able to make recommendations.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  4. #4
    Join Date
    Feb 2010
    Location
    nh,usa
    Posts
    151

    Default Re: deleting partitions on second disk ( the old boot disk)

    Code:
       sudo gdisk -l /dev/sdc
    yields

    Code:
     GPT fdisk (gdisk) version 1.0.1
    
    Partition table scan:
      MBR: MBR only
      BSD: not present
      APM: not present
      GPT: not present
    
    
    ***************************************************************
    Found invalid GPT and valid MBR; converting MBR to GPT format
    in memory. 
    ***************************************************************
    
    Disk /dev/sdc: 3907029168 sectors, 1.8 TiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): 0C9BFB9A-DF7A-4F93-9447-53A4AE7146E1
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 3907029134
    Partitions will be aligned on 8-sector boundaries
    Total free space is 184590447 sectors (88.0 GiB)
    
    Number  Start (sector)    End (sector)  Size       Code  Name
       1            2048           1026047     500.0 MiB   8300  Linux filesystem
       5         1026050         1028095    1023.0 KiB  8E00  Linux LVM
       6       185616384      3907028991   1.7 TiB     8300  Linux filesystem
    I already deleted some partitions, like swap.

    By right clicking properties, I'm pretty sure my data is on dev/sdc6.

    This is the partition created by Leap 42.3 for user data, right?

    Just delete dev/sdc1 and dev/sdc5, then run the bootloader?

    Thank you.
    Regards,

    RIH5342

  5. #5
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,193

    Default Re: deleting partitions on second disk ( the old boot disk)

    Quote Originally Posted by rih5342 View Post
    By right clicking properties, I'm pretty sure my data is on dev/sdc6.

    This is the partition created by Leap 42.3 for user data, right?
    There's no need to guess. You can mount it and take a look. If yes, then....

    Just delete dev/sdc1 and dev/sdc5, then run the bootloader?
    ... go ahead.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  6. #6
    Join Date
    Feb 2010
    Location
    nh,usa
    Posts
    151

    Default Re: deleting partitions on second disk ( the old boot disk)

    What's the difference between dev/sdc2 extended type with 1.82 Tb and dev/sdc5 Linux native with 1,73 Tb?
    Regards,

    RIH5342

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,385

    Default Re: deleting partitions on second disk ( the old boot disk)

    Quote Originally Posted by rih5342 View Post
    What's the difference between dev/sdc2 extended type with 1.82 Tb and dev/sdc5 Linux native with 1,73 Tb?
    Go here https://en.opensuse.org/SDB%3ABasics...,_mount_points and read the part about Primary, Extended and Logical Partitions.
    Henk van Velden

  8. #8
    Join Date
    Feb 2010
    Location
    nh,usa
    Posts
    151

    Default Re: deleting partitions on second disk ( the old boot disk)

    Nice link, the extended partition overcomes the 4 partition limit.

    So it's OK to delete the dev/sdc2 extended type with 1.82 Tb, right?

    It's not mounted, and it's not encrypted.
    Regards,

    RIH5342

  9. #9
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,424

    Default Re: deleting partitions on second disk ( the old boot disk)

    Sure if it is not used and any partition in it are not being used you can remove it. But remember extended partitions are just containers for other partitions to get around the 4 partition limit on DOS partitioning and they them selves are not mounted but partition in them may be so be sure,

  10. #10
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,193

    Default Re: deleting partitions on second disk ( the old boot disk)

    Maybe it would help if you remember an extended partition cannot be formatted. Instead of one filesystem, which is what all others are intended for, the extended holds definitions of logical partitions, one sector for each. It's the logicals, minus the sectors allocated in making up the definitions, that actually use the space you see allocated to the extended.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

Page 1 of 2 12 LastLast

Posting Permissions

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