1

I'm running alpine 3.2.0 installed on a thumb drive. once I boot my linux box using the usb, I can't see my hard disks, despite having two of them installed. when I run df -h or df -a, i can't see where they are mounted in the file system. Please note that am booting from a flash drive. Please help

Mercy Flicker
  • 309
  • 2
  • 3
  • 11

1 Answers1

2

df shows mounted filesystems, not hard disks. To see your hard disks, use parted, fdisk or lsblk. Once you have identified

  • your disks,
  • their partitions, and
  • the filesystems in the partitions

you may mount the filesystems somewhere (that is, mount each filesystem on a directory) and then df will show them. It is not usual for a Linux system to mount hard-disk-based filesystems automatically.

Edit: See Mercy Flicker's comment for the complete details of how the problem was solved.

AlexP
  • 10,037
  • 1
  • 32
  • 39
  • Thanks for your help. I tried all your suggestions and I added some to them and it worked. i had to first make a file system to each of the hard disks by running `mkfs.vfat /dev/sda1` and secondly ran `mount -t vfat /dev/sda1 /mnt`. This got my mounting working. I had also to edit my fstab file to make them mount automatic at bootup by adding my hardisks to the fstab file. – Mercy Flicker Dec 14 '16 at 09:18