Click to See Complete Forum and Search --> : Linux commands


john andrews
12-08-2003, 12:26 PM
Please advise me the Commands to :

Partision Hard drive
View IP address

somebitch
12-08-2003, 12:27 PM
ifconfig will show you the IP address.


partition the drive, i dunno, i do that with disk druid.

JamminJoeyB
12-08-2003, 12:37 PM
cfdisk is what most distros have. Or parted will do it. I have never used parted, but I think it can non-destructively resize particians.

Google or search the forums for better answers than I have.

kam
12-08-2003, 12:45 PM
Since you'll probably want to format after you partition:

mkfs -t filesystem device

Example:

mkfs -t ext2 /dev/hda3

Satanic Atheist
12-08-2003, 12:48 PM
fdisk <drive>

Is the easiest way, in my opinion, to partition a drive. Remember that this is a DESTRUCTIVE tool and all data on the partition will be lost, so make sure you have a backup!

Interestingly, cfdisk doesn't seem to work on my machine (it could be Slackware), I just get errors and it quits whining all the way to the bottom.

James

Ludootje
12-09-2003, 08:34 AM
cfdisk is just a frontend to fdisk afaik, it's more userfriendly (I think it uses ncurses).
Satanic: you should try reinstalling it if doesn't work, although you should be fine with fdisk since it's basically the same.