Sponsored Content
Operating Systems BSD OpenBSD fdisk - Linux fdisk compatibility ? Post 302756613 by RudiC on Wednesday 16th of January 2013 07:25:35 AM
Old 01-16-2013
The first partition table(s) has the correct - whatever this means - standard structure as introduced, I think, by Microsoft (?) centuries ago. Which is boot sector with partition entries, one of which points to a chain of partition tables each consisting of one entry and a link entry.
I've spent ages fiddling around with non-standard structures in extended partitions without any luck, esp. when it comes to coexistence of several OSs on the same disk.
On the other hand, linux should at least recognize the partition entries in the boot sector of your experiment. Mysterious. Not sure what the zero disk identifier does.
Did you try to use another partition tool (cfdisk, parted, sfdisk)? Did you try to read the sectors binarily (od, hexdump)?

BTW - you are fdisking sdc in your first quote and sdb in the second...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

(c)fdisk and RedHat 7.2

I recently installed RedHat 7.2, and cannot find any tools to partition the disks other than during the install. I did a find from / for fdisk and cfdisk, neither turned up. I looked in the RPM directories on the CD's, again no good. What rpm contains a partition management tool? (1 Reply)
Discussion started by: 98_1LE
1 Replies

2. UNIX for Dummies Questions & Answers

Using fdisk in scripts

Hi ! I need to create large amount of portions for database in Linux. Untill now I've used fdisk for manual creation of chunks and changing thei? file system type. Now I want to write script for create them automatically. I think I'm not the first who deal with that problem! Thank you for... (1 Reply)
Discussion started by: Frank_a
1 Replies

3. Solaris

using fdisk

how do i know my disk partion using fdisk (4 Replies)
Discussion started by: seyiisq
4 Replies

4. Red Hat

FDISK problems

OS= Fedora 10 I have a secondary 250GB disk of which I created a 50G partition on to try and set-up an LFS system. I finished with the LFS system and now I want to destroy the partition and reclaim all of the 250GB. So i simply ran fdisk /dev/sdb and deleted the 2 Linux partitions ( one 83 and... (2 Replies)
Discussion started by: woodson2
2 Replies

5. Shell Programming and Scripting

HEREDOC with fdisk

Hi folks What I'm trying is to build a partitioning script. I can pass a HEREDOC to fdisk just fine. Like this: fdisk /dev/sda << EOF p q EOF but I don't know how to put that HEREDOC into a varible to pass it to fdisk. This is what I have tried so far (no luck) #!/bin/bash ... (3 Replies)
Discussion started by: latenite
3 Replies

6. UNIX for Dummies Questions & Answers

Fdisk v/s parted

Just started understanding linux filesystem and partition utilities. I was going though some video tutorials by CBT nuggets and the author was cursing fdisk as fuzzy tool and recommending to use parted instead. In our job environment i have seen almost every one using fdisk utility for... (1 Reply)
Discussion started by: pinga123
1 Replies

7. Solaris

fdisk

Hi All, fdisk -l in linux equals in fdisk option in Solaris Thanks.......... (2 Replies)
Discussion started by: pvkarthykeyan
2 Replies

8. UNIX for Dummies Questions & Answers

Analyse this fdisk -l

Hi, Someone please analyse the following o/p of fdisk -l and tell me what it means for /dev/sda, /dev/sdb, /dev/sdc .... Disk /dev/sda: 53.6 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start ... (5 Replies)
Discussion started by: stunn3r
5 Replies

9. UNIX for Advanced & Expert Users

Linux fdisk question (Oracle Enterprise Linux)

OS: Oracle Enterprise Linux 6.2 Hypervisor: VMWare workstation 9 I created a VM and attached a 7gb virtual disk to it. Using fdisk , I partioned the disk like below. The filesystems mounted on this is working fine. But I am seeing the message Partition n does not end on cylinder boundary.... (2 Replies)
Discussion started by: kraljic
2 Replies

10. UNIX for Dummies Questions & Answers

RAID autodetect in fdisk -l

Hello, Please refer to the below output: # fdisk -l /dev/sda Disk /dev/sda: 598.9 GB, 598999040000 bytes 255 heads, 63 sectors/track, 72824 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * ... (1 Reply)
Discussion started by: admin_db
1 Replies
CFDISK(8)							 GNU fdisk Manual							 CFDISK(8)

NAME
GNU fdisk, lfdisk, gfdisk - manipulate partition tables on a hard drive SYNOPSIS
fdisk [options] [device] DESCRIPTION
fdisk is a disk partition manipulation program, which allows you to create, destroy, resize, move and copy partitions on a hard drive using a menu-driven interface. It is useful for organising the disk space on a new drive, reorganising an old drive, creating space for new oper- ating systems, and copying data to new hard disks. For a list of the supported partition types, see the --list-partition-types option below. It comes in two variants, gfdisk and lfdisk. Lfdisk aims to resemble Linux fdisk 2.12, while gfdisk supports more advanced disk operations, like resizing the filesystem, moving and copying partitions. When starting fdisk, the default is to run gfdisk. OPTIONS
-h, --help displays a help message. -v, --version displays the program's version. -L, --linux-fdisk turns on Linux fdisk compatibility mode. This is the same as running lfdisk. -G, --gnu-fdisk turns off Linux fdisk compatibility mode. -i, --interactive where necessary, prompts for user intervention. -p, --script never prompts for user intervention. -l, --list lists the partition table on the specified device and exits. If there is no device specified, lists the partition tables on all detected devices. -r, --raw-list displays a hex dump of the partition table of the disk, similar to the way Linux fdisk displays the raw data in the partition table. -u, --sector-units use sectors, instead of cylinders for a default unit. -s, --size=DEVICE prints the size of the partition on DEVICE is printed on the standard output. -t, --list-partition-types displays a list of supported partition types and features. The following options are available only to lfdisk. -b, --sector-size=SIZE Specify the sector size of the disk. Valid values are 512, 1024 and 2048. Should be used only on older kernels, which don't guess the correct sector size. -C, --cylinders=CYLINDERS Specify the number of cylinders of the disk. Currently does nothing, it is left for Linux fdisk compatibility. -H, --heads=HEADS Specify the number of heads of the disk. Reasonable values are 255 or 16. -S, --sectors=SECTORS Specify the number of sectors per track. A reasonable value is 63. BUGS
Before editing a BSD disklabel, the partition with the disklabel should already exist on the disk and be detected by the OS. If you have created a BSD-type partition, you need to write the changes to the disk. If fdisk fails to notify the OS about the changes in partition ta- ble, you need to restart your computer. As fdisk tries to guess the device holding the BSD disklabel, it might fail to edit it at all, even if the OS has detected it. In this case you are adviced to simply open the device with fdisk directly. It is possible that it doesn't work on some operating systems. Getting the size of a partition with -s might fail, if fdisk fails to guess the disk device, for the same reasons as with the previous bug. SEE ALSO
mkfs(8), cfdisk(8), parted(8) The fdisk program is fully documented in the info(1) format GNU fdisk User Manual manual. fdisk 18 August, 2006 CFDISK(8)
All times are GMT -4. The time now is 11:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy