Re: Strange parted behaviour

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 08/08/2014 12:38 PM, Rick Stevens wrote:
On 08/08/2014 06:21 AM, Robert Moskowitz issued this missive:
So I am making progress but saw a strange bit.

#parted /dev/sdb mkpart uboot ext3 4 516

# parted /dev/sdb print
Model: Generic- Multi-Card (scsi)
Disk /dev/sdb: 7969MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name    Flags
  1      4194kB  516MB   512MB   fat32        uboot

I formated it with:

#mkfs -t ext3 /dev/sdb1

# parted /dev/sdb print
Model: Generic- Multi-Card (scsi)
Disk /dev/sdb: 7969MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name    Flags
  1      4194kB  516MB   512MB   ext3            uboot

So why did parted mislabel the partition?

I don't think "uboot" is a valid partition type--it should be
"primary", "logical" or "extended". Thus the format of the command
should have been:

    # parted /dev/sdb mkpart primary ext3 4 516
    # parted /dev/sdb name 1 uboot

I've noticed that parted sometimes makes some weird decisions if
parameters it expects are missing or mis-specified.

Somewhere in my reading and testing I got that mkpart format was

mkpart part-type label fs-type start end

and then part-type became dropped if the partition type is gpt.

Seems on further reading you are probably right. There is a separate labels command.

----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
- -
- A friend said he climbed to the top of Mount Rainier.  My view is  -
-    that if there's no elevator, it must not be that interesting.   -
----------------------------------------------------------------------

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux