[SOLVED] I have corrupted the partition table.

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] I have corrupted the partition table.

Postby nigelc » Mar 26th, '22, 06:26

Hello,

I have corrupted the partition table.
I am trying to get it back to what it was.
How do change back.
This what it is now
Code: Select all
[nigel@localhost ~]$ df
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs         12G     0   12G   0% /dev
tmpfs            12G     0   12G   0% /dev/shm
tmpfs            12G  1.2M   12G   1% /run
/dev/sda5        36G  6.4G   27G  20% /
tmpfs            12G   52K   12G   1% /tmp
/dev/sda1       297M  168K  297M   1% /boot/EFI
/dev/sda7        70G  1.1G   69G   2% /home

[code]

[nigel@localhost ~]$
[code]
Do I need /boot/EFI>
Do I use parted?. This was done using The Magiea partitiion editor.
I did not have any SWAP as it has lots of ram. {24gig}

I just wanted
/dev/sda1 /
/dev/sdb2/home


Just 2 partitions


Thanx Nigel
Last edited by nigelc on Mar 29th, '22, 06:21, edited 2 times in total.
nigelc
 
Posts: 266
Joined: Aug 28th, '11, 09:35

Re: I have corrupted the partition table.

Postby sturmvogel » Mar 26th, '22, 08:59

This is completely normal and needed. It is really easy to find an explanation what tmpfs is (even on Wikipedia). And /boot/EFI is for your bootloader.

BTW 'lsblk' or 'lsblk -f' are better commands to show partitions.
sturmvogel
 
Posts: 739
Joined: Jul 30th, '12, 00:39

Re: I have corrupted the partition table.

Postby JoesCat » Mar 26th, '22, 22:06

Do I need /boot/EFI>
Do I use parted?. This was done using The Mageia partition editor.
I did not have any SWAP as it has lots of ram. {24gig}


If your computer BIOS is setup to require UEFI boot, then yes, you also need /boot/EFI
The BIOS first goes and looks here, does a checksum, finds the checksum agrees, and then continues to run the next sequence of bootup found in /boot/EFI.
If you change the BIOS to boot legacy mode, then you can reduce it down by removing /boot/EFI.
Seeing that you have {24gig} of RAM, implies you have a modern computer, and I would recommend do_not use legacy mode.
legacy mode may be easier to understand if you used it in the past, but it has limitations, while the UEFI BIOS brings extra features that are of benefit to modern computers, therefore recommend leaving your computer set to the more modern UEFI mode.
Your computer might not have legacy BIOS mode, which is OK.
You should expect to see /dev/sda1/ partition for /boot/EFI

Because your harddrive is larger than 2 or 4GB, your larger partitions will begin at /dev/sda5......

Not having SWAP sounds fine here. The majority of users are unlikely going to need it when they have 24GB of RAM available.
If you had 4GB or 8GB of RAM, it could be of benefit to have some SWAP spill-over if you ran your computer as part of a business, with large amounts of data to process (example, graphics, video, databases).

The Mageia partition editor made good assumptions and did a good job here.
User avatar
JoesCat
 
Posts: 177
Joined: Sep 15th, '11, 04:27
Location: Richmond, BC, Canada

Re: I have corrupted the partition table.

Postby sturmvogel » Mar 26th, '22, 22:48

/dev/sda6 is the swap partition. This should be shown when you use the 'lsblk' command. And it is well documented that Mageias drakdisk creates a swap partition if the available disk space is above 50GB.

JoesCat wrote:Not having SWAP sounds fine here. The majority of users are unlikely going to need it when they have 24GB of RAM available.
If you had 4GB or 8GB of RAM, it could be of benefit to have some SWAP spill-over if you ran your computer as part of a business, with large amounts of data to process (example, graphics, video, databases).

Nope. I can name you internet sites (mainly picture collections) where your computer runs out of RAM even if you have 32 or 64GB and you will need swap.
sturmvogel
 
Posts: 739
Joined: Jul 30th, '12, 00:39

Re: I have corrupted the partition table.

Postby JoesCat » Mar 27th, '22, 02:18

I noticed the missing /dev/sda6 but forgot swap doesn't show with command df
Good catch - Thanks.

My preference is also to run a SWAP too, but what appears to look like a 120GB ssd, there doesn't appear much room left after adding a SWAP at 1x or 2x RAM (df doesn't show how big the drive is). I agree, some activities like highly-detailed pictures, 4K videos, 3Dcad, etc., will certainly eat up RAM.
User avatar
JoesCat
 
Posts: 177
Joined: Sep 15th, '11, 04:27
Location: Richmond, BC, Canada

Re: I have corrupted the partition table.

Postby morgano » Mar 27th, '22, 12:08

There are performance benefits when swap space is enabled, even when you have more than enough ram.
https://haydenjames.io/linux-performanc ... wap-space/
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1489
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: I have corrupted the partition table.

Postby nigelc » Mar 28th, '22, 02:55

Code: Select all
[nigel@localhost ~]$
[nigel@localhost ~]$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 111.8G  0 disk
├─sda1   8:1    0 297.1M  0 part /boot/EFI
├─sda2   8:2    0     1K  0 part
├─sda5   8:5    0  35.9G  0 part /
├─sda6   8:6    0     4G  0 part [SWAP]
└─sda7   8:7    0  71.6G  0 part /home
sdb      8:16   0   1.8T  0 disk
└─sdb1   8:17   0   1.8T  0 part /run/media/nigel/caaea056-7321-4e0a-a2bc-3e2
sr0     11:0    1  1024M  0 rom 
[nigel@localhost ~]$


Disk /dev/sdb: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: ST2000DM001-1ER1
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: 0x0008a67f

Device     Boot Start        End    Sectors  Size Id Type
/dev/sdb1  *     2048 3907024064 3907022017  1.8T 83 Linux
[root@localhost ~]# ^C
[root@localhost ~]#
Disk /dev/ram15: 31.25 MiB, 32768000 bytes, 64000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/sda: 111.79 GiB, 120034123776 bytes, 234441648 sectors
Disk model: Samsung SSD 840
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: 0x00037954

Device     Boot    Start       End   Sectors   Size Id Type
/dev/sda1  *        2048    610469    608422 297.1M ef EFI (FAT-12/16/32)
/dev/sda2         614376 234436544 233822169 111.5G  5 Extended
/dev/sda5         614400  75955319  75340920  35.9G 83 Linux
/dev/sda6       75958272  84341249   8382978     4G 82 Linux swap / Solaris
/dev/sda7       84344832 234436544 150091713  71.6G 83 Linux


Disk /dev/sdb: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: ST2000DM001-1ER1
[roott
Last edited by isadora on Mar 28th, '22, 08:09, edited 1 time in total.
Reason: Please place command-output between [CODE]-tags, to improve readability, thanks ahead!!! ;)
nigelc
 
Posts: 266
Joined: Aug 28th, '11, 09:35

Re: I have corrupted the partition table.

Postby doktor5000 » Mar 28th, '22, 16:56

And is your original problem now solved?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: I have corrupted the partition table.

Postby nigelc » Mar 29th, '22, 07:57

I have put {SOLVED, but it has gone the wrong place.
nigelc
 
Posts: 266
Joined: Aug 28th, '11, 09:35

Re: [SOLVED] I have corrupted the partition table.

Postby isadora » Mar 29th, '22, 11:21

Fixed it. ;)
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2765
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: [SOLVED] I have corrupted the partition table.

Postby nigelc » Apr 29th, '22, 09:54

No, the original problem is not fixed.
I would like to have just 2 drives no SWAP.
This was caused by the installing software.
.
nigelc
 
Posts: 266
Joined: Aug 28th, '11, 09:35

Re: [SOLVED] I have corrupted the partition table.

Postby doktor5000 » Apr 29th, '22, 16:47

Installing software does not change the partitioning. If you want to move the content from your /home from /dev/sda7 to the other disk, /dev/sdb then that is certainly possible but can be a bit tricky if you've never done that before.

Please show the current output from lsblk again, and mention what you want to achieve.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] I have corrupted the partition table.

Postby nigelc » Apr 30th, '22, 04:44

I reinstalled the whole thing using the mageia discs.

Code: Select all
[nigel@localhost ~]$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 111.8G  0 disk
├─sda1   8:1    0 297.1M  0 part /boot/EFI
├─sda2   8:2    0     1K  0 part
├─sda5   8:5    0  35.9G  0 part /
├─sda6   8:6    0     4G  0 part [SWAP]
└─sda7   8:7    0  71.6G  0 part /home
sdb      8:16   0   1.8T  0 disk
└─sdb1   8:17   0   1.8T  0 part
sr0     11:0    1  1024M  0 rom 
[nigel@localhost ~]$



How do i add attachment?
I think You put on a another site. I have forgotten where.
I have A picture of the bios boot device.
Last edited by doktor5000 on Apr 30th, '22, 17:18, edited 1 time in total.
Reason: fixed code tags
nigelc
 
Posts: 266
Joined: Aug 28th, '11, 09:35

Re: [SOLVED] I have corrupted the partition table.

Postby morgano » Apr 30th, '22, 08:02

nigelc wrote:I would like to have just 2 drives no SWAP.


Could you expand that please?

I.e do you want more space for /home by using both drives?
You i could use LVM then.

And why not swap??
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1489
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] I have corrupted the partition table.

Postby doktor5000 » Apr 30th, '22, 17:19

If you reinstalled, why not simply reinstall again and partition how you want your partitioning to look like. I don't really understand.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] I have corrupted the partition table.

Postby nigelc » May 7th, '22, 07:10

I still cannot boot from anything except the fitst hard disc.
I manged to get a picture
How do II send a picture of it

It says the l picture ity to big.


nigel.
nigelc
 
Posts: 266
Joined: Aug 28th, '11, 09:35

Re: [SOLVED] I have corrupted the partition table.

Postby sturmvogel » May 7th, '22, 13:10

nigelc wrote:I am trying to get it back to what it was.

nigelc wrote:I would like to have just 2 drives no SWAP.

nigelc wrote:I still cannot boot from anything except the fitst hard disc.


This is the complete information that you provided until now. This informations don't make any sense. Nobody can read your mind or sits next to you. Maybe you could start over and describe in full sentences what do you want to achive? You got already tips from doktor5000 that you can do custom partitioning (https://doc.mageia.org/installer/8/en/content/diskPartitioning.html#diskdrake). So maybe start like this:
- what do you want to achive?
- what is the starting condition?
- what did you do to achive your goal (describe your steps)?
- what is the result?
- ...

nigelc wrote:How do II send a picture of it
It says the l picture ity to big.
nigel.

You can attach pictures from the forum editor. If the file is to big, use an other format for your picture (like *.png or whatever), or compress/export it via an image editor like gimp or any other.
Screenshot_20220507_130647.png
Screenshot_20220507_130647.png (93.22 KiB) Viewed 2620 times
sturmvogel
 
Posts: 739
Joined: Jul 30th, '12, 00:39


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest