Re: /dev/hda3 is not a block device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Very good Carlos, you solved my problem and now I have my files back.
Your help was clear and concise!
Thank you.
Bob Goodwin

Carlos Mora wrote:

The /dev/hda* directory listing is the problem. Remove the directory
'/bin/rm -rf /dev/hda3'. Then do a /dev/MAKEDEV had

That should remake all the hda device files and you should be ok at that
point. I would still do the fsck on /dev/hda3 and then mount it.


Carlos



-----Original Message-----
From: Bob Goodwin [mailto:robert.goodwin2@xxxxxxxxxxxxxxxx]
Sent: Tuesday, March 02, 2004 10:15 AM
To: shrike-list@xxxxxxxxxx
Cc: Carlos.Mora@xxxxxxx
Subject: Re: /dev/hda3 is not a block device

Carlos Mora wrote:



Let's get some information first. How about doing an fdisk -l /dev/hda.



# fdisk -l /dev/hda

Disk /dev/hda: 6850 MB, 6850206720 bytes
255 heads, 63 sectors/track, 832 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

 Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       261   2096451    6  FAT16
/dev/hda2           262       274    104422+  83  Linux
/dev/hda3           275       767   3960022+  83  Linux
/dev/hda4           768       832    522112+   5  Extended
/dev/hda5           768       832    522081   82  Linux swap



What filesystem type did you setup on /dev/hda?



I had intended to include the "fstab" file but missed it.

# cat /etc/fstab
LABEL=/1                /                       ext3    defaults        1 1
LABEL=/boot1            /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hda5               swap                    swap    defaults        0 0
/dev/hdb3               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660
noauto,owner,kudzu,ro 0 0
/dev/fd0                /mnt/floppy             auto
noauto,owner,kudzu 0 0
/dev/hda2               /mnt/hda2               auto    defaults        0 0
/dev/hda3               /mnt/hda3               auto    defaults        0 0
/dev/hda1               /mnt/dos                auto    noauto,owner    0 0



Try doing an 'fsck /dev/hda3' first.



# fsck /dev/hda3
fsck 1.32 (09-Nov-2002)
Could not determine filesystem type for /dev/hda3
fsck: fsck.auto: not found
fsck: Error 2 while executing fsck.auto for /dev/hda3

[I believe fsck wants an "ext2" file system and I think this was ext3.]



Try mounting without using fstab: mount -t ext3 /dev/hda3 /mnt/hda3



# mount -t ext3 /dev/hda3 /mnt/hda3
mount: /dev/hda3 is not a block device      [Same problem "not a block
device?]

A directory listing. Notice that hda3 is listed separately at the bottom?

# ls -la /dev/hda* --color=never
brw-rw----    1 root     disk       3,   0 Jan 30  2003 /dev/hda
brw-rw----    1 root     disk       3,   1 Jan 30  2003 /dev/hda1
brw-rw----    1 root     disk       3,  10 Jan 30  2003 /dev/hda10
brw-rw----    1 root     disk       3,  11 Jan 30  2003 /dev/hda11
brw-rw----    1 root     disk       3,  12 Jan 30  2003 /dev/hda12
brw-rw----    1 root     disk       3,  13 Jan 30  2003 /dev/hda13
brw-rw----    1 root     disk       3,  14 Jan 30  2003 /dev/hda14
brw-rw----    1 root     disk       3,  15 Jan 30  2003 /dev/hda15
brw-rw----    1 root     disk       3,  16 Jan 30  2003 /dev/hda16
brw-rw----    1 root     disk       3,  17 Jan 30  2003 /dev/hda17
brw-rw----    1 root     disk       3,  18 Jan 30  2003 /dev/hda18
brw-rw----    1 root     disk       3,  19 Jan 30  2003 /dev/hda19
brw-rw----    1 root     disk       3,   2 Jan 30  2003 /dev/hda2
brw-rw----    1 root     disk       3,  20 Jan 30  2003 /dev/hda20
brw-rw----    1 root     disk       3,  21 Jan 30  2003 /dev/hda21
brw-rw----    1 root     disk       3,  22 Jan 30  2003 /dev/hda22
brw-rw----    1 root     disk       3,  23 Jan 30  2003 /dev/hda23
brw-rw----    1 root     disk       3,  24 Jan 30  2003 /dev/hda24
brw-rw----    1 root     disk       3,  25 Jan 30  2003 /dev/hda25
brw-rw----    1 root     disk       3,  26 Jan 30  2003 /dev/hda26
brw-rw----    1 root     disk       3,  27 Jan 30  2003 /dev/hda27
brw-rw----    1 root     disk       3,  28 Jan 30  2003 /dev/hda28
brw-rw----    1 root     disk       3,  29 Jan 30  2003 /dev/hda29
brw-rw----    1 root     disk       3,  30 Jan 30  2003 /dev/hda30
brw-rw----    1 root     disk       3,  31 Jan 30  2003 /dev/hda31
brw-rw----    1 root     disk       3,  32 Jan 30  2003 /dev/hda32
brw-rw----    1 root     disk       3,   4 Jan 30  2003 /dev/hda4
brw-rw----    1 root     disk       3,   5 Jan 30  2003 /dev/hda5
brw-rw----    1 root     disk       3,   6 Jan 30  2003 /dev/hda6
brw-rw----    1 root     disk       3,   7 Jan 30  2003 /dev/hda7
brw-rw----    1 root     disk       3,   8 Jan 30  2003 /dev/hda8
brw-rw----    1 root     disk       3,   9 Jan 30  2003 /dev/hda9

/dev/hda3:
total 124
drwxr-xr-x    2 root     root         4096 Feb 29 17:05 .
drwxr-xr-x   21 root     root       118784 Mar  2 08:47 ..


Directory listing for /mnt


# ls /mnt/
cdrom  dos  floppy  hda2  hda3



Thanks, BobG








-----Original Message-----
From: shrike-list-admin@xxxxxxxxxx [mailto:shrike-list-admin@xxxxxxxxxx]


On


Behalf Of Bob Goodwin
Sent: Monday, March 01, 2004 5:29 PM
To: shrike-list@xxxxxxxxxx
Subject: /dev/hda3 is not a block device

I have just reinstalled RH9 on /dev/hdb and would like to be able to
extract some configuration and data files from /hda3 which contained my
previous RH9 installation. However when I try to mount it I get an error
message:

# mount /dev/hda3
mount: /dev/hda3 is not a block device

fdisk -p /dev/hda  lists the partiton as still there. Nothing seems to
have changed on that drive. The new installation works fine but I would
like to be able to take a few files from the first drive.

I created /mnt/hda3 and have messed with /etc/fstab but nothing seems to
help.  There's something happening that I'm not aware of! My ignorance
is showing.  Can anyone see what's wrong?

Thank you.

Bob Goodwin Zuni, Va. w2bod


-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list
















--
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux