PDA

View Full Version : linux scripting


BroadbandPlacey
2nd March 2005, 21:30
right ive logged onto the sudo bash as root user

edited the file systems at nano /etc/fstab

and ive added the line

/dev/hda1 /mnt/windows vfat rw,user,noauto 0 0

then ive subsequently added the mountpoint as mkdir /mnt/windows

I can see the HD, but it wont open it as it doesnt see hda1 as a HD, what will it be, note its on a partition on the slave drive

BroadbandPlacey
2nd March 2005, 22:12
HAHA, i got a little further, its now recognised the HDD, but can't read fat32? i thought linux was ok with fat 32?

M3ta7h3ad
3rd March 2005, 10:47
its fine with fat32.

So long as you've made a directory called windows in /mnt that line should work fine.

What controller is your harddrive that your trying to mount on? as hda1 is the first partition on the master drive. hdb1 is the first partition on the slave drive, hdc1 is the first partiton on the secondary controller's master, and hdd1 is the first partition on the secondary controller's slave.

You could be trying to add your NTFS partition using the vfat thingy... which wont work.

BroadbandPlacey
3rd March 2005, 16:51
partition magic now says all 3 partitions on the slave drive are just BAD, it wont let me format them or anything? what on earth is going on?

M3ta7h3ad
3rd March 2005, 19:46
erm... thats screwed and I have no idea.

if you want to use linux only on those drives, you could FSCK the drives. Dont ask me how, or what to do as I've never done it myself.

and if you want to run windows on those partitions then do a scandisk/diskcheck thing :) It could just be partition magic fucking about.

BroadbandPlacey
3rd March 2005, 21:36
im worried the drives fully currupted but yet i can still save files to it and i can still log into linux :S