View previous topic :: View next topic |
Author |
Message |
Namor n00b
Joined: 14 Jun 2002 Posts: 43 Location: Madison, WI US
|
Posted: Mon Sep 23, 2002 2:46 pm Post subject: mount says /dev/hda1 (/boot) is ntfs? |
|
|
When I try to mount /dev/hda1 which is my /boot mountpoint I am told it is ntfs. If I mount it using "-t ext3" (its an ext3 partition by the way) everythign is fine.
I'm just wondering why it might think it is ntfs? |
|
Back to top |
|
|
de4d Apprentice
Joined: 12 Sep 2002 Posts: 181 Location: fr. i. br. (ger)
|
Posted: Mon Sep 23, 2002 3:21 pm Post subject: |
|
|
every partition has one byte information about the partition type (so called system id), no matter what filesystem u put into this partition.
mount guesses the filesystem by reading this byte (whenever you dont specify it).
try fdisk /dev/hdxy and change this byte (maybe with 't' - didnt try) _________________ void main(){fork();main();} |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Mon Sep 23, 2002 9:35 pm Post subject: |
|
|
This thread might be of some help, although I haven't managed to track down Naan Yaar's final mysterious reference yet. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
Curious Bodhisattva
Joined: 13 May 2002 Posts: 395 Location: Sydney, Australia
|
Posted: Mon Sep 23, 2002 11:47 pm Post subject: |
|
|
I've seen this problem as well, migrating systems from Windows XP to Gentoo. Perhaps fdisk is not correctly writing a file system identification byte.
Once you have an entry in your /etc/fstab, this problem should slip under the radar, but as it isn't just me with this problem, I'll troll the mount sourcecode tonight and see if I can ascertain where it's pulling the fs id from.
Do we have a tool like debian 'reportbug' to file bugs with upstream maintainers? That sucka was hella useful.
-- Curious. _________________ Are you down with the Hawk? |
|
Back to top |
|
|
Curious Bodhisattva
Joined: 13 May 2002 Posts: 395 Location: Sydney, Australia
|
Posted: Tue Sep 24, 2002 11:55 am Post subject: |
|
|
Curious wrote: | I'll troll the mount sourcecode tonight and see if I can ascertain where it's pulling the fs id from. |
Inspecting the mount source, the relevant section is:
Code: | else if(!strncmp(xsb.ntfssb.s_magic, NTFS_SUPER_MAGIC, sizeof(xsb.ntfssb.s_magic)))
type = "ntfs"; |
Examining my hda, the partition table looks thus:
Code: | Device Boot Start End Blocks Id System
/dev/hda1 1 17 136521 83 Linux
/dev/hda2 18 83 530145 82 Linux swap
/dev/hda3 84 4865 38411415 83 Linux |
But, lo and behold, upon reading the partition using the code in mount ( inside mount_guess_fstype.c ), it is indeed finding the NTFS magic on the paritition hda1 ( along with bonus spaces ).
So I conclude that mke2fs is not zeroing out as much stuff as perhaps it should be. I'll check those sources later and see what happens. In the meantime, I'd suggest people dd /dev/zero over the top of their new partitions if this bothers them.
-- Curious. _________________ Are you down with the Hawk? |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Tue Sep 24, 2002 12:05 pm Post subject: |
|
|
I think I was referring to this thread. This thread also covers the same ground. The error is triggered by "ghost data" on the superblock rather than fs type in the partition table; solution covered in both threads is use of dd.
rac wrote: | This thread might be of some help, although I haven't managed to track down Naan Yaar's final mysterious reference yet. |
|
|
Back to top |
|
|
vimarone n00b
Joined: 16 Sep 2002 Posts: 9
|
Posted: Tue Sep 24, 2002 11:37 pm Post subject: grub problems |
|
|
I have had nothing but problems with my /boot partition and grub.
however the above threads mentions by Naan Yaar did the trick
doing
dd if=/dev/zero of=/dev/hda1
then setting up ext3 on /dev/hda1
followed the rest of the installation, chrooted into /mnt/gentoo, then emerged grub
It was wonderful, it worked perfectly without any problems.
thanks |
|
Back to top |
|
|
Frashii n00b
Joined: 30 Sep 2002 Posts: 4 Location: Anchorage, Alaska
|
Posted: Mon Sep 30, 2002 5:22 am Post subject: Re: grub problems |
|
|
vimarone wrote: | doing
dd if=/dev/zero of=/dev/hda1
then setting up ext3 on /dev/hda1
|
Thanks Vimarone!
I was getting a 'bad fs type' or too many fs mounted or bad superblock error on hda1. These steps fixed it and I was able to mke2fs /dev/hda1 and mount it fine! |
|
Back to top |
|
|
|