Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mount says /dev/hda1 (/boot) is ntfs?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Namor
n00b
n00b


Joined: 14 Jun 2002
Posts: 43
Location: Madison, WI US

PostPosted: Mon Sep 23, 2002 2:46 pm    Post subject: mount says /dev/hda1 (/boot) is ntfs? Reply with quote

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
View user's profile Send private message
de4d
Apprentice
Apprentice


Joined: 12 Sep 2002
Posts: 181
Location: fr. i. br. (ger)

PostPosted: Mon Sep 23, 2002 3:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Sep 23, 2002 9:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Curious
Bodhisattva
Bodhisattva


Joined: 13 May 2002
Posts: 395
Location: Sydney, Australia

PostPosted: Mon Sep 23, 2002 11:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Curious
Bodhisattva
Bodhisattva


Joined: 13 May 2002
Posts: 395
Location: Sydney, Australia

PostPosted: Tue Sep 24, 2002 11:55 am    Post subject: Reply with quote

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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue Sep 24, 2002 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
vimarone
n00b
n00b


Joined: 16 Sep 2002
Posts: 9

PostPosted: Tue Sep 24, 2002 11:37 pm    Post subject: grub problems Reply with quote

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
View user's profile Send private message
Frashii
n00b
n00b


Joined: 30 Sep 2002
Posts: 4
Location: Anchorage, Alaska

PostPosted: Mon Sep 30, 2002 5:22 am    Post subject: Re: grub problems Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum