LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-11-2004, 04:23 AM   #1
egypt
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Rep: Reputation: 0
Unhappy problems with mount -ing


Id like to mount one harddrive with one primary fat32 partition. I put it like secondery slave and then tryed

# mount -t vfat /dev/hdd1 /mnt/fat

but i reseaved massege
...bad option,bad superblock, or too many mounted file systems...
ive tryed also and options -t auto and msdos. but the same! When my RedHat starts, i saw, it tryed to mount hdd, but after that i can find where. There no line in fstab and the comand df shows only my linux fsystems.
Also i tryed
# fdisk /dev/hdd
end_request: I/O error, dev 16:40(hdd), sector 0
end_request: I/O error, dev 16:40(hdd), sector 2
end_request: I/O error, dev 16:40(hdd), sector 4
end_request: I/O error, dev 16:40(hdd), sector 6

unable to open /hdd

for shure i must to have support for FAT32.
10x
 
Old 10-11-2004, 04:33 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there
are u sure that ur hard disk is secondary slave???

meanwhile i a posting a tutorial from my LUG
--------------
First of all you need to see which partition you want to mount
YOU can see that by running the following command at bash# prompt

#fdisk /dev/hda

If your hard disk is use

Primary master hda
Primary slave hdb
Secondary master hdc
Secondary slave hdd

If you use wrong device then you may get error message such as
"Cannot open device hdc"
If command is successful you get

[root@gaurav qmail]# fdisk /dev/hda

The number of cylinders for this disk is set to 4865.
There is nothing wrong with that, but this is larger than 1024,
And could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):


At this prompt run p single character to see your partition table

Here is the result of my partition table


Command (m for help): p

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 561 4506201 b Win95 FAT32
/dev/hda2 562 3939 27133785 f Win95 Ext'd (LBA)
/dev/hda3 3940 4385 3582495 a5 FreeBSD
/dev/hda4 4386 4865 3855600 83 Linux
/dev/hda5 562 1096 4297356 7 HPFS/NTFS
/dev/hda6 1097 1606 4096543+ b Win95 FAT32
/dev/hda7 1607 3008 11261533+ b Win95 FAT32
/dev/hda8 3009 3872 6940048+ b Win95 FAT32
/dev/hda9 3873 3939 538146 b Win95 FAT32


You can easily recognize which drive you want to mount
Here I have my windows partitions as

devices Windows Partitions

/dev/hda1 C
/dev/hda5 D
/dev/hda6 E
/dev/hda7 F
/dev/hda8 G
/dev/hda9 H


Do not confuse with /dev/hda2
It is my extended partition you cannot mount that whole partition but you can only mount the logical drives in this partition

Here say if I want mount my E drive in Linux
I need to have an empty folder somewhere to mount.
We can make a folder anywhere but as going by the convention we make all the folders and mount them in
/mnt folder
So, go to the mnt folder under root directory
Make a new folder in mnt directory say win_e

If you want to mount it temporarily (till the system is running)
You can mount it by the following command

#mount /dev/hda6 /mnt/win_e

The syntax of the command is easy to interpret
/dev/hda6 gives the device you want to mount
/mnt/win_e gives the path of folder you want to mount

Now if you want to mount your partitions your drives permanently you can do that by making an entry in /etc/fstab file
This file is read each time the system boots.
And so it mounts the partitions listed in this drive
You can add an entry to this file as under corresponding headings

/dev/hda9 /mnt/win_h auto defaults 0 0


the above line refers to
/dev/hda9 gives the device
/mnt/win_h gives the path of the folder
auto tells to detect the filesystem automatically

defaults these two basically deal with the type of mounting we are
0 0 performing and where we want to dump the partiton (related to backing of ext2 filesystem)


--------------

regards
 
Old 10-11-2004, 11:47 AM   #3
egypt
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Original Poster
Rep: Reputation: 0
i think, the problem is a litle bit more difficult. when ve tryed with
#fdisk /dev/hdd
ide -floppy driver 0.99. newide
hdd: driver not present
ide -floppy driver 0.99. newide
hdd: driver not present

It is possible linux not to recognized my secondary ide chenel. When starts my RedHat , it finded the divice hdd and the vendor of the harddrive. I dont know. Whats hapen! 10x

Last edited by egypt; 10-11-2004 at 01:22 PM.
 
Old 10-11-2004, 01:47 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

what about trying this on ur primary IDE channel??

regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with smbfs mount-point in /etc/fstab - "mount -a" works, but not at boottime MarkSide Linux - Software 4 11-20-2005 04:30 PM
problems make-ing rob101 Linux - Software 10 10-26-2005 07:22 AM
Qmail queue-ing problems jme Linux - Software 5 01-05-2005 06:01 PM
Problems booting and logging ing(Pam?) virus2099 Slackware 5 12-01-2004 01:06 PM
Hav ing problems with slackware 9.1 sound configuration for IBM Thinkpad 600E ic3 Slackware 1 11-16-2003 05:04 PM


All times are GMT -5. The time now is 12:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration