You are not logged in.
Pages: 1
my problem is after deleting a number (3) of primary partitions i ended up with 1
Device Boot Start End Sectors Size Id Type
/dev/sda4 * 2048 312580095 312578048 149.1G 83 Linuxi already tried renaming that one to sda1 but i get following problem, in fdisk expert mode there is an option to fix partitions order:
Expert command (m for help): f
Nothing to do. Ordering is correct already.
Failed to fix partitions order.i should add the system still thinks there are 4 so i'm not able to make another (primary) partition for a new OS
Command (m for help): n
All space for primary partitions is in use.can i somehow tell the partition table that there literally are no more partitions and that should be the number 1?
thx
Last edited by wersin (2016-05-31 16:44:52)
Offline
Offline
Not sure if you can do this while the partitions in question are mounted.
Offline
Not sure if you can do this while the partitions in question are mounted.
just tried live booting and unmounting the device still didn't work :S
Offline
How did you "delete" the partitions ?.
How big is the disk ?. Let's see the entire fdisk output - uneditted.
If you really are unable to get to unallocated space (I've never seen that for a single partition), probably the simplest is to delete that partition and re-allocate it as partition 1. Make sure you get the start correct. Maybe before delving to that, run this for us and post it - it's the raw partition table.
dd if=/dev/sda bs=1 skip=446 count=64 2>/dev/null | hexdump -e '4/2 "%04x " 2/4 "%12d " "\n" '(Added some formatting to save me having to do the hex math in my head)
Last edited by syg00 (2016-06-01 06:10:56)
Offline
How did you "delete" the partitions ?.
i just removed the 'old' ones and extended /dev/sda4
How big is the disk ?. Let's see the entire fdisk output - uneditted.
Disk /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 sectors
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: 0x83130216
Device Boot Start End Sectors Size Id Type
/dev/sda4 * 2048 312580095 312578048 149.1G 83 LinuxIf you really are unable to get to unallocated space (I've never seen that for a single partition), probably the simplest is to delete that partition and re-allocate it as partition 1. Make sure you get the start correct. Maybe before delving to that, run this for us and post it - it's the raw partition table.
dd if=/dev/sda bs=1 skip=446 count=64 2>/dev/null | hexdump -e '4/2 "%04x " 2/4 "%12d " "\n" '(Added some formatting to save me having to do the hex math in my head)
this is the output:
0000 0000 0000 0000 0 0
*
2080 0021 fe83 ffff 2048 312578048Offline
So if the disk is completely full, how do you expect to create other partition(s) ?.
In future provide all the relevant information in the initial post.
Offline
So if the disk is completely full, how do you expect to create other partition(s) ?.
the thing is its not completely full. sda is just extremely small (should it be this way), either way i wanted to get the disk space that sda4 is occupying
if you wanted to see that why not use df ?
df -h /dev/sda
Filesystem Size Used Avail Use% Mounted on
dev 3.9G 0 3.9G 0% /devthe sda4 output
df -h /dev/sda4
Filesystem Size Used Avail Use% Mounted on
/dev/sda4 147G 45G 101G 31% /Offline
Pages: 1