partition existede but suddenly vanished under /dev/

Asked by Tralala

My first disk hda has two partitions, hda1 (ntfs) and hda2 (fat)

Initially, I could mount and work with the hda2 perfectly... since some weeks, I can't, because there is no /dev/hda2 file, while /dev/hda1 is still there, and also can be mounted

These are the outputs of some commands i made

ls /dev/hd*
/dev/hda /dev/hda1 /dev/hdb /dev/hdb1 /dev/hdb2 /dev/hdb3 /dev/hdc

mount
/dev/hdb2 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hdb1 on /home type ext3 (rw)
/dev/hda1 on /media/hda1 type fuseblk (rw,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
securityfs on /sys/kernel/security type securityfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/dev/hdc on /media/cdrom0 type iso9660 (ro,nosuid,nodev,user=egw)

sudo 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
Disk identifier: 0x5bc45bc4

  Device Boot Start End Blocks Id System
/dev/hda1 * 1 16708 134206978+ 7 HPFS/NTFS
/dev/hda2 16709 19457 22081342+ b W95 FAT32

sudo mount /dev/hda2
mount: can't find /dev/hda2 in /etc/fstab or /etc/mtab

dmesg | grep hda
[ 42.132114] ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:DMA, hdb:DMA
[ 42.544762] hda: WDC WD1600JB-00REA0, ATA DISK drive
[ 44.095747] hda: max request size: 512KiB
[ 44.110925] hda: 312581808 sectors (160041 MB) w/8192KiB Cache, CHS=19457/255/63, UDMA(100)
[ 44.111013] hda: cache flushes supported
[ 44.111050] hda: hda1 hda2

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dines683 (dines683) said :
#1

how does your fstab file look like?

Revision history for this message
Tralala (elfiness) said :
#2

This is the fstab

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hdb2
UUID=38108512-9faf-4844-aff6-3f6005185bc7 / ext3 defaults,errors=remount-ro 0 1
# /dev/hdb1
UUID=62ca7d4f-09ca-47d5-9043-e677e32bf27d /home ext3 defaults 0 2
# /dev/hda1
UUID=08B41BB1B41B9FEC /media/hda1 ntfs defaults,umask=007,gid=46 0 1
# /dev/hdb3
UUID=e368250f-312c-4c02-b1ee-1c03bcce855f none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0
/dev/hdb3 /media/hdb3 swap defaults 0 0
#/dev/hda2 /media/hda2 vfat uid=egw,iocharset=iso8859-1,owner,noauto,fat=16 0 0
/dev/hda1 /media/hda1 ntfs defaults 0 0

Revision history for this message
ajmal_82 (ajmal-82) said :
#3

firstly do u have windows then go into that check for partitions from mycomputer>manage .if its linux only problem then i cant help what does qtparted or gparted says? does they detect it or not.which ubuntu you are using.try using rescure cd or knoppix.

Revision history for this message
Tralala (elfiness) said :
#4

I have Gutsy Gibbon. My gparted doesn't see /dev/hda2 either

Windows can see perfectly the partition (as D: )

I logged in with the GG Ubuntu Live once more, and it could also see /dev/hda2

I must also mention that the second to last line #/dev/hda2 /media/hda2 vfat uid=egw,iocharset=iso8859-1,owner,noauto,fat=16 0 0 is from an older failed attempt of mine to mount the partition automatically with each boot. I didn't manage it so I commented it out. I don't think I did anything wrong so I can't explain why it wasn't mounted automatically. Perhaps it is related?

Revision history for this message
Tralala (elfiness) said :
#5

UPDATE: A friend proposed to type

sudo mknod /dev/hda2 b 3 2

This indeed made /dev/hda2 appear. I could even mount the disk. However this didn't fix the problem permanently. I must type it any time I want to mount the disk. I still haven't found out why it doesn't appear automatically

Revision history for this message
ajmal_82 (ajmal-82) said :
#6

hey i too faced same problem,its the partition table thats not showing up.i strongly suggest you use some windows partitionsoftware like partition magic or use XP.connect to some other pc and format.then plug it in,and see difference.thanks bye.

Can you help with this problem?

Provide an answer of your own, or ask Tralala for more information if necessary.

To post a message you must log in.