Find the answer to your Linux question:
Results 1 to 7 of 7
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    how to set up and optimize a partition - table?


    on a Akoya-notebook - see the signature - i have freshly installed OpenSuse Leap42.1

    how to check the partition-table - and how to optimize it: We could start with getting:

    the technical data of the notebook.
    Display: 15.6" solution: 1366 x 768 ( WXGA )
    cpu AMD Athlon II X2 P320 /2.1 GHz
    Grafic: ATI Mobility Radeon HD 5470
    HDD 500 GB RAM: 4 GB
    the notebook was sold with: Microsoft Windows 7 Home Premium 32-Bit, Microsoft Windows 7 Home Premium 64-Bit

    but i never ever used it - you will see that the hdd is partitioned accordingly.

    so i guess that i can optimize all a bit ...


    Code:
    
    sudo fdisk -l
    
    martin@linux-0f5x:~> sudo fdisk -l
    
    Festplatte /dev/sda: 465,8 GiB, 500107862016 Bytes, 976773168 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    Festplattenbezeichnungstyp: dos
    Festplattenbezeichner: 0xb8fa3ecd
    
    Device     Boot     Start       End   Sectors   Size Id Type
    /dev/sda1              63   8385929   8385867     4G 82 Linux swap / Solaris
    /dev/sda2  *      8385930   8594774    208845   102M 83 Linux
    /dev/sda4         8803620 976768064 967964445 461,6G  5 Extended
    /dev/sda5        21382578  42347339  20964762    10G 83 Linux
    /dev/sda6       159768576 976766975 816998400 389,6G 83 Linux
    /dev/sda7        42348544  91121663  48773120  23,3G 83 Linux
    /dev/sda8        91123712 159766527  68642816  32,7G 83 Linux
    
    Partitionstabelleneinträge sind nicht in Festplatten-Reihenfolge.
    
    Festplatte /dev/mmcblk0: 7,4 GiB, 7948206080 Bytes, 15523840 Sektoren
    Einheiten: Sektoren von 1 * 512 = 512 Bytes
    Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
    E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
    Festplattenbezeichnungstyp: dos
    Festplattenbezeichner: 0x00000000
    
    Device         Boot Start      End  Sectors  Size Id Type
    /dev/mmcblk0p1       8192 15523839 15515648  7,4G  b W95 FAT32
    
    martin@linux-0f5x:~>
    
    
    sudo sfdisk -l -uM
    
    
    martin@linux-0f5x:~> sudo sfdisk -l -uM
    
    Festplatte /dev/sda: 60801 Zylinder, 255 Köpfe, 63 Sektoren/Spur
    Einheiten: 1MiB = 1024*1024 Bytes, Blöcke von 1024 Bytes, Zählung
    beginnt bei 0
    
       Gerät  boot. Anfang Ende   MiB    #Blöcke   Id  System
    /dev/sda1         0+  4094-  4095-   4192933+  82  Linux Swap / Solaris
    /dev/sda2   *  4094+  4196-   102-    104422+  83  Linux
    /dev/sda3         0      -      0          0    0  Leer
    /dev/sda4      4298+ 476937- 472639- 483982222+   5  Erweiterte
    /dev/sda5     10440+ 20677- 10237-  10482381   83  Linux
    /dev/sda6     78012  476936  398925  408499200   83  Linux
    /dev/sda7     20678  44492  23815   24386560   83  Linux
    /dev/sda8     44494  78010  33517   34321408   83  Linux
    
    Festplatte /dev/mmcblk0: 242560 Zylinder, 4 Köpfe, 16 Sektoren/Spur
    sfdisk: Warnung: Die Partitionstabelle sieht aus, als wäre sie für
      C/H/S=*/81/10 (anstelle von 242560/4/16) erstellt worden.
    Für diese Auflistung wird diese Geometrie angenommen.
    Einheiten: 1MiB = 1024*1024 Bytes, Blöcke von 1024 Bytes, Zählung
    beginnt bei 0
    
       Gerät  boot. Anfang Ende   MiB    #Blöcke   Id  System
    /dev/mmcblk0p1         4   7579   7576    7757824    b  W95 FAT32
                    Anfang: (c,h,s) erwartet (10,9,3) gefunden (0,130,3)
                    Ende: (c,h,s) erwartet (1023,80,10) gefunden (966,80,10)
    /dev/mmcblk0p2         0      -      0          0    0  Leer
    /dev/mmcblk0p3         0      -      0          0    0  Leer
    /dev/mmcblk0p4         0      -      0          0    0  Leer
    martin@linux-0f5x:~>
    
    
    sudo parted -l
    
    
    
    martin@linux-0f5x:~> sudo parted -l
    root's password:
    Model: ATA Hitachi HTS54505 (scsi)
    Disk /dev/sda: 500GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Disk Flags:
    
    Number  Start   End     Size    Type      File system     Flags
     1      32,3kB  4294MB  4294MB  primary   linux-swap(v1)  type=82
     2      4294MB  4401MB  107MB   primary   ext3            boot, type=83
     4      4507MB  500GB   496GB   extended                  type=05
     5      10,9GB  21,7GB  10,7GB  logical   ext3            type=83
     7      21,7GB  46,7GB  25,0GB  logical   btrfs           type=83
     8      46,7GB  81,8GB  35,1GB  logical   xfs             type=83
     6      81,8GB  500GB   418GB   logical   ext4            type=83
    
    
    Model: SD SD08G (sd/mmc)
    Disk /dev/mmcblk0: 7948MB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Disk Flags:
    
    Number  Start   End     Size    Type     File system  Flags
     1      4194kB  7948MB  7944MB  primary  fat32        type=0b
    
    
    martin@linux-0f5x:~>
    
    
    
    
    
    martin@linux-0f5x:~> lsblk --output NAME,KNAME,TYPE,MOUNTPOINT,LABEL,UUID,PARTLABEL,PARTUUID,SIZE
    NAME        KNAME     TYPE MOUNTPOINT             LABEL UUID PARTLABEL PARTUUID   SIZE
    sda         sda       disk                                                      465,8G
    ├─sda1      sda1      part [SWAP]                                                   4G
    ├─sda2      sda2      part                                                        102M
    ├─sda4      sda4      part                                                          1K
    ├─sda5      sda5      part                                                         10G
    ├─sda6      sda6      part                                                      389,6G
    ├─sda7      sda7      part /boot/grub2/x86_64-efi                                23,3G
    └─sda8      sda8      part /home                                                 32,7G
    sr0         sr0       rom                                                        1024M
    mmcblk0     mmcblk0   disk                                                        7,4G
    └─mmcblk0p1 mmcblk0p1 part                                                        7,4G
    martin@linux-0f5x:~>
    what would you do to optimize ...!?

    well i guess that i do not need the msdos things here any more!
    see below.

    i think i can re-organize this!?


    Code:
    martin@linux-0f5x:~> sudo parted -l
    root's password:
    Model: ATA Hitachi HTS54505 (scsi)
    Disk /dev/sda: 500GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Disk Flags: 
    
    Number  Start   End     Size    Type      File system     Flags
     1      32,3kB  4294MB  4294MB  primary   linux-swap(v1)  type=82
     2      4294MB  4401MB  107MB   primary   ext3            boot, type=83
     4      4507MB  500GB   496GB   extended                  type=05
     5      10,9GB  21,7GB  10,7GB  logical   ext3            type=83
     7      21,7GB  46,7GB  25,0GB  logical   btrfs           type=83
     8      46,7GB  81,8GB  35,1GB  logical   xfs             type=83
     6      81,8GB  500GB   418GB   logical   ext4            type=83
    
    
    Model: SD SD08G (sd/mmc)
    Disk /dev/mmcblk0: 7948MB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Disk Flags: 
    
    Number  Start   End     Size    Type     File system  Flags
     1      4194kB  7948MB  7944MB  primary  fat32        type=0b
    Last edited by sayhello; 04-10-2016 at 10:40 AM.
    Akoya P 6512 15" OpenSuse 13.2: AMD Athlon X2 P320
    HP Notebook hp 14 r 103ng - running OpenSuse Leap 42.1
    Samsunng q 210, 12,1" OpenSuse 13.1: Intel® Core™ 2 Duo Proz. P8400 2,26 GHz 1066 MHz FSB 3 MB

  2. #2
    Just Joined!
    Join Date
    Apr 2016
    Posts
    31
    Debian testing Xfce is lighter and faster than opensuse. You can install Debian system to the 8GB mmc and 500GB hd is your home dir. With debian installer you can easily modify partitions.

  3. #3
    hello dear debianxfce

    many many thanks - will take your ideas into account.
    i am familar with opensuse - but on a sidenote; the notebook with the n3450 does not poweroff after shut-down.
    no (!!) system runs well - no ubuntu , opensuse leap42.1 mint 17xy runs well -
    only with opensuse 13.2 - the bug does not show.

    so i install this system - and will try out others - during the next time

    for that i thougth that i need some kind of dualboot.

    - opensuse 13.2 as the main system
    - others for testing

    should the GRUB be edited in some way? Should i do some preliminary works to preüpare the installlation!?
    Akoya P 6512 15" OpenSuse 13.2: AMD Athlon X2 P320
    HP Notebook hp 14 r 103ng - running OpenSuse Leap 42.1
    Samsunng q 210, 12,1" OpenSuse 13.1: Intel® Core™ 2 Duo Proz. P8400 2,26 GHz 1066 MHz FSB 3 MB

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,847
    >how to check the partition-table - and how to optimize it:
    Parted comes with option named "align-check" . It will check whether partitions are aligned properly for performance, you may want to give it try!

    (parted) align-check optimal 1
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  6. #5
    Just Joined!
    Join Date
    Apr 2016
    Posts
    31
    Quote Originally Posted by sayhello View Post
    for that i thougth that i need some kind of dualboot.
    I always use Debian Xfce when installing os to various pcs, no need for dualboot. Debian Xfce is famous for supporting multiple platforms and stability. Athlon X2 and core 2 are quite new platforms so Debian testing distribution can be used.

  7. #6
    hello dear debianxfce

    many many thanks for the reply - great to hear from you!

    Quote Originally Posted by debianxfce View Post
    I always use Debian Xfce when installing os to various pcs, no need for dualboot. Debian Xfce is famous for supporting multiple platforms and stability. Athlon X2 and core 2 are quite new platforms so Debian testing distribution can be used.


    well do you think that i need to have an EFI partition of something like 200Mb, so the system can boot.
    well - what do you think debianxfce - is this needed? - in other words: if i need a EFI-partition that would mean that this will remain on the hdd.
    if so - okay i will leave that on the hdd.

    what do you say - The rest can be wiped?!

    BTW - is there any good manual on allthat stuff - creating a partition-sheme. I would love to get it!

    in other words: can anybody reccomend a good online-tutorial or manual on the topic patitioning sheme /&table. Please advice.

    update.


    It is a good idea to make full backup of Windows and the efi partition, just in case.

    These threads are useful:

    [SOLVED] Installing Ubuntu only on new laptop with UEFI

    UEFI Installing - Tips[/QUOTE]


    will read through it all.


    well i can do some thing like this..


    example one - a bit sophisticated one:

    Code:
    ~> lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 465,8G 0 disk
    ├─sda1 8:1 0 156M 0 part /boot/efi
    ├─sda2 8:2 0 400M 0 part /boot
    └─sda3 8:3 0 465,2G 0 part
    └─cr_ata-ST500LT012-xxx_xxx-part3 254:0 0 465,2G 0 crypt
    ├─system-swap 254:1 0 2G 0 lvm [SWAP]
    ├─system-root 254:2 0 40G 0 lvm /
    └─system-home 254:3 0 423,2G 0 lvm /home
    this i cannot be created with gparted

    Code:
    └─cr_ata-ST500LT012-xxx_xxx-part3 254:0 0 465,2G 0 crypt
    ├─system-swap 254:1 0 2G 0 lvm [SWAP]
    ├─system-root 254:2 0 40G 0 lvm /
    └─system-home 254:3 0 423,2G 0 lvm /hom
    but this line looks interesting. ....

    Code:
    └─cr_ata-ST500LT012-xxx_xxx-part3 254:0 0 465,2G 0 crypt
    unfortunatley: Currently GParted supports operations such as creating, resizing, and deleting LVM Physical Volumes (PV)
    see the GParted Features. However it does not yet support operations on LVM Logical Volumes (LV).
    As such we will need to use other tools, such as lvm from the command line to work with LVs.


    but - as mentioned above this is a sophisticated one. a easier one is this.


    Code:
     /dev/sda, Load MBR with Grub
    1. /dev/sda1, Primary SWAP (4 GB)
    2. /dev/sda2, Primary EXT4 "/" openSUSE Partition zum booten (36-60 GB)
    3. /dev/sda3, Primary EXT4 "/home" das home directory (Rest of the hard disk)

    this second one does not use LVM and is easier to create

    what do you think!?
    Last edited by sayhello; 04-17-2016 at 03:34 PM.
    Akoya P 6512 15" OpenSuse 13.2: AMD Athlon X2 P320
    HP Notebook hp 14 r 103ng - running OpenSuse Leap 42.1
    Samsunng q 210, 12,1" OpenSuse 13.1: Intel® Core™ 2 Duo Proz. P8400 2,26 GHz 1066 MHz FSB 3 MB

  8. #7
    -->
    well the easier thing is to run this partition-sheme


    Code:
     /dev/sda, Load MBR with Grub
    1. /dev/sda1, Primary SWAP (4 GB)
    2. /dev/sda2, Primary EXT4 "/" openSUSE Partition zum booten (36-60 GB)
    3. /dev/sda3, Primary EXT4 "/home" das home directory (Rest of the hard disk)
    and yes:

    with GRUB we can go ahead - installing a first Linux and then having the option to install a second too.
    so i first of all need to do one thing. Install opensuse 13.2 first


    but the question of the day is: what to do with the old EFI partition on the Notebook -can this be wiped or not...


    in other words - what do i need to do with the following lines:

    Code:
    Device     	Start   	End   Sectors   Size Type
    /dev/sda1   	2048   1050623   1048576   512M EFI System
    /dev/sda2	1050624  84951039  83900416	40G Microsoft basic data

    regarding the EFI-Partition on the HDD _ see the following hints:

    this one is very good: system installation - Can I erase all partitions including EFI and install only Ubuntu? - Ask Ubuntu

    question: Can I erase all partitions including EFI and install only Ubuntu?

    Answer 1
    Yes, when you completely erase the disk, you can install ubuntu as the single operating system.
    When you can disable UEFI in BIOS (mostly you can) you even can install ubuntu in mbr mode.
    Boot from ubuntu install media, open GParted and create a new partition table - choose mbr.
    In case you can not disable UEFI and/or secure boot you as well can install ubuntu in EFI mode.
    Then the installer will create a new EFI partition where the GRUB boot loader will be installed.



    Answer 2
    You question is not completely clear to me. If you want to install Ubuntu in UEFI mode here is what you need to do :
    You will need to set your BIOS in UEFI mode and to create an UEFI bootable Ubuntu USB key.
    Follow this guide to create a UEFI bootable USB. Then simply run the Ubuntu installer;
    at step Installation Type, select Something Else and partition your disk as explained in this answer.
    If boot mode (UEFI or Legacy) does not matter for you simply install Ubuntu as usual. (Refer to this guide if needed)


    Answer 3
    You need to keep UEFI mode only if you want to install Ubuntu in UEFI mode. –

    see full text - a very good hint: system installation - Can I erase all partitions including EFI and install only Ubuntu? - Ask Ubuntu


    - this is very helpful!
    Last edited by sayhello; 04-17-2016 at 11:17 PM.
    Akoya P 6512 15" OpenSuse 13.2: AMD Athlon X2 P320
    HP Notebook hp 14 r 103ng - running OpenSuse Leap 42.1
    Samsunng q 210, 12,1" OpenSuse 13.1: Intel® Core™ 2 Duo Proz. P8400 2,26 GHz 1066 MHz FSB 3 MB

Posting Permissions

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