LinuxQuestions.org
Visit Jeremy's Blog.
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 08-19-2003, 06:31 AM   #1
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Rep: Reputation: 30
Arrow 60GB Fat32 drive mounting Problem


i want to mount 60GB seagate harddisk formated as Fat32 filessytem with seagate diskmanager and connected to adapetc raid card.
i was working fine and mounted as NTFS but now i want to mount is as fat32 drive which is hardware mirror to another 60GB segate driver also formated as Fat32 filessytem with seagate diskmanager and connected to adapetc raid card
there is not any problem about mirroing or raid ,
juts tell me how i can mount it
with fdisk -l command give following paramets

Disk /dev/hde: 60.0 GB, 60022480896 bytes
16 heads, 63 sectors/track, 116301 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hde1 1 116301 58615672+ 83 Linux

and i amd using this following command
mount /dev/hde1 /mnt/Data-Drive -t vfat -r -o umask=0222

with NTFS it was working fine with this command
mount /dev/hde1 /mnt/Data-Drive -t ntfs -r -o umask=0222

and please tell me its auot mount command for fstab

thanks
 
Old 08-19-2003, 10:21 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Re: 60GB Fat32 drive mounting Problem

Quote:
Originally posted by mobassir
Disk /dev/hde: 60.0 GB, 60022480896 bytes
16 heads, 63 sectors/track, 116301 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hde1 1 116301 58615672+ 83 Linux

and i amd using this following command
mount /dev/hde1 /mnt/Data-Drive -t vfat -r -o umask=0222
The partition filesystem type is linux. If you want it as a FAT32 fyou will need to use fdisk to change it to FAT32 filesystem type and format it.

Last edited by michaelk; 08-19-2003 at 10:52 AM.
 
Old 08-19-2003, 10:32 AM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
To mount a FAT32 filesystem automatically on Boot-up, put an entry at the bottom of your /etc/fstab file on a new line -

/dev/hde1 /mnt/Data-Drive vfat defaults,umask=000 0 0

(defaults includes the auto option for automatic mounting on boot up


To Temporarily mount a FAT32 filesystem from the command line – su to Root user - then type:

mount –t vfat –o rw /dev/hde1 /mnt/Data-Drive
 
Old 08-20-2003, 02:41 AM   #4
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Original Poster
Rep: Reputation: 30
Device Boot Start End Blocks Id System
/dev/hde1 1 116301 58615672+ 83 Linux

yes File system id is 83 , but how i format this drive by win98 disk and it should be fat32, ok any way , i want to use it as fat32 file system. i am using fdisk, should di fdisk /dev/hde1 or fdisk /dev/hde for changing id of drive, i want only 1 partitions and please see following information with thses 2 commands


1- fdisk /dev/hde1 (its view of partition table)

Disk /dev/hde1: 60.0 GB, 60022448640 bytes
16 heads, 63 sectors/track, 116300 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hde1p1 ? 540117 1080622 272414512+ 64 Novell Netware 286
Partition 1 does not end on cylinder boundary.
/dev/hde1p2 ? 1319628 1854326 269488144 20 Unknown
Partition 2 does not end on cylinder boundary.
/dev/hde1p3 ? 534712 1921977 699181456 53 OnTrack DM6 Aux3
Partition 3 does not end on cylinder boundary.
/dev/hde1p4 ? 1383560 1383581 10668+ 49 Unknown
Partition 4 does not end on cylinder boundary.


2- fdisk /dev/hde

The number of cylinders for this disk is set to 116301.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

after changing id should i format partition if yes then tell me how but dont forget i want fat32 filesystem

tyanks
 
Old 08-20-2003, 05:32 AM   #5
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Original Poster
Rep: Reputation: 30
ok

i convert id of hde

Command (m for help): p
Device Boot Start End Blocks Id System
/dev/hde1 1 116301 58615672+ b Win95 FAT32

then use following command recomend by SKY line

mount –t vfat –o rw /dev/hde1 /mnt/Data-Drive

giving this massege

[root@Omar-Pc root]# mount –t vfat –o rw /dev/hde1 /mnt/Data-Drive
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options].
For many more details, say man 8 mount

i think some thing wrong with command format

waiting for reply
 
Old 08-20-2003, 08:54 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Unless you had a typo it I don't see anything wrong.

How did you format the partition?
 
Old 08-21-2003, 05:30 AM   #7
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Original Poster
Rep: Reputation: 30
hello
with this following command drive has sucessfully mount

mount /dev/hde1 /mnt/Data-Drive -t vfat -r -o umask=022

but when i tried to write any thig or want to ceart new folder it gives read only error.
i just chang its id 83 to b (win95 fat32)
whats wrong now , may its requier format i dont know in microsoft aftre every creation of new partition formating is requied, in linux i dont know even proper way of formating for specifid id

waiting for reply
 
Old 08-21-2003, 07:32 AM   #8
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Original Poster
Rep: Reputation: 30
finaly i used this command get help from man mount
now i can read and write
mount /dev/hde1 /mnt/temp -t vfat -w -o umask=02
now what command should i type in fstab

any one know how can unmount any mount drive , mean

thanks
 
Old 08-21-2003, 08:27 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
To unmount drive:
umount /mnt/temp
or
umount /dev/hde1

/etc/fstab

/dev/hde1 /mnt/temp vfat user,umask=000 0 0

Will mount hde1 mount on boot.
Will let any user read / write and mount / umount.

See man pages for fstab and mount for additional info.
 
Old 08-22-2003, 02:50 AM   #10
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Original Poster
Rep: Reputation: 30
i used both commands, and get following responce

[root@Omar-Pc root]# unmount /dev/hde1
bash: unmount: command not found

[root@Omar-Pc root]# unmount /mnt/Data-Drive
bash: unmount: command not found

, is it any methord any new entry start work without restart in fstab
i am using following command in fstab, # sign is ok for remark and what is diffirence umask=000 0 and umast=0222

# /dev/hde1 /mnt/Data-Drive vfat defaults,umask=000 0 0
# /dev/hde1 /mnt/Data-Drive -t vfat -w -o umask=0222
/dev/hde1 /mnt/Data-Drive vfat user,umask=000 0 0

thanks again for all
 
Old 08-22-2003, 03:00 AM   #11
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
The command is umount not unmount theirs no -n- after the u, this caught me out for a while.

Last edited by leonscape; 08-22-2003 at 03:02 AM.
 
Old 08-25-2003, 03:21 AM   #12
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Original Poster
Rep: Reputation: 30
Yes u are right command is umount.
I have done almost all issue regarding my raid and mounting problem with 60GB hard disk connected with card.

Now both 60 GB hard dirves are connected with Adaptec raid 1200A , and hardware mirror has eshtablished (stiil have to check that working or not) .
Drives are formated with Fat32 filesystem , ID type c in fdisk.
Auto mount with this following entry in /etc/fstab
/dev/hde1 /mnt/Data-Drive vfat user,umask=000 0 0

Thansk and Regard
 
  


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
mounting a fat32 drive in SuSE 9.1 el kab0ng Linux - Newbie 2 07-08-2005 11:49 AM
Mounting a FAT32 drive benedict Fedora 3 11-27-2004 04:18 PM
Mounting a fat32 drive in whitebox TazLinux Linux - Hardware 1 11-24-2004 04:17 PM
Help mounting a FAT32 drive in Mandrake 10.0 Community mannymann Linux - Newbie 4 05-13-2004 02:49 AM
mounting windows FAT32 Drive christong Linux - Software 2 10-15-2003 05:38 PM

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

All times are GMT -5. The time now is 07:22 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