Linux - HardwareThis 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.
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.
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.
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
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.
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
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...
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"....
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.
...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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.