Start Free Trial
Come for the solution, stay for everything else.
Start Free Trial
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.
8/22/2022 - Mon
Hello, I see no attachment?
And do you mean
I'd be using
btw to create such a script, not gparted (graphical). For batch files, command-line parted would be better.
Your help has saved me hundreds of hours of internet surfing.
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.
Who told you it needs to be gpt instead of mbr?
Are you sure you don't just need to run
to find out the UUIDs for something?
to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER CERTIFIED SOLUTION
Log in or sign up to see answer
Become an EE member today
7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
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
>> 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?
I tried to backup the partition table and restore using the following:
To backup I used:
# parted -ms /dev/sda print > sda.parted
#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.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
Plans and Pricing
Certified Expert Program
© 1996-2023 Experts Exchange, LLC. All rights reserved. Covered by US Patent