Saturday, April 20, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4030  / 2 Years ago, sat, august 20, 2022, 12:30:45

When PC is booting I see next message:



the disk drive for /media/sdb1 is not ready or not presented
Continue to wait or Press S to skip mounting or M for manual recovery


I'm newly at ubuntu and don't know well about how it works with eternal usb drives. (sdb1 is this one).



Here is content of sudo fdisk -l:



Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e28b8

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 310484991 155241472 83 Linux
/dev/sda2 310487038 312580095 1046529 5 Extended
/dev/sda5 310487040 312580095 1046528 82 Linux swap / Solaris

Disk /dev/sdb: 4009 MB, 4009754624 bytes
16 heads, 32 sectors/track, 15296 cylinders, total 7831552 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd8e1f237

Device Boot Start End Blocks Id System
/dev/sdb1 * 32 7831551 3915760 b W95 FAT32

Disk /dev/sdc: 993 MB, 993001472 bytes
2 heads, 1 sectors/track, 969728 cylinders, total 1939456 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdc1 133 1939455 969661+ 6 FAT16


And here content of /etc/fstab:



# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=5f5d330f-d5f2-4157-9496-94f1dce2f181 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=84747ef4-6f50-49bc-9df1-fcba364ba299 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sdc1 /media/sdc1 vfat uid=nazar_art 0 0
/dev/sdb1 /media/sdb1 vfat uid=nazar_art 0 0
/dev/sdd1 /media/sdd1 vfat uid=nazar_art 0 0


- Why this exactly happen?

- How to solve this trouble?


More From » boot

 Answers
5

I don't know why you have /dev/sdb1 in your fstab, but I know why you see that error at boot:



While booting, the kernel does a mount -a which looks at the fstab and tries to mount all the filesystems, but apparently your drive isn't present at the moment of mounting or you are using an incorrect module.



So to prevent this, you could either:




  1. Delete/comment the line:



     #/dev/sdb1    /media/sdb1    vfat    uid=1000    0    0

  2. Add noauto as mount option:



    /dev/sdb1    /media/sdb1    vfat    uid=1000,noauto    0    0

  3. Change the entry for a label or UUID:



    UUID=AA64B45A64B42AC9    /media/sdb1    vfat    uid=1000    0    0

  4. Use auto instead ofvfat:



    /dev/sdb1    /media/sdb1    auto    uid=1000    0    0



You should make user that the /media/sdb1 directory exists. Notice that for each line I changed the uid to the UID of the username. You should verify your own using:




cat /etc/passwd | grep braiam
braiam:x:1000:1000:braiam,,,:/home/braiam:/bin/bash


My uid is 1000.



I would love to ask why so many entries in fstab, but will keep my curiosity for myself.


[#29808] Monday, August 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
inaterested

Total Points: 500
Total Questions: 104
Total Answers: 92

Location: Virgin Islands (U.S.)
Member since Fri, May 7, 2021
3 Years ago
inaterested questions
Fri, Aug 12, 22, 21:24, 2 Years ago
Wed, Apr 27, 22, 17:14, 2 Years ago
Tue, Oct 26, 21, 20:41, 3 Years ago
;