SOLVED? - Re: Command line for creating partitions

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

 



I am learning how to use parted in command line format. Unfortuately there is no such command to delete all partitions, though you kind of can do it by changing the table type, say from msdos to gpt.

Also learned that the unused 4Mb I am seeing on most SD cards is for a reason. To get on the 4Mb alignment for performance reasons. So here is some things that I have figured out:

parted /dev/sdb mklabel gpt
parted /dev/sdb mkpart offset fat32 0 4
parted /dev/sdb mkpart uboot ext3 4 516

But it is still acting strange. Print is showing that ext3 partition fat32!

# parted /dev/sdb mkpart uboot ext3 4 516
Information: You may need to update /etc/fstab.

[root@lx120e ~]# 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      17.4kB  4000kB  3983kB               offset
 2      4194kB  516MB   512MB   fat32        uboot



On 08/08/2014 01:37 AM, Cameron Simpson wrote:
On 07Aug2014 16:29, Robert Moskowitz <rgm@xxxxxxxxxxxxxxx> wrote:
On 08/07/2014 03:13 PM, Joachim Backes wrote:
have a look at /sbin/cfdisk

OK.  One more to study.  I was also told about gdisk.

But all of these are command menu programs. Not one-liners. The nice 'one-liners' in kckstart files are just commands to anaconda, it seems. No such program and 'clearpart' or 'part'. Though I suppose I could deal with a program that read a command file of such commands.

We have used sfdisk for a long time for cloning partition tables from one drive to another.

That cloning is done by dumping the table and then reading the dump. But that means that there is a dump format to sfdisk's output, and you can just craft the right input.

Definitely purely command line.

Cheers,
Cameron Simpson <cs@xxxxxxxxxx>

Tomkin Coleman (tcolema@xxxxxxxxxxxxxx) wrote:
| Well, yes, get the bike but BEWARE!!
| At first, you will just want to get, like, a 250 Rebel, just for commuting | and maybe a little fun, but you will wind up buying a 550, (just in case you | want to tour), and then you will stop paying any attention to the theatre | company you are working with and the graduate school you are attending, and | then you will spend all your summers touring and riding around with your | newfound biking buddies, and then you will find that you have got a real job | just so you can buy the bike of your dreams and pretty soon you will find | that your entire life has centered around your monster bike and you can only | date women who love bikes and hang with buddies who love bikes and work at a | job that supports your lifestyle and you will be incredibly happy, but always
| very greasy.
Shhhh!  The meaning of life is supposed to be a SECRET!   :-)
- Bob Larson..DoD#1711..bobl@xxxxxxxxxxxxxxxxx..1994 Suzuki RF600R

--
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