Re: [gentoo-user] Can't mount a fat32 partition

2005-07-14 Thread Mariusz Pękala
On 2005-07-13 23:29:56 + (Wed, Jul), aabb wrote:
 I use 2 partitions for Windows 98, hda1 and hda5. I set both up as type
 c (fat32 LBA) during my gentoo installation, using fdisk. The entries
 in /etc/fstab are almost identical:
 
 /dev/hda1/mnt/win_cvfatumask=0,noexec  0 0
 /dev/hda5/mnt/win_dvfatumask=0,noexec  0 0
 
 Yet hda1 mounts with no problems, whereas hda5 doesn't. If I execute
 mount /mnt/win_d I get the error:
 
 mount: wrong fs type, bad option, bad superblock on /dev/hda5,
or too many mounted file systems
 
 I tried various combinations (such as mount -t vfat /dev/hda5
 /mnt/win_d) and always get the same error. The only differences between
 the 2 partitions that I can think of are:
 

Check any messages in dmesg output and your syslog file
(/var/log/messages or /var/log/everything/current) after you try to
mount /dev/hda5.

Usually the winner is the lack of necessary encoding in kernel:
File Systems - Native Language Support - ...

I assume that /dev/hda5 _HAS_ proper FAT filesystem on it.. ;-)

HTH

-- 
No virus found in this outgoing message.
Checked by 'grep -i virus $MESSAGE'
Trust me.


pgp0rm0SW0ZXJ.pgp
Description: PGP signature


Re: [gentoo-user] Can't mount a fat32 partition

2005-07-14 Thread Richard Fish
aabb wrote:

Thanks for all replies so far.

  

What's the output of fdisk -l /dev/hda?
 



Output from fdisk -l /dev/hda:

Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot  Start End  Blocks   Id  System
/dev/hda1   *   1179414410273+   c  W95 FAT32 (LBA)
/dev/hda217951800   48195   83  Linux
/dev/hda31801   19457   141829852+   5  Extended
/dev/hda51801420019277968+   c  W95 FAT32 (LBA)
/dev/hda64201710023294218+  83  Linux
/dev/hda771017190  722893+  82  Linux swap / Solaris
/dev/hda87191   1945798534646   83  Linux

  


Maybe it isn't really a FAT32 filesystem?

Could you try something like: strings /dev/hda5  | less

With a FAT32 filesystem, I get:

mkdosfs
BRJF_KEYFAT32
This is not a bootable disk.  Please insert a bootable floppy and
press any key to try again ...
RRaA
rrAa{
mkdosfs
BRJF_KEYFAT32
This is not a bootable disk.  Please insert a bootable floppy and
press any key to try again ...
list of short filenames on system...

Obviously I formatted the above with mkdosfs, but you can see the label
(RJF_KEY) and type as well.

By comparison, on NTFS, I get:

374 t+a`j
454 Invalid partition table
504 Error loading operating system
543 Missing operating system
0077003 NTFS
...

HTH

-Richard
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Can't mount a fat32 partition

2005-07-14 Thread aabb
Thanks all. It's fixed. When I ran dosfsck /dev/hda5 I got the error:

Logical sector size is zero

So I re-created the file system with mkfs -t vfat -F 32 /dev/hda5
(after backing up all my files!) and now it mounts properly. Not sure I
understand it because I hadn't run the mkfs command on hda1 either. I
formatted both from Win98.

Thanks again,

Alex

Maybe it isn't really a FAT32 filesystem?

Could you try something like: strings /dev/hda5  | less

With a FAT32 filesystem, I get:

mkdosfs
BRJF_KEYFAT32
This is not a bootable disk.  Please insert a bootable floppy and
press any key to try again ...
RRaA
rrAa{
mkdosfs
BRJF_KEYFAT32
This is not a bootable disk.  Please insert a bootable floppy and
press any key to try again ...
list of short filenames on system...

Obviously I formatted the above with mkdosfs, but you can see the label
(RJF_KEY) and type as well.

By comparison, on NTFS, I get:

374 t+a`j
454 Invalid partition table
504 Error loading operating system
543 Missing operating system
0077003 NTFS
...

HTH

-Richard
  


-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Can't mount a fat32 partition

2005-07-13 Thread aabb
Hi,

Here's a strange one...

I use 2 partitions for Windows 98, hda1 and hda5. I set both up as type
c (fat32 LBA) during my gentoo installation, using fdisk. The entries
in /etc/fstab are almost identical:

/dev/hda1/mnt/win_cvfatumask=0,noexec  0 0
/dev/hda5/mnt/win_dvfatumask=0,noexec  0 0

Yet hda1 mounts with no problems, whereas hda5 doesn't. If I execute
mount /mnt/win_d I get the error:

mount: wrong fs type, bad option, bad superblock on /dev/hda5,
   or too many mounted file systems

I tried various combinations (such as mount -t vfat /dev/hda5
/mnt/win_d) and always get the same error. The only differences between
the 2 partitions that I can think of are:

(a) hda1 is primary whereas hda5 is logical
(b) hda5 is larger than hda1 (20 Gb and 15 Gb, respectively)
(c) hda1 is set as the boot partition in fdisk.

If I type the above error in Google I get many hits, but nothing helped.
Any ideas?

Thanks.
Alex
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Can't mount a fat32 partition

2005-07-13 Thread Colin

aabb wrote:


Hi,

Here's a strange one...

I use 2 partitions for Windows 98, hda1 and hda5. I set both up as type
c (fat32 LBA) during my gentoo installation, using fdisk. The entries
in /etc/fstab are almost identical:

/dev/hda1/mnt/win_cvfatumask=0,noexec  0 0
/dev/hda5/mnt/win_dvfatumask=0,noexec  0 0

Any of the mask entries correspond to octal permission;  therefore, they 
need to be three-digit numbers.  I recommend 022 (rwxr-xr-x), but I 
assume you want 000 (rwxrwxrwx).  Don't forget to set uid and gid or 
else only root will have access to the files!


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Can't mount a fat32 partition

2005-07-13 Thread Wade Brown
That doesn't seem to address the issue as mounting by hand still spits
out errors relative to partition problems.  What's the output of
fdisk -l /dev/hda?

On 7/13/05, Colin [EMAIL PROTECTED] wrote:
 aabb wrote:
 
 Hi,
 
 Here's a strange one...
 
 I use 2 partitions for Windows 98, hda1 and hda5. I set both up as type
 c (fat32 LBA) during my gentoo installation, using fdisk. The entries
 in /etc/fstab are almost identical:
 
 /dev/hda1/mnt/win_cvfatumask=0,noexec  0 0
 /dev/hda5/mnt/win_dvfatumask=0,noexec  0 0
 
 Any of the mask entries correspond to octal permission;  therefore, they
 need to be three-digit numbers.  I recommend 022 (rwxr-xr-x), but I
 assume you want 000 (rwxrwxrwx).  Don't forget to set uid and gid or
 else only root will have access to the files!
 
 --
 Colin
 
 --
 gentoo-user@gentoo.org mailing list
 


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Can't mount a fat32 partition

2005-07-13 Thread Renat Golubchyk
On Wed, 13 Jul 2005 18:39:38 -0400 Colin [EMAIL PROTECTED] wrote:
 aabb wrote:
 Here's a strange one...
 
 I use 2 partitions for Windows 98, hda1 and hda5. I set both up as
 type c (fat32 LBA) during my gentoo installation, using fdisk. The
 entries in /etc/fstab are almost identical:
 
 /dev/hda1/mnt/win_cvfatumask=0,noexec  0 0
 /dev/hda5/mnt/win_dvfatumask=0,noexec  0 0

What's the output of fdisk -l /dev/hda?
BTW, I use noauto,noexec,user,fmask=0133 as options in fstab for vfat
partitions.

 Any of the mask entries correspond to octal permission;  therefore,
 they  need to be three-digit numbers.  I recommend 022 (rwxr-xr-x),
 but I  assume you want 000 (rwxrwxrwx).  Don't forget to set uid and
 gid or  else only root will have access to the files!

I set file mask to fmask=0133 on vfat partitions, because files on
windows partitions don't need the executable bit. It only annoys me when
Midnight Commander tries to execute them after I press ENTER.

Cheers,
Renat

-- 
Probleme kann man niemals mit derselben Denkweise lösen,
durch die sie entstanden sind.
  (Einstein)


pgpDnKgGIf0GN.pgp
Description: PGP signature