I normally use knoppix version 3.9 live cd on various machines I use. I have no problem finding the mount point of ide hard disks usually in /mnt. If I cat the file /etc/fstab sata hard disk is never there. I have experienced similar problems with ubuntu 7.1 even when installed.

by Ronny Osure

Dani AI

Generated

Short practical notes that fill the gaps left by the replies below.

Live CDs and modern distros don’t always put internal disks in a static fstab entry. The kernel and udev create device nodes dynamically and a partition only shows a mount point once it is actually mounted. To get a clear, current view of what the kernel sees and where things are mounted, use the block-device and mount-querying tools below.

lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
blkid -o list
findmnt --all
ls -l /dev/disk/by-uuid /dev/disk/by-label /dev/disk/by-id
  • lsblk shows device names, sizes, FS types and mount points in one place.
  • blkid prints UUIDs and labels you can use in fstab.
  • findmnt lists active mounts in a parseable form.
  • the /dev/disk/by-* symlinks give stable identifiers you can reference instead of /dev/sdX names.

To mount persistently prefer UUIDs or labels in /etc/fstab rather than raw device nodes. Example fstab line (replace with the UUID from blkid and your mountpoint and fs type):

UUID=0123-ABCD   /data   ext4   defaults   0 2

If a drive does not appear at all, check BIOS/UEFI detection and physical connections (power/data). Also confirm the SATA controller mode and that the kernel driver (for example, the AHCI module) is loaded. Kernel logs will show device recognition and errors; if you see I/O errors or the device never appears in the block list, the problem is likely hardware or driver-related.

As suggested, inspecting the partition table and kernel messages reveals how the kernel named the device; ’s reminder to check current mounts is also important. Since resolved the issue by listing partitions, the commands above will help turn that discovery into a stable mount or fstab entry.

Recommended Answers

All 4 Replies

fdisk -l
dmesg | grep sd

If you use the command 'mount' with no arguments you will see what filesystems are mounted and where they are mounted.

what does the command `mount` output?
what does the command `fdisk -l` output?

Sorry for taking too long to mark this thread as solved. 'fdisk -l' does the magic. Thanks DimaYasny!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.