Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
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.
|
 |
07-23-2002, 03:14 AM
|
#1
|
LQ Newbie
Registered: Jul 2002
Posts: 6
Rep:
|
Linux won't Mount Primary Slave HD
Linux refuses to mount my primary slave hard disk. It recognises it when the kernel is starting up, even what type it is (FUJITSU) and says that it will be hdb, but it refuses to mount it. It says "invalid block device".
I've tried editing fstab, and have tried using hdb1, hdb2 to refer to the partitions (there are 2 partitions on the disk), with no success.
I'm a complete newb when it comes to linux, so any help would be greatly appreciated...thnx.
|
|
|
07-23-2002, 03:35 AM
|
#2
|
Member
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Rep:
|
Just try giving
fdisk -l
This show you all the partitions and all hds recognized. Currently I can't be of any more help. Pl. post what you see.
--Sarin
|
|
|
07-23-2002, 03:54 AM
|
#3
|
LQ Newbie
Registered: Jul 2002
Posts: 6
Original Poster
Rep:
|
Sarin, thanks for your help.
I tried fdisk -l, but it just gave me a list of the hda partitions (boot, swap and root). When i tried fdisk dev/hdb -l it said that hdb was an invalid device, or words to that effect. But I can use this utility to check if hdb is recognized a lot easier than trying to mount it.
Here's some more information I get when it starts up, which is what confuses me. It is recognising that hdb is a fujitsu drive, but it still isn't working.
Plus I find it hard to see exactly what it is doing, because it scrolls down so fast...if there was some way to pause it (the pause key doesn't work) I might be able to get more information.
This is what the start up says:
[lots of stuff]
hdb: FUJITSU
[lots of stuff]
hdb: driver not present
mount /dev/hdb1 : invalid block device
I have considered the possibility that the system does not have a driver for the hard drive, but I have used that hard drive (the fujitsu) as a dual-partition linux/windows system before with no problems, so I thought that this was unlikely.
Any ideas?
|
|
|
07-23-2002, 04:57 AM
|
#4
|
LQ Addict
Registered: Jun 2001
Posts: 1,183
Rep:
|
Try running these commands to look at your log files.
dmesg | less
tail -n 200 /var/log/messages
What distribution of linux are you using?
Last edited by linuxcool; 07-23-2002 at 04:58 AM.
|
|
|
07-23-2002, 04:58 AM
|
#5
|
Member
Registered: Jun 2002
Location: N 37° 33.327 E 126° 55.650
Distribution: Gentoo, Slackware, OpenZaurus
Posts: 186
Rep:
|
Hi!
Use the dmesg command to see your kernel messages.
You can pipe it through 'less' to let you scroll through one page at a time.
Like so;
dmesg | less
Good Luck!
RefriedBean
|
|
|
07-23-2002, 05:19 AM
|
#6
|
Member
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141
Rep:
|
What type of partitions are on hdb? -mk
|
|
|
07-23-2002, 06:17 AM
|
#7
|
LQ Newbie
Registered: Jul 2002
Posts: 6
Original Poster
Rep:
|
Thanks everyone  , dmesg is very useful!
I'm using Red Hat 7.3. I have an 80 gig drive (the pri. master), and a 3 gig drive (the pri. slave). There is 1 vfat partition and some linux partitions (I forget exactly) on the 3 gig drive. This was from a previous attempt to run Linux, until I realised I'd need a lot more space for both systems  .
Ok, I used "dmesg | less", to see what the kernel is up to. This is what it says, ##### = some big numbers
....
hda: ST######, ATA DISK drive
hdb: FUJITSU###### E, ATA DISK drive
....
hda: setmax LBA #####, native ######
hda: ##### sectors, (#### mb), w/####k cache UDMA(33)
ide-floppy drive: [stuff]
Partition check
hda: hda1 hda2 hda3
Floppy drive(s) [stuff]
.....
The only further mention of hdb is when it repeats " hdb: driver not present" a number of times.
It's strange how it detects hda + hdb exactly the same, at the beginning. But it doesn't partition check or check sectors on hdb. It seems something is going wrong between those two checks.
I've had a thought - I will try changing the bios. At the moment both drives are on AUTO detection, so I'll try giving the second one a fixed setting...
|
|
|
07-23-2002, 06:24 AM
|
#8
|
LQ Newbie
Registered: Jul 2002
Posts: 6
Original Poster
Rep:
|
Update: I tried that, but didn't work.
Any more ideas? 
|
|
|
07-23-2002, 08:25 AM
|
#9
|
Member
Registered: Jun 2002
Location: N 37° 33.327 E 126° 55.650
Distribution: Gentoo, Slackware, OpenZaurus
Posts: 186
Rep:
|
Quote:
Originally posted by apokalypse
Update: I tried that, but didn't work.
Any more ideas?
|
Hi!
Well, here are some ideas;
Are the jumpers on hdb are set to slave, and not to master?
Have you tried putting hdb on the second ide controller, as the master/slave?
RefriedBean
|
|
|
07-23-2002, 11:21 AM
|
#10
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Just a quick question. What is on this hard drive ? Is it empty with no filesystem or does it have a filesystem on it.
If so, how are you trying to mount the hard drive, with what options.. etc ?
If no filesystem, just two partitions.. have you tried this to create or edit existing partitions possibly:
fdisk /dev/hdb
|
|
|
07-23-2002, 07:36 PM
|
#11
|
LQ Newbie
Registered: Jul 2002
Posts: 6
Original Poster
Rep:
|
Refried: Good ideas
The jumpers on the slave are set to slave (as specified on the hard drive case). I checked carefully on that, but I certainly could have made a mistake.
I think it must be acting as slave properly, because the BIOS automatically detects it as such. Is this correct?
I'll try putting it on the second ide controller, but I'll need to get another IDE cable (I only have one).
trickykid: There is definitely a non-empty vfat (thats the Windows 98 file system, right?) file system on the slave drive, from which I want to copy some files to the master.
I have the following line in fstab:
/dev/hdb1 /mnt/hdb sw 0 0
THe partition I want to mount is either hdb1, hdb2 or hdb3. The other 2 should be valid linux partitions, though.
I have tried mounting hdb1, hdb2, hdb3, hdb4 manually, but it always says "mount: /dev/hdbx is not a valid block device". I don't use any options, just the device and the mount point - the options don't seem to make much of a difference. I have tried -t vfat but that doesn't seem to help.
Yes, I have tried fdisk /dev/hdb and it invariably says
"Unable to open /dev/hdb"....
Thanks...
|
|
|
07-23-2002, 08:37 PM
|
#12
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Quote:
Originally posted by apokalypse
trickykid: There is definitely a non-empty vfat (thats the Windows 98 file system, right?) file system on the slave drive, from which I want to copy some files to the master.
I have the following line in fstab:
/dev/hdb1 /mnt/hdb sw 0 0
THe partition I want to mount is either hdb1, hdb2 or hdb3. The other 2 should be valid linux partitions, though.
I have tried mounting hdb1, hdb2, hdb3, hdb4 manually, but it always says "mount: /dev/hdbx is not a valid block device". I don't use any options, just the device and the mount point - the options don't seem to make much of a difference. I have tried -t vfat but that doesn't seem to help.
Yes, I have tried fdisk /dev/hdb and it invariably says
"Unable to open /dev/hdb"....
|
Well definitely if you have a fat filesystem on the drive you trying to mount, you should definitely be adding that to you fstab file or try it like this.
/dev/hdb1 /mnt/hdb vfat defaults 0 0
Also, without it being in your fstab file and assuming you have the empty /mnt/hdb directory created... what happens if you try this to mount it manually:
mount -t vfat /dev/hdb1 /mnt/hdb
Let us know..
Hey look at that.. I have over 5,000 posts now.. I think its time to start looking for a life. 
|
|
|
07-24-2002, 07:55 AM
|
#13
|
LQ Newbie
Registered: Jul 2002
Posts: 6
Original Poster
Rep:
|
I've tried both things, but they both have the same errors, "invalid block device"... but thanks anyway 
|
|
|
08-27-2002, 11:25 AM
|
#14
|
LQ Newbie
Registered: Aug 2002
Distribution: Redhat 7.2
Posts: 1
Rep:
|
I had exactly the same problem, my hdc would not be recognised by linux although DOS was fine with it.
I found the problem resolved by removing the "hdc=ide-scsi" from the boot command, see /boot/grub/grub.conf
Not sure why though !
Best of luck,
TAB
|
|
|
09-08-2002, 01:18 AM
|
#15
|
LQ Newbie
Registered: Sep 2002
Posts: 9
Rep:
|
...assuming you have the empty /mnt/hdb directory created... what happens if you try this to mount it manually:
mount -t vfat /dev/hdb1 /mnt/hdb
Let us know..
...i tried it in above way, OK and i can see the slave hard drive which is fat or NTFS in windoze and even all the files in it...i think probably something wrong with your hard drive or some hardware conflict in mainboard or hard disk or even BIOS...
|
|
|
All times are GMT -5. The time now is 01:21 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
|
|