fdisk tells the disk is still NTFS, installation for RHEL7 tells its ext4?
Hello!
Strugling to install RHEL7 on my server and all is fine until I need to add more disks to it.
Have done ALL right when using fdisk and saves it with W, also the mkfs -t ext4 /dev/DISK.
Rebooting the server, run a check and the fdisk tells the disk is still HPFS/NTFS/exFAT, do a new install of RHEL7 and marks the large disk and reclaiming the space and this ones tells me the disk is ext4.
What is wrong? And what have I missed? Are doing a new install and will post the output later. :)
Cheers
Pontus
Responses
Hi Pontus - I am guessing at this point, but it sounds like you did not "toggle" the partition type using Fdisk
# fdisk /dev/sdb
t
1
83
w
Also - I would recommend LVM (or XFS - RHEL 7 default). If you go the LVM route, use 8e rather than 83.
You may also like using parted.
parted -s /dev/sdb mklabel gpt mkpart primary ext3 0 100% set 1 lvm on
(I need to get more familiar with RHEL 7 I think ;-)
EDIT: I forgot the ext3 in my parted command (above)
Technically I believe your disk is under the size limitation for msdos disk labels. However, I would really consider using GPT labels.
This person has a very nice write-up
http://administratosphere.wordpress.com/2011/03/29/dos-partitions-fdisk-and-the-2tb-limit/
which refers to:
http://workingdirectory.net/posts/2010/two-tb-disks/
Based on those 2 pages, I would change my parted command a bit (change starting block and FS-type)
parted -s /dev/sdb mklabel gpt mkpart primary xfs 4096 100% set 1 lvm on
TIP: you can enclose your responses in 3 x tilde's "~~~" to keep the formatting from command output.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
