LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-12-2004, 10:18 AM   #1
shurik
LQ Newbie
 
Registered: Sep 2004
Location: Australia
Distribution: Mandrake 10
Posts: 3

Rep: Reputation: 0
Unhappy ntfs and fat32 partitions not appearing in /dev


Hi pplz
I've just installed Mandrake 10 and I am faced with a problem

i have harddrive with 2 ntfs and 1 fat partitions. When i try mounting them :

[root@shurikBox mymount]# mount -t ntfs /dev/hda1 /mnt/win_c
mount: special device /dev/hda1 does not exist

when i looked into the /dev directory, i didnt find hda1

had a look at cat /proc/filesystems

nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev futexfs
nodev tmpfs
nodev pipefs
nodev eventpollfs
nodev devpts
ext2
nodev ramfs
nodev devfs
nodev nfs
nodev nfs4
nodev rpc_pipefs
ext3
nodev usbfs
nodev usbdevfs
nodev supermount
ntfs
nodev nfsd
vfat
iso9660

also
[root@shurikBox mymount]# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1657 13309821 7 HPFS/NTFS
/dev/hda2 1658 9433 62460720 7 HPFS/NTFS
/dev/hda3 9434 9729 2377620 f W95 Ext'd (LBA)
/dev/hda5 9434 9729 2377588+ b W95 FAT32

Disk /dev/hdd: 30.0 GB, 30020272128 bytes
16 heads, 63 sectors/track, 58168 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 12190 6143728+ 83 Linux
/dev/hdd2 12191 58168 23172912 5 Extended
/dev/hdd5 12191 13205 511528+ 82 Linux swap
/dev/hdd6 13206 58168 22661320+ 83 Linux

[root@shurikBox mymount]# mount
/dev/ide/host0/bus1/target1/lun0/part1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /proc/bus/usb type usbfs (rw)
none on /dev type devfs (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/ide/host0/bus1/target1/lun0/part6 on /home type ext3 (rw)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,codepage=850)

thanks for ur help in advance
Alex
 
Old 09-12-2004, 10:49 AM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
I'm not exacly sure why it didn't show up in /dev but you can try creating them yourself
Code:
mknod /dev/hda1 b 3 01
mknod /dev/hda2 b 3 02
..
..
 
Old 09-12-2004, 10:53 AM   #3
Gkarfield
Member
 
Registered: Jul 2004
Location: Greece
Distribution: FreeBSD 6.2/widows[not 8 legs nor black]
Posts: 123

Rep: Reputation: 15
hmmmmmmm ur ntfs drive is hda, that is the boot. but linux does not fully support ntfs as far as i know. that means that you can not use it as a start (boot) for linux.

I am a newbie too.

you have a dual boot up? either linux or windows?

i messed up the MBR, so , now if i want to boot from wins, I have to switch jumpers, to get the correct raw of master/slave. Its a different diskk for win and a different for linux
 
Old 09-12-2004, 11:30 AM   #4
Linux24
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.1
Posts: 204

Rep: Reputation: 30
Quote:
Originally posted by Gkarfield
i messed up the MBR, so , now if i want to boot from wins, I have to switch jumpers, to get the correct raw of master/slave. Its a different diskk for win and a different for linux\
Oh my! Don't do that. You can fix your master boot record! Several options are available to you. Before you start, make sure you have a rescue CD you can boot from or a rescue disk to get back into Linux.

First, try going to lilo.conf, make sure both linux and windows are in there. Does everything look like it should? If so, then exit your editor and type lilo -v at the command line. That will write a new lilo to the master boot record.

If that doesn't work, you know FDISK has a command switch in it to write a new master boot record. Get out your WIndows rescue disk or installation cd, and find fdisk on it. Run fisk /mbr (if I remember correctly - check the built in help to make sure) and Windows version of fdisk will rewrite the master boot record.

WARNING: After doing this, Lilo is GONE! So now test that you can get into Windows, and if you can, use the boot floppy or rescue cd you made to get into Linux.

Now run Lilo again in Linux and you should get a usable Lilo.

No guarantees, and highly dangerous (hope your data is backed up like a good user should) but one of these two avenues should work to restore your MBR.
 
Old 09-12-2004, 11:34 AM   #5
Linux24
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.1
Posts: 204

Rep: Reputation: 30
Re: ntfs and fat32 partitions not appearing in /dev

Quote:
Originally posted by shurik
Hi pplz
I've just installed Mandrake 10 and I am faced with a problem


Device Boot Start End Blocks Id System
/dev/hda1 * 1 1657 13309821 7 HPFS/NTFS
/dev/hda2 1658 9433 62460720 7 HPFS/NTFS
/dev/hda3 9434 9729 2377620 f W95 Ext'd (LBA)
/dev/hda5 9434 9729 2377588+ b W95 FAT32
Alex [/QUOTE]

Are you trying to mount hda1? Why? You won't be able to do anything but read it, and looking at your setup, you can read/write to hda3 and hda5 and use them as file shares.

Trying mounting hda3 and hda5 first. See if you can get those working first, then at least you will have the benefits of being able to hand files back and forth using those shared resources.
 
Old 09-12-2004, 10:44 PM   #6
shurik
LQ Newbie
 
Registered: Sep 2004
Location: Australia
Distribution: Mandrake 10
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Demonbane
I'm not exacly sure why it didn't show up in /dev but you can try creating them yourself
Code:
mknod /dev/hda1 b 3 01
mknod /dev/hda2 b 3 02
..
..
i've tried what you suggested and i got the following when mounting
[root@shurikBox shurik]# mount -t ntfs /dev/hda1 /mnt/win_c
mount: /dev/hda1 is not a valid block device
 
Old 09-12-2004, 10:46 PM   #7
shurik
LQ Newbie
 
Registered: Sep 2004
Location: Australia
Distribution: Mandrake 10
Posts: 3

Original Poster
Rep: Reputation: 0
Re: Re: ntfs and fat32 partitions not appearing in /dev

Quote:
Originally posted by Linux24
Alex


Are you trying to mount hda1? Why? You won't be able to do anything but read it, and looking at your setup, you can read/write to hda3 and hda5 and use them as file shares.

Trying mounting hda3 and hda5 first. See if you can get those working first, then at least you will have the benefits of being able to hand files back and forth using those shared resources.
[/QUOTE]

none of the hda partitions are working
i set up hda5 just for the sharing purpouses
 
Old 09-13-2004, 04:50 AM   #8
Gkarfield
Member
 
Registered: Jul 2004
Location: Greece
Distribution: FreeBSD 6.2/widows[not 8 legs nor black]
Posts: 123

Rep: Reputation: 15
he he linux24, i m a bit experienced. so I have different partitions for data. but I am ok now, i don't want to mess it more ( I have a total of 6 partitions 1 swap and 1 spare
 
Old 09-13-2004, 09:37 AM   #9
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Quote:
i've tried what you suggested and i got the following when mounting
[root@shurikBox shurik]# mount -t ntfs /dev/hda1 /mnt/win_c
mount: /dev/hda1 is not a valid block device
can you post the relevant output in `dmesg`?
 
Old 09-13-2004, 01:27 PM   #10
kenji
Member
 
Registered: Sep 2004
Location: Philippines
Distribution: Slackware
Posts: 143

Rep: Reputation: 16
view ntfs and fat

hi guys

i think we cannot view files in a window$ ntfs partition because linux doesnt support it yet
but you can still view a fat partition! 3

Last edited by kenji; 09-14-2004 at 01:54 PM.
 
Old 09-13-2004, 01:48 PM   #11
Bluenoser
Member
 
Registered: Jun 2004
Location: Nova Scotia, Canada
Distribution: Ubuntu 8.04 LTS
Posts: 138

Rep: Reputation: 15
Quote:
Originally posted by Linux24

If that doesn't work, you know FDISK has a command switch in it to write a new master boot record. Get out your WIndows rescue disk or installation cd, and find fdisk on it. Run fisk /mbr (if I remember correctly - check the built in help to make sure) and Windows version of fdisk will rewrite the master boot record.
Use fdisk /mbr for Win98/Me but if you use XP you'll have to boot your XP cd and press R for the recovery console. Use the command fixmbr and this will rewrite the mbr. This will let you boot directly into windows BUT linux is no longer accessible. You'll then need to use your linux rescue disk to rewrite lilo to the mbr, but I'm not sure how, never had to use that yet And always have your important stuff backed up just in case. It only takes a second to lose it all. Trust me I learned that the hard way.

Mandrake 10 automatically mounts all of my Window partitions in /windows not /mnt like some distros do.
 
Old 09-13-2004, 01:53 PM   #12
Bluenoser
Member
 
Registered: Jun 2004
Location: Nova Scotia, Canada
Distribution: Ubuntu 8.04 LTS
Posts: 138

Rep: Reputation: 15
Re: view ntfs and fat

Quote:
Originally posted by kenji
i think we cannot view files in a window$ ntfs partition because linux doesnt support it yet but you can still view a fat partition
You should be able to read NTFS with the latest distros, writing to NTFS isn't quite perfected yet, but you can read and write to a FAT32 partition. Writing requires permission though. Hope this helps
 
Old 09-14-2004, 06:13 AM   #13
Gkarfield
Member
 
Registered: Jul 2004
Location: Greece
Distribution: FreeBSD 6.2/widows[not 8 legs nor black]
Posts: 123

Rep: Reputation: 15
hey mates, I have suse9.1, and I can read ntfs.

once I moved my disk to an old computer (its NTFS) and the old box had win98. it did not recognize the disk, but with linux it could. that box has linux/win98 (dual boot)
 
Old 09-14-2004, 10:19 AM   #14
Linux24
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.1
Posts: 204

Rep: Reputation: 30
Quote:
Originally posted by Bluenoser
Use fdisk /mbr for Win98/Me but if you use XP you'll have to boot your XP cd and press R for the recovery console. Use the command fixmbr and this will rewrite the mbr. This will let you boot directly into windows BUT linux is no longer accessible. You'll then need to use your linux rescue disk to rewrite lilo to the mbr, but I'm not sure how, never had to use that yet
Here's how:

1. Set BIOS to boot from CD before hard drive
2. Put in Linux CD and boot
3. Choose whatever option is not "install" so you can go into rescue mode. You might have a prompt. Type rescue at the prompt.
4. Mount your filesystem.

When you boot from the CD, Linux loads into RAM - a sort of mini-linux without most of your goodies. It has a pretend filesystem. So, if you CD to /etc and do an ls, it will show files, but they are NOT the files on your hard drive. After you use the option to mount your filesystem, your real hard drive file system will be mounted as if it were a separate disk partition. I find mine under /mnt. So, to edit lilo or grub, you then cd /mnt/etc or /mnt/boot wherever it is.

5. as root, run lilo -v
6. lilo takes over the MBR again
7. removed CD and reboot.
 
Old 09-14-2004, 02:05 PM   #15
kenji
Member
 
Registered: Sep 2004
Location: Philippines
Distribution: Slackware
Posts: 143

Rep: Reputation: 16
Re: Re: view ntfs and fat

Quote:
Originally posted by Bluenoser
You should be able to read NTFS with the latest distros, writing to NTFS isn't quite perfected yet, but you can read and write to a FAT32 partition. Writing requires permission though. Hope this helps
thanks for your correction and sorry i didnt know

well i still did researched have you ever tried /sbin/fdisk -l
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
seeing/reading ntfs/fat32 partitions from linuxFC4 teto Linux - Newbie 12 11-27-2005 12:29 PM
A Distro for the FAT+FAT32+NTFS Partitions ... Daejavu Linux - Distributions 9 07-13-2005 04:30 AM
accessing my FAT32 and NTFS partitions d0tc0mguy Linux - Newbie 2 04-21-2005 04:42 PM
[NTFS]/[EXT(2 or 3)]/[FAT/FAT32] partitions fraz Linux - Software 5 11-14-2004 08:43 AM
Editing NTFS and FAT32 partitions under linux? eire Linux - Hardware 2 12-07-2003 07:54 PM


All times are GMT -5. The time now is 10:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration