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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
05-08-2004, 02:33 PM
|
#1
|
LQ Newbie
Registered: Apr 2004
Location: Portland, OR
Distribution: Red Hat 9
Posts: 21
Rep:
|
HDD mounting problem
I'm new to Linux, running RH9, kernel 2.4.20-31.9
trying to mount an 80G Maxtor drive. model 6Y080L0
In secondary slave position, jumpered slave.
I'm trying to make one 80G fat32 LBA partition accessible from both Linux and Win98.
I partitioned this drive as Fat32 (LBA) w/ fdisk in Linux, formatted it in windows. Windows can read it, but scandisk found bad sectors which it supposedly fixed. made a directory in Linux (/mnt/d) but when I try to mount I get the error:
mount: wrong fs type, bad option, bad superblock on /dev/hdd1,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)
i ran fsck and got:
fsck 1.32 (09-Nov-2002)
e2fsck 1.32 (09-Nov-2002)
/dev/hdd: clean, 11/10010624 files, 314137/20010816 blocks
this would have found a bad superblock, correct?
I also tried deleting the partition and making and formatting a linux partition to see if it would mount that, but no luck there either. In fact, after formatting it in Linux and rebooting it doesn't recognize the partition table because fdisk -l shows this:
Disk /dev/hdd: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk /dev/hdd doesn't contain a valid partition table <<<
My BIOS is set to autodetect and chooses LBA by default, but if I change settings from autodetect to 'user' and let it auto detect the type it chooses CHS. I have no idea if that has anything to do with anything though.
Win98 has no trouble reading or writing to this drive, I just can't get it to mount in Linux. Other LBA drives and windows partitions mount fine, and I'm not mounting them all at the same time, so it shouldn't be a "too many mounted filesystems" problem.
Help?
|
|
|
05-08-2004, 03:08 PM
|
#2
|
LQ Newbie
Registered: May 2004
Location: India
Distribution: Red Hat, mandrake, Fedora,Knoppix
Posts: 27
Rep:
|
Use vfat instead.
For mounting FAT32 u must have vfat module loaded into the kernel. use
"cat /proc/filesystems" and see that vfat is present or not. If it is not then u have to add it into the kernel by recompiling it. once the vfat added identify the partition to be loaded and add an entry in the /etc/fstab filesystem accordingly.
Happy Linuxing
|
|
|
05-08-2004, 04:48 PM
|
#3
|
LQ Newbie
Registered: Apr 2004
Location: Portland, OR
Distribution: Red Hat 9
Posts: 21
Original Poster
Rep:
|
this is what i got. i don't know what the nodev thing means so I don't know how to read this. vfat is in there though.
$ cat /proc/filesystems
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev tmpfs
nodev shm
nodev pipefs
ext2
nodev ramfs
iso9660
nodev devpts
ext3
nodev usbdevfs
nodev usbfs
vfat
nodev autofs
|
|
|
05-09-2004, 10:33 AM
|
#4
|
LQ Newbie
Registered: May 2004
Location: India
Distribution: Red Hat, mandrake, Fedora,Knoppix
Posts: 27
Rep:
|
Good just mount it brother !!! using the mount command just like this...
mount -t vfat [partition] [directory-to-mount]
and want to do it every time the computer boots up. Just add the entries in the /etc/fstab file. Us "fdisk -l" command to see the partitions and there corressponding dev entries...
Happy Linuxing
|
|
|
05-09-2004, 01:38 PM
|
#5
|
LQ Newbie
Registered: Apr 2004
Location: Portland, OR
Distribution: Red Hat 9
Posts: 21
Original Poster
Rep:
|
I still get this:
# mount -t vfat /dev/hdc1 /mnt/d
mount: wrong fs type, bad option, bad superblock on /dev/hdc1,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)
???
|
|
|
05-09-2004, 01:48 PM
|
#6
|
Senior Member
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040
Rep:
|
First see if Linux actually sees it. With the command run as root: fdisk -l
If you see the partition you want to mount, it is ok. (it's not hda, but some other like hdc, hdd, hd...) Mount it!
If it says it is already mounted. Run command mount with no arguments. That will show you all the mounted stuff on your computer and where they are mounted. That way you can see if and where it is.
If you can't see it with fdisk -l then there is something wrong with connecting the harddisk to your computer. Check that out.
Just curious. Is it possible to make a 80GB FAT partition? In windows the biggest I could get was 32768 MB.
|
|
|
05-09-2004, 05:37 PM
|
#7
|
LQ Newbie
Registered: Apr 2004
Location: Portland, OR
Distribution: Red Hat 9
Posts: 21
Original Poster
Rep:
|
it shows up fine with fdisk -l :
Disk /dev/hdc: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 1 158816 80043232+ c Win95 FAT32 (LBA)
but it still won't mount. Windows reads the 80G partition so I don't think that's the problem, but maybe I'll try redoing it with 3 smaller partitions to see if that helps at all.
|
|
|
05-10-2004, 08:26 AM
|
#8
|
LQ Newbie
Registered: May 2004
Location: India
Distribution: Red Hat, mandrake, Fedora,Knoppix
Posts: 27
Rep:
|
try insmod vfat
and then mount -o loop -t vfat /dev/hdc1 /mnt/d
|
|
|
05-10-2004, 11:50 PM
|
#9
|
LQ Newbie
Registered: Apr 2004
Location: Portland, OR
Distribution: Red Hat 9
Posts: 21
Original Poster
Rep:
|
still nada.
# mount -o loop -t vfat /dev/hdc1 /mnt/d
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
or too many mounted file systems
thanks for all of this help. any other thoughts?
|
|
|
05-11-2004, 01:46 AM
|
#10
|
LQ Newbie
Registered: Apr 2004
Location: Portland, OR
Distribution: Red Hat 9
Posts: 21
Original Poster
Rep:
|
btw, i also tried splitting it into 3 small partitions and i get the same error. bad option, bad superblock, etc.
|
|
|
05-11-2004, 02:14 PM
|
#11
|
LQ Newbie
Registered: Apr 2004
Location: Portland, OR
Distribution: Red Hat 9
Posts: 21
Original Poster
Rep:
|
I have a bad drive. I decided to try partitioning and formatting it entirely in Windows since that's how I did my other drives and they work, and Partition Magic immediately found errors in the partition table. it kept saying that the LBA and CHS blocks didn't match up and that they should have the same values and then it claimed to have fixed them, but when I tried to format the disk it just paused for a second then marked it BAD and wouldn't do anything else with it.
Never never NEVER buy anything from COMPUVEST.COM, that's the second bad drive they sent me, and they sent me bad memory. Nothing I've ordered from them has ever worked and their return policies make it expensive and near impossible to exchange anything. I got charged shipping for that drive 3 times. compuvest sucks, tell your friends.
Last edited by mattuc; 05-11-2004 at 02:15 PM.
|
|
|
05-11-2004, 02:47 PM
|
#12
|
LQ Newbie
Registered: May 2004
Location: India
Distribution: Red Hat, mandrake, Fedora,Knoppix
Posts: 27
Rep:
|
try mount /dev/hdc* [mount-directory]
Try to send me ur partition table ( by just copying the output of fdisk -l ). Anyways
try mount /dev/hdc* [mount-directory]
Do u recieve the same message when u try to mount other partitions
|
|
|
05-11-2004, 10:55 PM
|
#13
|
LQ Newbie
Registered: Apr 2004
Location: Portland, OR
Distribution: Red Hat 9
Posts: 21
Original Poster
Rep:
|
the output of fdisk -l
Disk /dev/hdc: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 1 158816 80043232+ c Win95 FAT32 (LBA)
(i repartitioned to one 80G again since the 3 smaller ones didn't work, have to go back to Win98 to format before I can try to mount again...)
|
|
|
All times are GMT -5. The time now is 05:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|