LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-27-2005, 08:42 AM   #1
RH9Linux
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Rep: Reputation: 0
Unhappy hda1 and iptables problems


Hi

I'm having two problems with RedHat 9:
1.I'm trying to create a shared FAT32 partition for both windows and linux following the forum tutorial, but when I typed 'df', it onlys shows hda2 and no hda1?
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 9518644 6889072 2236624 76% /
none 256396 0 256396 0% /dev/shm


I checked /dev/hda1 using more, it gave some messed up display:
[root@Red_Hat_LInux dev]# more hda1
JMSWIN4.1�Af��F~--More--(0%)
�faT�e--(0%)
NTLDR is missing)
Disk error
Press any key to restart


tDfFfFfNf�^(�t:^Rf�F$f��Rf�߹





--More--(0%)
}��^f�AVfj--(0%)
V@�ad^r
@uB^re--(0%)
Iu�▒'
Invalid system disk
Disk I/O error
Replace the disk, and then press any key
--More--(0%)
etc.

2.I messed up my iptables, and I cannot connect to google or gmail so I used a script from the forum, and it worked for about 12 hours after I executed the script and then stop working (can't connect to google/gmail), and I have to execute the script again, here's the script I'm using:
cd /sbin/
./iptables -F
./iptables -P OUTPUT ACCEPT
./iptables -P FORWARD DROP
./iptables -P INPUT DROP
./iptables -A INPUT -i lo -j ACCEPT
./iptables -A OUTPUT -o lo -j ACCEPT
./iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT

Thank you very much
 
Old 06-27-2005, 10:16 AM   #2
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
Did you mount it?
 
Old 06-27-2005, 06:03 PM   #3
RH9Linux
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Original Poster
Rep: Reputation: 0
no, i don't know how to mount it, help

when I try to mount hda1, it says:
[root@Red_Hat_LInux dev]# mount hda1
mount: can't find /dev/hda1 in /etc/fstab or /etc/mtab

here's my fstab:
[root@Red_Hat_LInux etc]# more fstab
LABEL=LINUX / ext2 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,u
nhide,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,r
o 0 0

Thank you

Last edited by RH9Linux; 06-27-2005 at 06:25 PM.
 
Old 06-27-2005, 06:42 PM   #4
RH9Linux
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Original Poster
Rep: Reputation: 0
yea ~~ I got it

I need to create a mount point, so:
cd /mnt/
mkdir windows
mount /dev/hda1 /mnt/windows

since my harddisk is FAT32 for Windows partition, I can access it directly from Linux

but the iptables problem still seems strange
 
Old 06-27-2005, 11:22 PM   #5
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
To mount fat32 automaticaly at startup, you should have smth like the following in your /etc/fstab:
Code:
/dev/hda1    /mnt/windows    vfat    umask=022    0    0
umask=000 allows all users to read/write/execute on fat32.
umask=022 allows avarage users to read/execute, and r/w/e for root.
 
Old 06-27-2005, 11:42 PM   #6
RH9Linux
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Original Poster
Rep: Reputation: 0
ok, cool thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie: What is hda1 Unique_slingshot Linux - Newbie 1 08-22-2005 05:00 AM
Mis-ID HDA1 g2jp36695 Amigo 4 03-11-2005 08:10 AM
Windows not HDA1????? rm6990 Linux - Software 2 09-14-2004 05:21 PM
\dev\hda1 ?! maoinchina Linux - General 6 10-06-2003 07:23 AM
/dev/hda1 plisken Linux - General 2 03-14-2003 06:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration