You are not logged in.
Pages: 1
"parted" shows my partition table as follows:
Number  Start   End     Size    Type      File system     Flags
 1      1049kB  106MB   105MB   primary   ntfs            boot
 2      106MB   64.9GB  64.8GB  primary   ntfs
 4      64.9GB  456GB   391GB   extended                  lba
 8      64.9GB  96.3GB  31.4GB  logical   ext4
 9      96.3GB  101GB   4277MB  logical   linux-swap(v1)
 7      101GB   105GB   4273MB  logical   linux-swap(v1)
 5      105GB   327GB   222GB   logical   ntfs
 6      327GB   456GB   129GB   logical   ntfs
 3      456GB   500GB   44.4GB  primary   ext4  While fdisk shows my partition table as follows:
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848   126852290    63322721+   7  HPFS/NTFS/exFAT
/dev/sda3       890126748   976772663    43322958    7  HPFS/NTFS/exFAT
/dev/sda4       126853118   890123492   381635187+   f  W95 Ext'd (LBA)
/dev/sda5       204812685   638648009   216917662+   7  HPFS/NTFS/exFAT
/dev/sda6       638648073   890123492   125737710    7  HPFS/NTFS/exFAT
/dev/sda7       196450304   204795903     4172800   82  Linux swap / Solaris
/dev/sda8       126853120   188086271    30616576   83  Linux                                                                                                                                  
/dev/sda9       188088320   196442111     4176896   82  Linux swap / Solaris                                                                                                                   
                                                                                                                                                                                               
Partition table entries are not in disk order                                                                                                                                                  I have two linux partition installed at
/dev/sda3 -> Arch Liuxx
/dev/sda8 -> Ubuntu.
GRUB is installed at ubuntu (version 2 grub).
 - First of all, why is fdisk not able to detect a ext4 partition. It only shows one partition as Linux ie /dev/sda8.
 - When I try to install grub by booting to live CD and I type $root (hd0,3), it shows unknown partition 0xf. Even if I use tabs to do autocomplete, I get this 
grub> root (hd0,
 Possible partitions are:
   Partition num: 0,  Filesystem type unknown, partition type 0x7
   Partition num: 1,  Filesystem type unknown, partition type 0x7
   Partition num: 2,  Filesystem type unknown, partition type 0x7
   Partition num: 4,  Filesystem type unknown, partition type 0x7
   Partition num: 5,  Filesystem type unknown, partition type 0x7
   Partition num: 6,  Filesystem type unknown, partition type 0x82
   Partition num: 7,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 8,  Filesystem type unknown, partition type 0x82
grub> root (hd0,God knows why it shows partition number 7 as ext2fs. I cannot choose either 8 or 3 partition
grub> root (hd0,3)
 Filesystem type unknown, partition type 0xf
grub> root (hd0,8)
 Filesystem type unknown, partition type 0x82Also, I need to install grub on /dev/sda3 (my arch linux partition) which is currently on UBUNTU's partition so its also not able to find any boot files if I try to mount arch partition and do $root-install --root-directory=/mnt/myarchmounted --recheck /dev/sda.
So, how should I proceed?
TL/DR: I want a way to
 - Format ubuntu partition and remove it completely (including its own grub)
 - Install GRUB on Arch's partition, so that I can boot it after ubuntu's partition is removed.
 
My blog:-
http://blog.abhijeetr.com
Offline
hi
do not use fdisk...
from fdisk man-page
fdisk does not understand GUID partition tables (GPTs) and it is not designed for large partitions.  In these cases, use the more  advanced  GNU   parted(8).
Offline
"parted" shows my partition table as follows:
Number Start End Size Type File system Flags 1 1049kB 106MB 105MB primary ntfs boot 2 106MB 64.9GB 64.8GB primary ntfs 4 64.9GB 456GB 391GB extended lba 8 64.9GB 96.3GB 31.4GB logical ext4 9 96.3GB 101GB 4277MB logical linux-swap(v1) 7 101GB 105GB 4273MB logical linux-swap(v1) 5 105GB 327GB 222GB logical ntfs 6 327GB 456GB 129GB logical ntfs 3 456GB 500GB 44.4GB primary ext4While fdisk shows my partition table as follows:
Device Boot Start End Blocks Id System /dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT /dev/sda2 206848 126852290 63322721+ 7 HPFS/NTFS/exFAT /dev/sda3 890126748 976772663 43322958 7 HPFS/NTFS/exFAT /dev/sda4 126853118 890123492 381635187+ f W95 Ext'd (LBA) /dev/sda5 204812685 638648009 216917662+ 7 HPFS/NTFS/exFAT /dev/sda6 638648073 890123492 125737710 7 HPFS/NTFS/exFAT /dev/sda7 196450304 204795903 4172800 82 Linux swap / Solaris /dev/sda8 126853120 188086271 30616576 83 Linux /dev/sda9 188088320 196442111 4176896 82 Linux swap / Solaris Partition table entries are not in disk orderI have two linux partition installed at
/dev/sda3 -> Arch Liuxx
/dev/sda8 -> Ubuntu.GRUB is installed at ubuntu (version 2 grub).
- First of all, why is fdisk not able to detect a ext4 partition. It only shows one partition as Linux ie /dev/sda8.
Type code of /dev/sda3 is wrong, it should be 0x83, not 0x07 (type code for FAT/NTFS partitions)
- When I try to install grub by booting to live CD and I type $root (hd0,3), it shows unknown partition 0xf. Even if I use tabs to do autocomplete, I get this
grub legacy numbers partitions from 0 , wherein (hd0,3) corresponds to /dev/sda4 (the extended partition in your disk). IN your case you should try (hd0,2) for /dev/sda3 (after changing the part type code to 0x83)
God knows why it shows partition number 7 as ext2fs. I cannot choose either 8 or 3 partition
grub> root (hd0,3) Filesystem type unknown, partition type 0xf grub> root (hd0,8) Filesystem type unknown, partition type 0x82
(hd0,7) == /dev/sda8 == ext4
(hd0,3) == /dev/sda4 == extended part
(hd0,8) == /dev/sda9 == linux swap
Also, I need to install grub on /dev/sda3 (my arch linux partition) which is currently on UBUNTU's partition so its also not able to find any boot files if I try to mount arch partition and do $root-install --root-directory=/mnt/myarchmounted --recheck /dev/sda.
So, how should I proceed?
TL/DR: I want a way to
- Format ubuntu partition and remove it completely (including its own grub)
- Install GRUB on Arch's partition, so that I can boot it after ubuntu's partition is removed.
Your question is not clear. But you can boot into Arch, install its grub2 package (recommended over grub legacy), install grub2 to /boot in Arch, and finally format ubuntu completely. Follow the Archwiki GRUB2 page. It explains everything.
Offline
hi
do not use fdisk...
from fdisk man-page
fdisk does not understand GUID partition tables (GPTs) and it is not designed for large partitions. In these cases, use the more advanced GNU parted(8).
His disk is MBR, not GPT. So using fdisk in this case is perfectly fine.
Offline
It will take a week's time as it was my friend's computer & I am on a vacation now. I will post again to this post when I try stuff thats suggested.
Last edited by shadyabhi (2011-10-24 07:27:22)
My blog:-
http://blog.abhijeetr.com
Offline
Pages: 1