-
Can't share primary hard drive.
Flushed with the delight of having got a Linux machine to share its hard drives with my network (after about 18 months of trying, off and on) I didn't notice at first that one drive was not appearing in the Windows machines' links to the Linux box.
I have three hard drives on this machine, one of them partitioned into two, hence hda1, hdb1, hdb2, and hdc5. I don't know why the machine decided to call drive C hdc5, but no matter.
The Knoppix 3.8.x system and all the operating stuff is installed on hdb2, which uses the Reiserfs file system (or so it reports). hdb2 will not allow access from the network - the other drives will. The very existence of hdb2 is hidden from the network.
The only difference I can see, at first glance, is that Konqueror shows the other drives as "/mnt/<drivename>", whereas hdb2 is just "/"
Any suggestions, anyone? There's a lot of stuff on hdb2 that I'd like to be able to access from the network. The relevant folders on hdb2 are set to share.
-
Administrator
Site Admin-
Re: Can't share primary hard drive.

Originally Posted by
Keithj
hence hda1, hdb1, hdb2, and hdc5. I don't know why the machine decided to call drive C hdc5, but no matter.
Not quite sure what is going on with your system, but here's a little info that might help: hda is, of course, the first hard drive, hdb the second and hdc the 3rd (all on IDE type interfaces) hda1 is the "first" partition on the first drive. First is a hard thing to define here, since not even all MS OSs look at the partition table in the same order, so what is the first partition to one OS might be the second or fourth to a different MS OS. But as to your hdc5, this is easy to understand. A disk can only have 4 "real" partition on it (a limititation of the size of the partition table). To get around this extended partitions and logical drives in extended partitions were invented. Linux uses hda1, hda2, hda3 hda4 for the physical partiitions on the first drive. The first logical partition on an extended partition on the first drive would be hda5. So in the case of hdc5 I can assume that this disk has an extended partition on it with a logical drive defined on it. It seems that there is no "primary" partition on this disk. Windows generally doesn't let you partition a disk this way, but other third party tools do. Or you can create the primary partition and then create the extended partition and later remove the primary partition (unfortunately, the space for it is"lost"), or you could just make a primary partition and then create an extended partition and never format the primary partition (Windows would still waste a drive letter on the unformatted primary prtition that way though). So you somehow managed to get on a logical drive on that disk but no formatted primary partition (which would have shown up as hdc1).
I'm very confused where the partitions were made and what is and isn't showing up where. But a common rule for MS systems is that you only create one primary partition and put all of the remaining space into logical drives on an extended partition, even though the partition table would imply that you can have 4 real partitions. Since your hdb1 and hdb2 imply that you have 2 real primary partitions on one hard disk, it might be that some windows systems are seeing only hdb1 and refusing to believe that hdb2 exists, although if they are seeing this across a network I'm hard pressed to understand why or how they can draw the distinction.
-
Thanks for that - it makes sense when you look at it that way!
The process of formulating my question above set me to thinking, and I solved the problem. hdb2 being the "boot" drive, its address isn't /mnt/hdb2 - it's just /. So I checked in smb.conf, and sure enough / wasn't there as a drive to share on the network. I edited /mnt/hdb2 to say / and all was well. It was as easy as that.
Then a new problem showed up - hda1 and hdb1, which had previous been shared across the network just fine, showed in the network but refused access. Both had miraculously changed ownership from users:users to root:root. Chown refused to change them back, but a little tinkering eventually got it to see things my way. Some faults, like that one, appear for a while, then disappear for no apparent reason.
Similar Threads
-
By PaulKraemer in forum General Support
Replies: 1
Last Post: 05-08-2006, 04:49 PM
-
By husalah5150 in forum General Support
Replies: 3
Last Post: 11-22-2005, 05:06 PM
-
By Lintu in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 10-20-2005, 06:13 PM
-
By tgjb007 in forum Hardware & Booting
Replies: 2
Last Post: 09-15-2005, 02:18 AM
-
By kidsatacrux in forum MS Windows & New to Linux
Replies: 19
Last Post: 08-03-2004, 07:41 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS
$179.98

Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS
$239.99

Dell PowerEdge R740xd Dual Intel Silver 4116 @2.1GHz 32GB HBA330 24Bay Server
$525.00

Intel Xeon Gold 6248R 3.0GHz 24-Core SRGZG 35.75MB LGA3647 Server CPU Processor
$225.00

Intel Xeon E5-2680 V2 2.8GHz 10-Core 25MB 8GT/s SR1A6 LGA2011 B Grade Server CPU
$7.95

Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS
$84.49

Dell Precision T7820 2x Xeon Gold 6130 2.10GHz 950W No RAM GPU HDD 4x SATA
$374.48

Dell Precision T7820 2x Xeon Silver 4114 2.20GHz 950W No RAM GPU HDD 4x SATA
$354.48

DELL Precision T3420 | Xeon 1240v6 | 525GB SSD |16GB RAM |Nvidia GPU |Win11
$149.00

NEW HP Z4 G4 Workstation Xeon W-2123 16GB ECC 256GB NVMe NVIDIA T400 750W Win11
$450.00