Need some Linux help

engineereeyore

Platinum Member
Jul 23, 2005
2,070
0
0
I'm currently running Fedora Core 6. I have a 250GB NTFS hard drive that I want to wipe and use on my Fedora installation. I'm trying to mount it to /mnt/Share.

Does anyone know the commands to do this? I'm ssh'ing into the machine, though I am using X window. So if anyway has some ideas how I can get this drive up and running, please let me know. It is recognized as hdb, just need to get it into a condition that I can write to it.

Thanks for any help.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
If all you want to do is format the drive then run 'mke2fs -m 0 -j /dev/whatever' and add an entry to /etc/fstab so it'll be mounted on bootup. But be sure you use the right device name in that mke2fs command otherwise you might end up formatting the wrong drive.
 

M00T

Golden Member
Mar 12, 2000
1,214
1
0
You'll need to determine what the device is mapped to:

dmesg | grep hd

You should see it in the list somewhere. If not, the kernel or the bios did not recognize the drive.

fdisk the drive to create partitions:

fdisk /dev/hdX

Create a new partition and change the type to "Linux"

As nothinman said, you'll need to initialize a files system on the drive:

mke2fs /dev/hdX1

Next step is to mount the drive to a folder...

mount /dev/hdX1 /mnt/Share

Further instruction for the same process in Gentoo
 

engineereeyore

Platinum Member
Jul 23, 2005
2,070
0
0
Thanks guys. That worked. I thought I needed fdisk and mke, but forgot that I had to be logged in as root for those to work. Otherwise, it says they don't exist.

Anyway, thanks again. Works now!
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Thanks guys. That worked. I thought I needed fdisk and mke, but forgot that I had to be logged in as root for those to work. Otherwise, it says they don't exist.

Because they're in /sbin which isn't in regular user's PATH by default. You can still use at least mkfs if you have correct rights on the device/file but I'm not sure about fdisk.
 

silverpig

Lifer
Jul 29, 2001
27,703
12
81
fdisk works for my standard user. It's in sbin, but I can still run it without su/sudo
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
fdisk works for my standard user. It's in sbin, but I can still run it without su/sudo

The ioctl at the end to reread the partition table even works?