일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- game
- Crack(Serial Key)
- explorer
- Backup(Restore)
- portable
- network
- apm
- H/W
- MS windows
- 대항해시대
- webhard
- UNIX
- PC
- MS Windows PE
- Disk Partition
- LiveCD(USB)
- Windows 10
- calculator
- script
- Update
- FTP
- Network Info(Tool)
- web
- Linux
- program
- javascript
- Programming
- Command
- SSH
- OS(operating system)
- Today
- Total
<In Story>
Linux Fdisk Auto Partition Script // [Linux] [Script] [Programming] [Command] [Disk Partition] 본문
Linux Fdisk Auto Partition Script // [Linux] [Script] [Programming] [Command] [Disk Partition]
<In Story, Hi story, History> 2015. 5. 5. 16:21http://www.linuxquestions.org/questions/linux-software-2/fdisk-auto-partition-script-463262/
Fdisk Auto Partition Script
Currently I'm building my own distro installation GUI much like anaconda. I'm using fdisk as the partitioning tool, and creating an auto partition script. The script itself works when I run through the console, but it keeps asking for confirmation about overwritting the data Yes/No.
Does anyone know how I can bypass this so it runs with no user intervention, I have been searching the net but cannot find any info about bypassing it. I'm using Realbasic to build the installler, this is the script that I have so far:
###################
#!/bin/bash
fdisk /dev/hda <<'EOF'
n
p
1
+10000M
n
p
2
+1000M
t
2
82
t
1
83
w
EOF
mkswap -L swap /dev/hda2
swapon /dev/hda2
mkfs.reiserfs /dev/hda1
mount -t reiserfs /dev/hda1 /mnt
exit 0
###################