You are not logged in.

#1 2012-07-23 19:17:56

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Script for automated partitioning in the next official release?

Disclaimer: don't run it with root privileges unless /dev/sda is a blank disk. You have been warned.

# dhcpcd
# curl sprunge.us/WATU > autopart      #Uppercase required.
# nano autopart
# sh autopart

http://sprunge.us/WATU

Tested in VirtualBox.


I remember that the AIF used 100 MB for /boot and 7.4 GB for "/". Close enough, right?

Users can also edit the script and make their own version. What do you think?

Last edited by DSpider (2012-08-07 08:22:26)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#2 2012-07-23 19:36:11

blackout23
Member
Registered: 2011-11-16
Posts: 780

Re: Script for automated partitioning in the next official release?

I wonder what is the difference between parted and gdisk? I always used gdisk for GPT. Tried "parted help" and was a bit overwhelmed by the output. With gdisk it's just "o" to start fresh. Use"n" as many times as you want and finally "w".

Offline

#3 2012-07-23 19:48:49

Awebb
Member
Registered: 2010-05-06
Posts: 4,321

Re: Script for automated partitioning in the next official release?

I'd say the difference is, that we know that gdisk works for a GPT setup - because it was created to do exactly that, while all we know about parted is, that it began supporting GPT at some point.

Offline

#4 2012-07-23 22:29:43

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Script for automated partitioning in the next official release?

Hmmm... Maybe I should look into gdisk too (the gptfdisk package). I just hope I can set it in "MiB", and not get something like "98.63 MB" or "7.91 GB". Parted makes them nice and even and I like that. Parted is also the backend for GParted, which a lot more people use than command-line tools.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#5 2012-07-24 00:40:24

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,662

Re: Script for automated partitioning in the next official release?

I've used both parted (CLI and gparted) and gdisk on GPT and both seem to work fine. I find gdisk a bit easier although I learnt it after parted and it seems to have some capabilities parted doesn't. But for most purposes, both seem to do the job. (But if I had to say which I'd trust more, it'd be gdisk. But I can't really say why.)


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#6 2012-07-24 11:40:31

dontbugme
Banned
Registered: 2011-11-04
Posts: 166
Website

Re: Script for automated partitioning in the next official release?

Nice script, i'll use it next time.
Thx wink

Offline

#7 2012-07-27 17:17:12

scjet
Banned
Registered: 2011-07-23
Posts: 172

Re: Script for automated partitioning in the next official release?

,,,even if they just put something similar to the above mentioned scripts,... whatever with a "tiny" explanantion" in motd would help absolute "n00bs" not have to memorize 12 lines of important upon inital install/setuip schtuff.  -in fact, I double-dare the devs to atleast incorporate something nice like that.
Oh wait, maybe maybe Arch can't, 'cause obviously Arch doesn't even know where they're going...?
huh ?
we're talkin 1993 backretards compatibility here -at the least.
Oh wait again, you don't really want N00BS here do ya, arch dev's ???
call me once, call me twice.
and no, this ain't off-top.


The "BSD" things in life are "Free", and "Open", and so is "Arch"

Offline

#8 2012-07-27 17:21:18

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,071

Re: Script for automated partitioning in the next official release?

scjet, what on earth are you blabbering about ??


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#9 2012-08-06 22:09:52

drobole
Member
From: Norway
Registered: 2012-07-23
Posts: 123

Re: Script for automated partitioning in the next official release?

Thank, thats useful.

Btw. I'm not getting correct results unless I use 1000 instead of 1024

Offline

#10 2012-08-07 08:40:58

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Script for automated partitioning in the next official release?

Here's what it looks like multiplied by 1024: http://i.imgur.com/fttkB.png

And here's what it looks like by 1000: http://i.imgur.com/oaCxF.png


I don't know about you, but I very much dislike 7.81 GB, 1.95 GB, etc. If you're going to test it in VirtualBox, please create a virtual drive of at least 15.1 GB (100+8+2+5), or, you know, use smaller numbers. Also, using "Dynamic Size" only takes up about 60 MB or so of actual space, so you may as well create a 20 GB+ virtual drive.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#11 2012-08-07 21:39:37

drobole
Member
From: Norway
Registered: 2012-07-23
Posts: 123

Re: Script for automated partitioning in the next official release?

DSpider wrote:

Here's what it looks like multiplied by 1024: http://i.imgur.com/fttkB.png

And here's what it looks like by 1000: http://i.imgur.com/oaCxF.png


I don't know about you, but I very much dislike 7.81 GB, 1.95 GB, etc. If you're going to test it in VirtualBox, please create a virtual drive of at least 15.1 GB (100+8+2+5), or, you know, use smaller numbers. Also, using "Dynamic Size" only takes up about 60 MB or so of actual space, so you may as well create a 20 GB+ virtual drive.

I am doing the max calculation directly on my desktop computer and using 1000 is the only result that corresponds to the label on the disk, so to speak. I'm not sure though, have to look closer at this when I get the time.

Offline

#12 2015-03-18 22:23:48

iaw4
Member
Registered: 2014-11-28
Posts: 46

Re: Script for automated partitioning in the next official release?

I think the script is no longer there.  my browser does not get me to a script.  anyone care to post?

--- no longer useful.  the sgdisk discussion in http://www.rodsbooks.com/gdisk/sgdisk-walkthrough.html covers it.

Last edited by iaw4 (2015-03-18 22:28:11)

Offline

#13 2015-03-18 23:45:24

fsckd
Forum Moderator
Registered: 2009-06-15
Posts: 3,550

Re: Script for automated partitioning in the next official release?

iaw4, this thread is almost three years old. Please see Forum Etquette: Old Threads / Necro-Bumping. Closing.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB