Bekijk de volledige versie : Fdisk
Hello,
Can someone please tell me what this does:
fdisk /dev/discs/disc0/disc < enter >
d < enter >
n < enter >
p < enter >
1 < enter >
< enter >
+220M < enter >
n < enter >
p < enter >
2 < enter >
< enter >
< enter >
t < enter >
2 < enter >
82 < enter >
w < enter >
It is the FDISK part from the IPKG tutorial from macsat.
Thanks
fdisk /dev/discs/disc0/disc < enter >
d < enter >
n < enter >
p < enter >
1 < enter >
< enter >
+220M < enter >
n < enter >
p < enter >
2 < enter >
< enter >
< enter >
t < enter >
2 < enter >
82 < enter >
w < enter >
fdisk is the standard disk partitioning tool. So the first line calls fdisk. The further single letters and numbers are commands to fdisk. You can see all the possible commands by typing 'h' or '?' in fdisk. So waht it means is this:
d - delete old partition
n - make a new partition...
p - ... and make that a primary partition...
1 - in the free space
<enter> - this confirms the default starting block, which is probably the first
+220M - makes the partiton 220MB big
n - make another new partition
p - also a primary
2 - again, in the free space (1 is within part 1, I think)
<enter> - Start from the default block (in this case, one after the end of the first partition>
<enter> - End at the default block, in this case, the last block on the disk
t - change the file system (type) of one of the partitions
2 - mor precisely, of the second partition
82 - I think this is ext3, but there's a long list of possible formats.
w - confirm the changes and write everything we chose above to disk
I hope this is all correct.
Try searching with Google:
man fdisk
By the way, if I type fdisk ? or fdisk h, it displays a message: "Unable to open ?" or "Unable to open h" what am I doing wrong?
TheEagle
10-05-2006, 09:34
You can see all the possible commands by typing 'h' or '?' in fdisk.
IN fdisk. So you run fdisk "/dev/discs/disc0/disc" , and then press h or ? in the program.
OK, thanks. Does it work in the web interface under system command too? Or can I excute that command only y telnet?