Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have Red Hat Linux 9 and Windows XP installed on one computer.I have lots of mp3s on that drive and I want to access it.I know that having fat partition makes things better fro linux.
I tried mounting the partition but it said:
mount: can't find /dev/hda2 in /etc/fstab or /etc/mtab
I read the related posts but cant find a solution.The partition I need to access is hda2.
The other threads required me to post my fstab file so here it is:
That error simply means no entry is made in your /etc/fstab for the partition.
First I would make sure that you have kernel support for the file system, then make the following entry in your /etc/fstab
Code:
/dev/hda2 /mnt/fat vfat umask=0000 0 0
Now, you have to create the mount directory before mounting, which is done by:
Code:
mkdir /mnt/fat
Keep in mind you can make that dir anywhere you want and it can be anything you want, but it has to match with whatever mount point you have in your fstab.
The umask option that I have shown you is for all access to everyone on your system. If you would like different options, look into the umask option.
I did exactly what you said but I get this error message:
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)
Disk /dev/hda: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1218 9783553+ 7 HPFS/NTFS
/dev/hda2 1219 4870 29334690 f Win95 Ext'd (LBA)
/dev/hda5 1219 2436 9783553+ b Win95 FAT32
/dev/hda6 2437 3654 9783553+ 7 HPFS/NTFS
/dev/hda7 3655 4870 9767488+ 7 HPFS/NTFS
P.S.I have Windows XP and not 95 and where is hda3 and hda4?I have my Linux Installed on hdb and what is LBA
I have two hardrives, one containing Windows and the other Linux.The partition I want to access is in Windows and is D drive and I formatted it with Fat for linux compatibility.I assumed it is hda2 since C: drive is hda1.
Partitions 1-4 are called primary partitions and when hard drives first were introduced to the PC world this was the max amount you could have.
To overcome this limitation the extended / logical partitions were developed so now you can divide the drive into 64 partitions. A primary partition is designated as an extended partition. Then logical partitions are created within the extended partition. logical partitions have IDs >=5.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.