Kamaraju S Kusumanchi <raju.mailingli...@gmail.com> writes:

> lee wrote:
>
> There are some warnings when I tried to use fdisk to create a new empty DOS 
> partition table. Do you know how to eliminate the warning?
>
> $fdisk -v
> fdisk (util-linux 2.20.1)
>
> $sudo fdisk /dev/sdb
> Device contains neither a valid DOS partition table, nor Sun, SGI or OSF 
> disklabel
> Building a new DOS disklabel with disk identifier 0x14879ac2.
> Changes will remain in memory only, until you decide to write them.
> After that, of course, the previous content won't be recoverable.
>
> Warning: invalid flag 0x0000 of partition table 4 will be corrected by 
> w(rite)
>
> Command (m for help): p
>
> Disk /dev/sdb: 750.2 GB, 750156372992 bytes
> 255 heads, 63 sectors/track, 91201 cylinders, total 1465149166 sectors
> Units = sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x14879ac2
>
>    Device Boot      Start         End      Blocks   Id  System
>
> Command (m for help): m
> Command action
>    a   toggle a bootable flag
>    b   edit bsd disklabel
>    c   toggle the dos compatibility flag
>    d   delete a partition
>    l   list known partition types
>    m   print this menu
>    n   add a new partition
>    o   create a new empty DOS partition table
>    p   print the partition table
>    q   quit without saving changes
>    s   create a new empty Sun disklabel
>    t   change a partition's system id
>    u   change display/entry units
>    v   verify the partition table
>    w   write table to disk and exit
>    x   extra functionality (experts only)
>
> Command (m for help): o
> Building a new DOS disklabel with disk identifier 0xe3c60b5a.
> Changes will remain in memory only, until you decide to write them.
> After that, of course, the previous content won't be recoverable.
>
> Warning: invalid flag 0x0000 of partition table 4 will be corrected by 
> w(rite)
>
> Command (m for help): w
> The partition table has been altered!
>
> Calling ioctl() to re-read partition table.
> Syncing disks.
>
>
> So, I wrote the partition table but the warning keeps coming back if I run 
> fdisk again.
>
> $sudo fdisk /dev/sdb
> Device contains neither a valid DOS partition table, nor Sun, SGI or OSF 
> disklabel
> Building a new DOS disklabel with disk identifier 0x2c2ba04d.
> Changes will remain in memory only, until you decide to write them.
> After that, of course, the previous content won't be recoverable.
>
> Warning: invalid flag 0x0000 of partition table 4 will be corrected by 
> w(rite)
>
> Command (m for help): q

Now that's interesting.  It looks like either the new partition you have
been writing hasn't actually been written to the disk, or the kernel
didn't realise that the partition table has changed.

> What do you mean reboot after creating partitions? This is an external hard 
> drive that does not have any OS. So how can I reboot from it? Do you mean 
> disconnect and reconnect?

What I mean is "reboot the computer" (not boot from the new disk you're
trying to partition, just reboot it "normally").  So:


1.) write the new partition table
2.) reboot the computer and run fdisk again and see if it still says the
    same

If it still says the same, I'd try to connect the disk to an SATA port
and try it again.  If it still doesn't work, return it.  Or don't go the
lengths of connecting it to SATA and just return it ...

>>> 2) Is "msdos" a valid option to choose for this hard drive?
>> 
>> Is "msdos" a useful partition type for you?  Try "Linux", and if it
>> works, you can try to change it to msdos.
>> 
>
> There is no "Linux" option. In gparted -> Device -> Create Partition Table -
>> Advanced -> Select new partition table type, the available choices are
>
> msdos, aix, amiga, bsd, dvh, gpt, mac, pc98, sun, loop

Hmmm, I don't know --- I found I need to read up about partition table
types and didn't get to do it yet.  What I had in mind is the partition
type code which applies to partitions and not to partition tables.


-- 
Debian testing amd64


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87boh1i6zh....@yun.yagibdah.de

Reply via email to