20030713 Sunday July 13, 2003

Issues I'm having with XP and Red Hat I got everything setup as needed yesterday, and I'm thoroughly enjoying my seemingly new Windows box. However, I can't get at my data. My data is on my old hard drive and I can't seem to get Windows to recognize it as needed, though it works great as the primary disk. I've posted a question with my issue on experts-exchange.com, so hopefully I'll have it fixed soon enough.

My second issue is very minor. I'm adding a 2nd hard drive to my Red Hat 9 machine, and I'm curious to know where you Linux gurus mount a 2nd hard drive? I currently have it mounted as an NTFS drive at /mnt/windows, thanks to the Linux-NTFS Project. But now I want to format it as a Linux filesystem and share it via Samba.

My third issue is a little wierd. I have Samba setup and running, but I can't login to any of the shared directories. The username/password dialog just keeps prompting me (from my Windows machines). I could probably figure out the problem if I spent more than 10 minutes looking for an answer - but alas, I have not.

Windows is running super fast though, and that makes me happy. Posted in General at Jul 13 2003, 09:19:53 PM MDT 6 Comments

Comments:

Before you can use your second harddisk as a linux partition you must change the partition type from NTFS to linux using the command fdisk. Afterwards you can format the partition. Afterwards you can mount the partition via mount, e.g. mount /dev/hdb1 /mnt/foobar. In order to make this mount permanent you have to place an entry into /etc/fstab. See man fstab for more details.

Posted by Lars Hoss on July 14, 2003 at 04:14 AM MDT #

re: Samba - use the Samba configuration GUI in RH9. Make sure you create a user using this config GUI. REMEMBER: Unix user/pass != Samba user/pass

Posted by Pratik Patel on July 14, 2003 at 05:45 AM MDT #

You can too map Windows users to Linux users (username map = /etc/samba/smbusers). A few good kinks: Using Samba (the free book); Troubleshooting Techniques for Samba. I think Samba is not the easiest thing to configure on Linux ;)

Posted by Jean-Philippe Leboeuf on July 14, 2003 at 08:38 AM MDT #

Pratik - I'd love to use the Samba GUI, but couldn't find it. Pointers are appreciated. Also, Lars - I was unable to format the drive using fdisk - I can't remember the error, but something to the effect that it had an NTFS partition. How I can I force a format? Thanks!

Posted by Matt Raible on July 14, 2003 at 08:47 AM MDT #

In answer to your second question. I mount my 'weird old harddrive' on /store and use it for all sorts of storage. My PostgreSQL dumps go there, as do my rsynced CVS repositories, basically everything that isn't a program. In a previous installation I mounted the old weird harddrive on /home so that my homedir would survive reinstallations. If you can't find the redhat gui (which is pretty good) just use smbpasswd (http://ie.samba.org/samba/docs/man/smbpasswd.8.html) 1. Add the user #>smbpasswd -a username 2. Set the password #>smbpasswd username 3. voila.

Posted by Michael Koziarski on July 14, 2003 at 04:20 PM MDT #

In answer to the samba gui : /etc/xinetd.d/swat needs to have disable=yes, then http://localhost:901 should work (mozilla may inibit ports below 1024, try lynx -auth root:password http:localhost:901) In answer to the fdisk problem, this is what I did about a month ago: http://www.yolinux.com/TUTORIALS/LinuxTutorialAddionalHardDrive.html

Posted by James on July 15, 2003 at 03:58 PM MDT #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architecture Consultant specializing in open source frameworks.
« May 2012
SunMonTueWedThuFriSat
  
1
2
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
23
24
25
26
27
28
29
30
31
  
       
Today

Recent Entries

Tag Cloud