Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am trying to use parted in bash script to create partition table using percentage of the total disk space.
I want to use % so do not have to change script for different HDD size.
I get the total disk size this way:
HDDSZ=$( parted -s $DEV unit B print | grep "^Disk $DEV:" | cut -f 3 -d " " | tr -d B )
Then how can i use parted in the script.
Thanks for your quick prompt
Any chance of a little background on your need to do this in the first place? It seems like a pretty weird layout. 1gbfor /boot is a waste for one thing... and why no LVM? Where on earth does 0.31% come from? Why is the extended partition left 89% empty?
It looks like parted scripts can take a % sign anyway, so there's no need to calculate the percentages yourself in the first place.
Chris, Sorry about that.
Well, i know i need to change the layout, this layout was used for many years and given to me, perhaps you can share your idea to the best way as how to manage the size for sda1 to sda8 with respect to their file system.
But my concern is to get the script working first and then the layout can be changed with your suggestions.
i do not wish to use LVM at this time.
i appreciate your help.