Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-16-2002, 04:21 AM   #1
Member (9 bit)
 
Join Date: Jan 2002
Location: UK
Posts: 389
Mini question

Okay i have everything working now - never thought i would every say that but i have :-))))

I have one small problem though, i have two hard drives on this beast and i can only seem to access one at the moment, the other one is a fat32 drive - which sa im aware linux reads all file formats so shouldnt be a problem

where shall i look for this, i no its really stupid but i am extremly new at this

i would of though dev/hdb or something but again im new (& blond) :-)

(and for anyone that remembers me - i got my usb adsl modem working !!!!!!!)

Thanks all
Battery Powered is offline   Reply With Quote
Old 07-16-2002, 02:04 PM   #2
Member (13 bit)
 
DrZaius's Avatar
 
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
Hi BP,

Have you mounted the drive first?
DrZaius is offline   Reply With Quote
Old 07-16-2002, 03:19 PM   #3
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
You need to mount the drive.
Assuming that the FAT32 hard disk is the slave one, and that it uses IDE:
Step 1:
Create an empty folder, you can create it wherever you like, but usually /mnt/ is used, so let's create a folder called fathd in /mnt/.
Step 2:
Switch to super user mode by using the su command and type:
mount -t vfat /dev/hdb1 /mnt/fathd
Now, move to /mnt/fathd, you'll be able to access the files on the first partition, to access the second partition, you need to use /dev/hdb2 in the mount command, and so on.
When you are done, you need touse the umount command, switch to super user and type:
umount /mnt/fathd
If you are using a SCSI drive, use /dev/sdb1 instead of /dev/hdb1 in the mount command.

HTH
aym is offline   Reply With Quote
Old 07-16-2002, 03:26 PM   #4
Member (9 bit)
 
Join Date: Jan 2002
Location: UK
Posts: 389
Ah that is great, you cleared up two things in one then

(i wondered wot SU Root meant in all these tutorials i've been reading - now i no) :-)

Thats really sound though, thx loads

(is there a way to have it do it automatically on bootup?)
Battery Powered is offline   Reply With Quote
Old 07-17-2002, 04:38 PM   #5
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
You need to edit /etc/fstab to do it automatically, open /etc/fstab using the text editor you like and entries for your second hard disk, you need to be root to do so.
aym is offline   Reply With Quote
Old 07-18-2002, 05:00 AM   #6
Member (9 bit)
 
Join Date: Jan 2002
Location: UK
Posts: 389
Right i have my fstab file - it looks like

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
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 iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0


So if i want to have my second harddrive in there too would te extra line look something like


/dev/hdb1 /mnt/files vfat


Whats missing in this line?
Battery Powered is offline   Reply With Quote
Old 07-18-2002, 11:14 AM   #7
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
You need to add:
/dev/hdb1 /mnt/files vfat auto
This line will mount /dev/hdb1 to /mnt/files when Linux is started.

HTH
aym is offline   Reply With Quote
Old 07-18-2002, 11:35 AM   #8
Member (9 bit)
 
Join Date: Jan 2002
Location: UK
Posts: 389
Thx loads :-)
Battery Powered is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:24 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2