Hi,
I am trying hard to create bash script to automate partitioning so i can use it on several systems. below is the script that not running quite well. I am getting errors like:
and when i change 0B to 17.4kB i get more errors like:Code:Error: you requested a partition from 0.00B to 1075 MB The closest location we can mange is 17.4 KB to 1075 MB
This is the script:Code:you requested a partition from 1074MB to 5369MB the closest location we can manage is 1127MB to 5369MB
What i am trying to do is to create 8 partitions and with sdb8 be the fat partition, sdb1 is /boot, sdb2 is / , sdb3 is swap, sdb4 extended and sdb5-sdb7 linux partition.Code:# parted -s -- /dev/sdb mklabel gpt mkpart boot ext2 0B 1025MiB mkpart swap linux-swap 1GiB 5GiB mkpart dos fat16 5GiB 6GiB mkpart root ext2 6GiB -1 set 1 boot on
Appreciate your help.




Reply With Quote