Results 1 to 2 of 2
Today I added a new small 6 gig harddrive so I can share stuff between windows and linux. I formatted it as FAT32 in windows XP Pro, and transferred my ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-14-2004 #1Linux Newbie
- Join Date
- Feb 2004
- Posts
- 139
help! -- /etc/fstab
Today I added a new small 6 gig harddrive so I can share stuff between windows and linux. I formatted it as FAT32 in windows XP Pro, and transferred my music, pics, and other stuff to it. I then booted into linux, and in the boot, I was asked if I wanted to set this up, and I selected to mount it as /shared. I saved the settings, and it continued to boot. I tried to access it once I was logged in and it says Access is denied to /shared. I login as root and chmod recursive the whole dir to 777. I still got nothing as a normal user...but can access it as root. I was going to have a look at fstab and when I was in as root and put /etc/fstab, this is what I got:
I took a look at the fstab in vi, and this is what I got:Code:[root@s2 root]# /etc/fstab /etc/fstab: line 1: /dev/hda6: Permission denied /etc/fstab: line 2: none: command not found /etc/fstab: line 3: /dev/hdc: Permission denied /etc/fstab: line 4: /dev/hdd: Permission denied /etc/fstab: line 5: none: command not found /etc/fstab: line 6: /dev/hda1: Permission denied /etc/fstab: line 7: none: command not found /etc/fstab: line 8: /dev/hda5: Permission denied /etc/fstab: line 9: none: command not found
What is wrong? Why won't fstab work and why can't a normal user see the 2nd harddrive?Code:/dev/hda6 / ext3 defaults 1 1 none /dev/pts devpts mode=0620 0 0 /dev/hdc /mnt/cdrom auto umask=0022,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0 /dev/hdd /mnt/cdrom2 auto umask=0022,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0 none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0022,iocharset=iso8859-1,sync,codepage=850 0 0 /dev/hda1 /mnt/windows ntfs umask=0022,nls=iso8859-1,ro 0 0 none /proc proc defaults 0 00 /dev/hda5 swap swap defaults 0 0 none /mnt/hd supermount dev=/dev/ide/host0/bus0/target1/lun0/part1,fs=ext2:vfat,--,umask=0022,iocharset=iso8859-1,kudzu,codepage=850 0 0
BTW, only way root could see it was by mounting it with: mount /dev/hdb1 /shared.
Mandrake Linux 10.0 Official
Kernel 2.6.3-7mdk
P4 @ 1.7GHz
512MB RAM
60GB Seagate | 6GB Western DigitalIf you love something, emerge it
- 06-14-2004 #2
Try adding this line to your /etc/fstab:
With that line, any user should be able to mount it by typing:Code:/dev/hdb1 /shared vfat user,noauto,noatime 0 2
The user that executes that command will be the owner.Code:mount /shared
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy


Reply With Quote
