01-10-2009
Why do I have partitions with one command but not in gparted
Hi,
I used gparted in ubuntu to re partiton my slave hard drive so according to it I just have a logical drive with one partition in it.
But when I do sfdisk -l I get:
Device Boot Start End #cyls #blocks Id System
/dev/sdb1 0+ 9728 9729- 78148161 83 Linux
/dev/sdb2 0 - 0 0 0 Empty
/dev/sdb3 0 - 0 0 0 Empty
/dev/sdb4 0 - 0 0 0 Empty
What's with all the 0 sized partitions?
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
HI.
i installed solaris on a x86 machine and i only partition for 4 gig when it suppose to be 8. i only using 4 gig right now how can i start using the other four. please help, thanks in advance
Meeh (2 Replies)
Discussion started by: souldier
2 Replies
2. UNIX for Advanced & Expert Users
Sorry that this is slightly OT, but in my defence, I intend to install Linux (and probably others).
I just bought a new computer with Windows Vista preinstalled; and though there is no love between me and MS, I would like to keep it (I paid for it after all). I have 2 x 500GB HDD. The extra... (1 Reply)
Discussion started by: koppe
1 Replies
3. Ubuntu
Having just installed mint on my new raptor, I decided I was going to removel the old unix partition from my NTFS back up drive, and resize the NTFS partition to fill the full 500gigs instead of just 300.
While resizing the 300 gig to fill the full drive my computer shut off. When I booted back... (1 Reply)
Discussion started by: Methal
1 Replies
4. Solaris
Hi. I newbie in solaris.
I have server T2000 with 2 disk on raid.
I have partitions:
Part Tag Flag Cylinders Size Blocks
0 root wm 825 - 3916 15.00GB (3092/0/0) 31464192
1 swap wu 0 - 824 4.00GB ... (6 Replies)
Discussion started by: burdock
6 Replies
5. UNIX for Advanced & Expert Users
Hello masters,
Actually, i am user of Ubuntu, but I want to use Debian too.
I have a computer with a product key for w7 so i will use too, only for games...
The structure I have thought is the next with 1TiB of capacity.
Primary: 50 GB NTFS for W7
Extended:
Logical: 20 GB FAT32... (3 Replies)
Discussion started by: albertogarcia
3 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
My colleague says . On some boxes we have /var/,/opt are inside root and on some they are not on root they are separately. So please any one explain me what actually the difference is.
Thanks is Advance. (3 Replies)
Discussion started by: rama krishna
3 Replies
7. UNIX for Advanced & Expert Users
Which Live Linux Cd's have gparted? (1 Reply)
Discussion started by: cokedude
1 Replies
8. UNIX for Dummies Questions & Answers
Oracle Linux 6.6
To create Physical Volumes for Volume groups (LVM) , the disk need to be partitioned to LVM type ie. 'Linux LVM' type . In fdisk , this can done by choosing 8e when prompted for partition type.
Since it is easy to script (non-interactive), I use parted command rather than... (1 Reply)
Discussion started by: John K
1 Replies
SD(4) Linux Programmer's Manual SD(4)
NAME
sd - Driver for SCSI Disk Drives
SYNOPSIS
#include <linux/hdreg.h> /* for HDIO_GETGEO */
#include <linux/fs.h> /* for BLKGETSIZE and BLKRRPART */
CONFIGURATION
The block device name has the following form: sdlp, where l is a letter denoting the physical drive, and p is a number denoting the parti-
tion on that physical drive. Often, the partition number, p, will be left off when the device corresponds to the whole drive.
SCSI disks have a major device number of 8, and a minor device number of the form (16 * drive_number) + partition_number, where drive_num-
ber is the number of the physical drive in order of detection, and partition_number is as follows:
partition 0 is the whole drive
partitions 1-4 are the DOS "primary" partitions
partitions 5-8 are the DOS "extended" (or "logical") partitions
For example, /dev/sda will have major 8, minor 0, and will refer to all of the first SCSI drive in the system; and /dev/sdb3 will have
major 8, minor 19, and will refer to the third DOS "primary" partition on the second SCSI drive in the system.
At this time, only block devices are provided. Raw devices have not yet been implemented.
DESCRIPTION
The following ioctls are provided:
HDIO_GETGEO
Returns the BIOS disk parameters in the following structure:
struct hd_geometry {
unsigned char heads;
unsigned char sectors;
unsigned short cylinders;
unsigned long start;
};
A pointer to this structure is passed as the ioctl(2) parameter.
The information returned in the parameter is the disk geometry of the drive as understood by DOS! This geometry is not the physical
geometry of the drive. It is used when constructing the drive's partition table, however, and is needed for convenient operation of
fdisk(1), efdisk(1), and lilo(1). If the geometry information is not available, zero will be returned for all of the parameters.
BLKGETSIZE
Returns the device size in sectors. The ioctl(2) parameter should be a pointer to a long.
BLKRRPART
Forces a reread of the SCSI disk partition tables. No parameter is needed.
The scsi(4) ioctl(2) operations are also supported. If the ioctl(2) parameter is required, and it is NULL, then ioctl(2) will fail
with the error EINVAL.
FILES
/dev/sd[a-h]: the whole device
/dev/sd[a-h][0-8]: individual block partitions
COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 1992-12-17 SD(4)