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
Asked
Active
Viewed 3.1k times
1
Mercy Flicker
- 309
- 2
- 3
- 11
-
1Please provide the output of 'df -h' and 'sudo fdisk -l' – Soren A Nov 23 '16 at 14:18
-
1You have 2 HDs /dev/sda and /dev/sdb. On each there are 2 partitions, so you have /dev/sda1, /dev/sda2, /dev/sdb1 and /dev/sdb2, all marked as linux partitions. – Soren A Nov 23 '16 at 18:55
-
1This is not about Ubuntu. Moreover, you should post text, not pictures for terminal output. – Andrea Lazzarotto Nov 23 '16 at 23:08
-
1'sudo mount /dev/sda1 /mnt' to mount and 'sudo umount /mnt' to unmount the partition again. – Soren A Nov 24 '16 at 08:39
1 Answers
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