Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Parted Layout

Posted on 2013-01-07
10
Medium Priority
?
286 Views
Last Modified: 2013-01-18
I used gpart live CD to create attached partitions, since I have to run it on may PCs, can someone help to make bash script to create gpt partition with the attached layout and file systems.
 Thanks
0
Comment
Question by:NetRock6
  • 3
  • 3
  • 2
  • +2
10 Comments
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 38753771
Hello, I see no attachment?
0
 
LVL 44

Expert Comment

by:Darr247
ID: 38753792
And do you mean GParted Live ?
0
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 38753801
I'd be using parted btw to create such a script, not gparted (graphical). For batch files, command-line parted would be better.
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
LVL 51

Expert Comment

by:ahoffmann
ID: 38753809
man fdisk
man parted
man gdisk
0
 

Author Comment

by:NetRock6
ID: 38754201
I see, here is the attachment.
just looking for Bash Script to automate the process.
Yes is the gparted live CD.
Sda1 is the /Boot
sda2 is /
Sda3 is swap i have 4Gib of memory.
sda8 is fat
sda4-sda7 are Linux partitions

Thank you in advance.
Partl.JPG
0
 
LVL 44

Expert Comment

by:Darr247
ID: 38755140
Who told you it needs to be gpt instead of mbr?

Are you sure you don't just need to run
$ blkid
to find out the UUIDs for something?
0
 
LVL 22

Accepted Solution

by:
Rick Hobbs earned 2000 total points
ID: 38757191
0
 

Author Comment

by:NetRock6
ID: 38757545
Thanks, this is a golden way for two live HDD or raids but in my case this method simply does not work because there is no HDD to copy from the Gpt partition layout
0
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 38758114
>> there is no HDD to copy from the Gpt partition layout
Then you could create one 'sample' machine and create the initial layout for copying.

You are about to run this on a bunch of machines, right?
0
 

Author Comment

by:NetRock6
ID: 38767713
I tried to backup the partition table and restore using the following:
To backup I used:
# parted -ms /dev/sda print > sda.parted
Restore:
#sgdisk -R=/dev/sdb  sda.parted

But I get warnings/errors : file size is not multiple of 512 bytes! Misbehavior is likely!
Error 25; strange behavior

Also there is another option like sgdisk -l -w.  

Any help appreciated.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Utilizing an array to gracefully append to a list of EmailAddresses
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses
Course of the Month20 days, 19 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question