Hi,
I put a Sil 3512 PCI SATA card in my Ultra 5 and added a 1TB SATA disk. To state the obvious to the question "why would you do that" the answer is "because I can" ;-)
When partitioning the harddrive with a DOS label, I can partition the full 1TB.
DOS DISK LABEL output: --------------------------------------- Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x16b15aba
Device Boot Start End Blocks Id System /dev/sdb1 1 121601 976760001 83 Linux
mkfs.ext3 with DOS LABEL output ---------------------------------------------------------- mke2fs 1.41.9 (22-Aug-2009) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 61054976 inodes, 244190000 blocks 12209500 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=0 7453 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000, 214990848
Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 27 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.
df -h output with DOS LABEL ---------------------------------------------- [root@medusa patrick]# mount /dev/sdb1 /mnt [root@medusa patrick]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sdc1 40G 2.4G 35G 7% / /dev/sda1 1012M 54M 907M 6% /boot /dev/sdc5 20G 172M 19G 1% /home /dev/sdc4 9.9G 242M 9.2G 3% /var tmpfs 248M 0 248M 0% /dev/shm /dev/sdb1 917G 200M 871G 1% /mnt
Great so far, now for the issue in two steps.
fdisk /dev/sdb again, 's' for creating a new Sun Label.
fdisk output with SUN LABEL ---------------------------------------------- Disk /dev/sdb (Sun disk label): 255 heads, 63 sectors, 56065 cylinders Units = cylinders of 16065 * 512 bytes
Device Flag Start End Blocks Id System /dev/sdb1 0 121595 976711837+ 83 Linux native /dev/sdb2 u 121595 121601 48195 82 Linux swap /dev/sdb3 0 121601 976760032+ 5 Whole disk
mkfs.ext3 output with SUN LABEL ------------------------------------------------------------ mke2fs 1.41.9 (22-Aug-2009) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 61046784 inodes, 244177958 blocks 12208897 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=0 7452 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000, 214990848
Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 32 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.
df -h output with SUN LABEL ----------------------------------------------- [root@medusa patrick]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sdc1 40G 2.4G 35G 7% / /dev/sda1 1012M 54M 907M 6% /boot /dev/sdc5 20G 172M 19G 1% /home /dev/sdc4 9.9G 242M 9.2G 3% /var tmpfs 248M 0 248M 0% /dev/shm /dev/sdb1 917G 200M 871G 1% /mnt
This was step 1, to prove that both DOS label and Solaris label are capable to address the full 1TB, but now..
[root@medusa patrick]# fdisk /dev/sdb
Command (m for help): p
Disk /dev/sdb (Sun disk label): 255 heads, 63 sectors, 56065 cylinders Units = cylinders of 16065 * 512 bytes
Device Flag Start End Blocks Id System /dev/sdb1 0 121595 976711837+ 83 Linux native /dev/sdb2 u 121595 121601 48195 82 Linux swap /dev/sdb3 0 121601 976760032+ 5 Whole disk
Command (m for help): d Partition number (1-8): 2
Command (m for help): d Partition number (1-8): 1
Disk /dev/sdb (Sun disk label): 255 heads, 63 sectors, 56065 cylinders Units = cylinders of 16065 * 512 bytes
Device Flag Start End Blocks Id System /dev/sdb3 0 121601 976760032+ 5 Whole disk
Command (m for help): n Partition number (1-8): 1 First cylinder (0-56065): 0 Last cylinder or +size or +sizeM or +sizeK (0-56065, default 56065): 56065
Command (m for help): p
Disk /dev/sdb (Sun disk label): 255 heads, 63 sectors, 56065 cylinders Units = cylinders of 16065 * 512 bytes
Device Flag Start End Blocks Id System /dev/sdb1 0 56065 450342112+ 83 Linux native /dev/sdb3 0 121601 976760032+ 5 Whole disk
Command (m for help): n Partition number (1-8): 2 Other partitions already cover the whole disk. Delete some/shrink them before retry.
And here is where it goes wrong. Suddenly fdisk can only partition half of the disk, 500GB. It doesn't make sense to me as two other methods do address the full 1TB.
mkfs + mount to confirm the above:
mke2fs 1.41.9 (22-Aug-2009) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 28147712 inodes, 112585528 blocks 5629276 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=0 3436 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000
Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 27 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@medusa patrick]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sdc1 40G 2.4G 35G 7% / /dev/sda1 1012M 54M 907M 6% /boot /dev/sdc5 20G 172M 19G 1% /home /dev/sdc4 9.9G 242M 9.2G 3% /var tmpfs 248M 0 248M 0% /dev/shm /dev/sdb1 423G 199M 402G 1% /mnt
Patrick
On 03/05/2010 08:32 AM, Patrick Ale wrote:
And here is where it goes wrong. Suddenly fdisk can only partition half of the disk, 500GB. It doesn't make sense to me as two other methods do address the full 1TB.
It might be fdisk being crufty. Does parted have the same issue?
~spot
Hi,
I didn't try that yet but when I start parted I do see something that might be of interest to the whole partitioning problem during the installation, making the assumption that pyparted is a frontend for parted.
parted doesn't show sdb3 as a partition, this will become problamatic when you create more than 2 partitions I assume..
[root@medusa patrick]# parted /dev/sdb GNU Parted 1.9.0 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) p Model: ATA SAMSUNG HD103UJ (scsi) Disk /dev/sdb: 1000GB Sector size (logical/physical): 512B/512B Partition Table: sun
Number Start End Size File system Flags 1 0.00B 461GB 461GB ext3
(parted)
On 03/05/2010 09:16 AM, Patrick Ale wrote:
Hi,
I didn't try that yet but when I start parted I do see something that might be of interest to the whole partitioning problem during the installation, making the assumption that pyparted is a frontend for parted.
parted doesn't show sdb3 as a partition, this will become problamatic when you create more than 2 partitions I assume..
Parted is aware of whole disks. It will do the right thing, at least with that regard.
~spot
Hi,
Ok cool :-) It seems to work, I get a warning about too much cylinders though, maybe that's why fdisk doesn't play nice. Even though that doesn't make much sense since the partition created the moment you make a new Sun Label is 1TB - 4G (for the swap partition).
File system type? [ext2]? ext3 Start? 0 End? -1s Warning: You requested a partition from 0.00B to 1000GB. The closest location we can manage is 0.00B to 1000GB. Is this still acceptable to you? Yes/No? yes Warning: The disk has 121601 cylinders, which is greater than the maximum of 65536. (parted) print Model: ATA SAMSUNG HD103UJ (scsi) Disk /dev/sdb: 1000GB Sector size (logical/physical): 512B/512B Partition Table: sun
Number Start End Size File system Flags 1 0.00B 1000GB 1000GB ext3
(parted)
Patrick