server set up, couple more problems

Associate
Joined
20 Jul 2005
Posts
216
ok so ive just got a server set up with lamp and samba. few problems tho.

1) none of the hdds on the system are visible, when i first looked in fstab it was empty like so:
# /etc/fstab: static file system information.
#
#<file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda5
UUID=76d7a41e-06a5-47de-b5f0-7ebdaf279d77 / ext3 relatime,errors=remount-ro 0
# /dev/sda6
UUID=f1560df0-dcf0-4d19-b756-8acbf81786da none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

when i run fdisk -l i get this

Disk /dev/sda: 160.0GB, 16004188569 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier:0x1780177f

Device Boot Start End Blocks Id System
/dev/sda1 * 1 19457 156288321 7 HPFS/NTFS

Disk /dev/sdb: 80.0GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x57e179a7

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1058 8498353+ 5 Extended
/dev/sdb2 1059 9729 69649807+ 7 HFPS/NTFS
/dev/sdb5 1 1006 8080632 83 Linux
/dev/sdb6 1007 1058 417658 82 Linux swap / Solaris

Disk /dev/sdc: 250.GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier:0x080a0809

Device Boot Start End Blocks Id System
/dev/sdc1 1 30401 244196001 7 HPFS/NTFS

Disk /dev/sdd: 250.GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier:0x1cde373b

Device Boot Start End Blocks Id System
/dev/sdd 1 30401 244196001 7 HPFS/NTFS

there is also a startech PCI sata controller card which one of the hdds is connected to, i think its the 160gb.

2) I also want to make these hdds accessable from an xbox on the network.

3) im having some troubles with the localhost, none of the clients on the network can see http://localhost/ it just comes up with the 'failed to connect error'
 
None of the HDDs are visible? locally or remotely?

Locally it looks like fstab isn't mounting them, but fdisk recognises them so you have to add fstab entries like the ones in there, for the other drives.

Havnig the Xbox see it will involve setting up samba, but you have done that and it still doesnt see it?

and none of the machines can go to http://localhost/ because the local host is 127.0.0.1 i.e. a loopback i.e it's trying to reach a webserver on the same machine....

You'd need to put in the IP of your lamp server (ifconfig to find it)
 
As Ethics says - your fstab needs configured. If the disks aren't mounted, then they can't be shared.

Code:
man fstab

Once you have your disks mounted, then you can start thinking aboout the samba shares.
 
ok ive added them to the fstab it now looks like this

# /etc/fstab: static file system information.
#
#<file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda5
UUID=76d7a41e-06a5-47de-b5f0-7ebdaf279d77 / ext3 relatime,errors=remount-ro 0
# /dev/sda6
UUID=f1560df0-dcf0-4d19-b756-8acbf81786da none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/sda1 /media/tv ntfs defaults 0 0
/dev/sdb2 /media/stuff ntfs defaults 0 0
/dev/sdc1 /media/movies ntfs defaults 0 0
/dev/sdd1 /media/music ntfs defaults 0 0

ok, so they are visible locally but not remotely.


ifconfig gives

eth0
Link encap:Ethernet HWaddr 00:0c:6e:66:a7:52
inet addr: 192.18.2.136 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::20c:6eff:fe66:a752/64 Scope:Link
UP BROADCAST RUNNINGMULTICAST MTU:1500 Metric:1
RX packets:3877 errors:0 dropped:0 overruns:0 frame:0
TX packets:2839 errors:0 dropped:0 overruns:0 frame:0
collisions:0 txqueuelen:1000
RX bytes:375803 (366.9 KB) TX bytes:335154 (327.2 KB)
Interrupt:19 Base address:0xaa00

lo
Link encap:Local Loopback
inet addr:127.0.0.1 Mask255.0.0.0
inet addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:19 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 frame:0
collisions:0 txqueuelen:0
RX bytes:1154 (1.1 KB) TX bytes:1154 (1.1 KB)
 
Ok next step - if samba is installed, you'll need to cnfigure it. This is done through /etc/samba/smb.conf

Once that is set up (most distros give very concise notes in smb.conf.example (or whatever the example file is called!). Rename it, add your shares and then start the samba daemons (smbd, nmbd + winbindd). Each distro also usually has scripts to start these in one go (have a look in /etc/rc.d or /etc/init.d, etc, etc).
 
There probably isn't a file yet. Using a txt editor to open the file will create a new one temporarily in a buffer.

there will be an /etc/samba/smb.conf.example or similar file, copying that to /etc/samba/smb.conf will give you the file, it is very well/heavily commented showing you how to enable various options etc.

Are the users trying to connect to webserver local? if so try http://192.18.2.136 in the address bar, if not you will have to configure port forwarding on your router to traverse NAT
 
Last edited:
Back
Top Bottom