Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to mount my /dev/hda1??

Status
Not open for further replies.

LovelyAngel

Programmer
Mar 17, 2002
17
GB
Hi everyone,

I am just a newby, and I am wondering how to mount my /dev/hda1

I typed "fdisk -l" to list my hard disk partitions, and it returns:
/dev/hda1 * 1 1275 10241406 7 HPFS/NTFS
/dev/hda2 2041 2432 3148708+ e Win95 FAT16 (LBA)
/dev/hda3 1276 1288 104422+ 83 Linux
/dev/hda4 1289 2040 6040440 f Win95 Ext'd (LBA)
/dev/hda5 1289 1992 5654848+ 83 Linux
/dev/hda6 1993 2040 385528+ 82 Linux swap

the first HPFS/NTFS partition is my windows 2000, and I created a folder named "win2K" under /mnt, and i used a command:
"mount -t ntfs /dev/hda1 /mnt/win2K"

but it returns an error "mount: fs type ntfs not supported by kernel".
I have check the mount command, but the ntfs is actually a type of mount, can anyone tell me why?

BTW, what is "LBA" and what is "Linux swap" for?

God and I don't know.
 
NTFS is a different type of file system - you need the correct module (Linux equivalent of driver) to read NTFS.

you can see a list of loaded modules using lsmod and test modules using modprobe.

LBA is short for Logical Block Addressing, Linux uses a swap partition (as apposed to Windows' swap file).
A swap partition/file is used to swap stuff between memory and hard storage (normally in a multi-processing environment), basically, to avoid tying up all the memory when you're running loads of programs.

The rule of thumb is to make a swap partition 1.5x to 2x the size of your RAM (although there is a fair amount of debate on this!)

<marc> i wonder what will happen if i press this...[pc][ul][li]please give feedback on what works / what doesn't[/li][li]need some help? how to get a better answer: faq581-3339[/li][/ul]
 
I take it you are using RedHat, which does not provide out-of-the-box support for NTFS due to conflicts with M$.

If you are using RedHat, visit this site:

Read it well, follow the instructions and download the rpm file which matches your kernel. After setting that up you will be able to mount your NTFS partition.
 
Or you can recompile your kernel to add NTFS as a module. Should not take too long to compile just the module.

Make sure you installed the kernel source.

cd /usr/src/linux-2.4

type &quot;make menuconfig&quot;

Scroll down to the FileSystems section.

Find NTFS and press the letter M to configure as a module
You will see <M> now.
You can also install the Write support, but it is experimental.

Select Exit twice and save your new kernel configuration.

Since you are only installing a module type &quot;make modules&quot;.
When it finishes type &quot;make modules_install&quot;

That is it. Now you should have NTFS for your kernel.

Now try mounting /dev/hda1.


>---------------------------------------Lawrence Feldman
SR. QA. Engineer SNAP Appliance
lfeldman@snapappliance.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top