can't recognize the harddisk size

Tom H tomh0665 at gmail.com
Sat Apr 20 12:36:13 UTC 2013


On Fri, Apr 19, 2013 at 11:14 PM, Doug <doug at hacks.perl.sh> wrote:> Hello,
>
> I try to add a new 2T SATA disk to my ubuntu system.
> After the disk is installed, I run fdisk to format the whole disk as a
> partion.
>
> Command (m for help): p
>
> Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
> 255 heads, 63 sectors/track, 243201 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Sector size (logical/physical): 512 bytes / 4096 bytes
> I/O size (minimum/optimal): 4096 bytes / 4096 bytes
> Disk identifier: 0x00000000
>
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1               1      243201  1953512001   83  Linux
> Partition 1 does not start on physical sector boundary.
>
> Command (m for help): w
> The partition table has been altered!
>
> Calling ioctl() to re-read partition table.
>
> WARNING: Re-reading the partition table failed with error 16: Device or
> resource busy.
> The kernel still uses the old table. The new table will be used at
> the next reboot or after you run partprobe(8) or kpartx(8)
>
> Then I run mkfs to make the filesystem:
>
> root at xiaopeng:~# mkfs.ext4 /dev/sda1

Did you reboot or run kpartx or partprobe before running mkfs?

AFAIK 2TB is at the limit for an msdos-labelled disk and using a
gpt-label might be better (CAN SOMEONE CONFIRM - OR INFIRM - THIS?)
but I think that your problem comes from the kernel no knowing about
the partition that you've created.




More information about the ubuntu-users mailing list