|
From: | GNU bug Tracking System |
Subject: | [debbugs-tracker] bug#16633: closed (Automate parted command) |
Date: | Mon, 10 Feb 2014 21:43:02 +0000 |
Your message dated Mon, 10 Feb 2014 16:42:13 -0500 with message-id <address@hidden> and subject line Re: bug#16633: Automate parted command has caused the debbugs.gnu.org bug report #16633, regarding Automate parted command to be marked as done. (If you believe you have received this mail in error, please contact address@hidden) -- 16633: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16633 GNU Bug Tracking System Contact address@hidden with problems
--- Begin Message ---Subject: Automate parted command Date: Mon, 3 Feb 2014 14:05:49 +0530 --Respected Sir/Mam,I want to make paritition creation using automate script. This script should avoid interaction and respond all question for parted command. Previous there will be msdos type partition table.My command are as follows :-1. parted /dev/sdb mklabel gpt2. parted /dev/sdb mkpart logical 7168s 5638312959s3. parted /dev/sda name 1 TEMP-1I can put all these command directly in shell script.But for 1st command parted /dev/sdb mklabel gpt , it will ask meWarning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you wantto continue?Yes/No?if I say yes thenNew disk label type? [msdos]?But all these become interactive. Also if I use -s then it willInstead of that is there any way to pass these answer to command through file.I don't want to use any third party tool like expectI was trying to pass all command through file to parted but it wont work.> cat parted.txt/dev/sdbmklabelgptyesgpt> parted < parted.txtSo please suggest me way to automate these answer as early as possible.Thanks in advance.
Sagar Dilip Shedge,
Pune.With Regards.
--- End Message ---
--- Begin Message ---Subject: Re: bug#16633: Automate parted command Date: Mon, 10 Feb 2014 16:42:13 -0500 User-agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2/3/2014 3:35 AM, Sagar Shedge wrote: > Respected Sir/Mam, > > I want to make paritition creation using automate script. This > script should avoid interaction and respond all question for parted > command. Previous there will be msdos type partition table. > > My command are as follows :- 1. parted /dev/sdb mklabel gpt 2. > parted /dev/sdb mkpart logical 7168s 5638312959s 3. parted /dev/sda > name 1 TEMP-1 Use -s and put the commands on the command line instead of trying to feed them to stdin. Also there is no such thing as a logical partition with gpt. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJS+Ue0AAoJEI5FoCIzSKrww1IIAIKyZFUGhvd1nSY4DzTFyUOF mLiMq8ikQiqt0KUIYBabqHXqf+dHCcIiPfTHonbRjbGp+zFATj15RXBO3cTnBPhc iUR6TXRcNvmHvarfJY7ceMf0nX2DwDkRD9NmHd85wkrFpEO58AKEgMeslfM0Q6yc YolyXOCpX7eDvwwKh46/wfyI+FHp0mxRjPlWK584OWAsdCBo7NJ2Wn28i1MJsHlH yxasf8l00sVQ5H0FJTRNcmAcUuf2GeN4jQNgoBw0C4mDqBd6MTy+2O1zPiBp/392 lErCrTj0eGGqUiNLR3OkY5qhPf9LjSxZzS/1/FBf3DBtFHUOMn+rTzDyP4BtUQ8= =SWv5 -----END PGP SIGNATURE-----
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |