LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to list All Mounted Drives and their Partitions from the Terminal in opensuse (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-list-all-mounted-drives-and-their-partitions-from-the-terminal-in-opensuse-4175488172/)

sayhello_to_the_world 12-16-2013 02:26 PM

how to list All Mounted Drives and their Partitions from the Terminal in opensuse
 
List All Mounted Drives and their Partitions from the Terminal in opensuse


hello dear linux-experts - i waant to list all mounted drives


i run OpenSuse Linux 12.3 - i want to have an oververiew on all the dirves and partitions:

note; there is only one drive in the notebook and one external is mounted.

To list all mounted drives and their accompanying partitions from the Terminal, type the following command:
i tried to run the following command:

diskutil list

i thought this will give us feedback like the following,
listing out the mounted drives,
their volume names,
the size of the drive and partitions,
their partition types, and
their identifier location:


but unfortunatley the command does not work


this command does not work - diskutil list

which one is more appropiate!?

sayx

suicidaleggroll 12-16-2013 02:45 PM

Code:

mount
or
Code:

df
will list all mounted filesystems/partitions
Code:

fdisk -l
will list all disks and their partitions, mounted or unmounted.

sayhello_to_the_world 12-16-2013 03:36 PM

hello - many many thanks for the quick reply


great to hear from you!

the background - as you allready know! i have a notebook with the following amount of data:

Code:

62 gb       
224 686 files
47868 subfolder

i have a external hdd that has got one TERABITE

it is mounted here:

Code:

/mnt/external/

Each time i try to copy the data to the external drive - with Dolphin - i get serious errors: the copy-procedure ends up with a mess - not all of the data is being copied to the external drive.

see the results:

Code:

2.7 g of 19,7 gb are free
87 % are in use !
117 files
47289 subfolder

question: is there any obvious error that we can see - i listed the


Code:

martin@linux-wyee:~> df -aTh
Dateisystem      Typ                  Größe Benutzt Verf. Verw% Eingehängt auf
rootfs          rootfs                  20G    19G  131M  100% /
devtmpfs        devtmpfs              1,9G    8,0K  1,9G    1% /dev
tmpfs            tmpfs                  1,9G    96K  1,9G    1% /dev/shm
tmpfs            tmpfs                  1,9G    704K  1,9G    1% /run
devpts          devpts                    0      0    0    - /dev/pts
/dev/sda13      ext4                    20G    19G  131M  100% /
proc            proc                      0      0    0    - /proc
sysfs            sysfs                    0      0    0    - /sys
tmpfs            tmpfs                  1,9G      0  1,9G    0% /sys/fs/cgroup
cgroup          cgroup                    0      0    0    - /sys/fs/cgroup/systemd
cgroup          cgroup                    0      0    0    - /sys/fs/cgroup/cpuset
cgroup          cgroup                    0      0    0    - /sys/fs/cgroup/cpu,cpuacct
cgroup          cgroup                    0      0    0    - /sys/fs/cgroup/memory
cgroup          cgroup                    0      0    0    - /sys/fs/cgroup/devices
cgroup          cgroup                    0      0    0    - /sys/fs/cgroup/freezer
cgroup          cgroup                    0      0    0    - /sys/fs/cgroup/net_cls
cgroup          cgroup                    0      0    0    - /sys/fs/cgroup/blkio
cgroup          cgroup                    0      0    0    - /sys/fs/cgroup/perf_event
systemd-1        autofs                    0      0    0    - /proc/sys/fs/binfmt_misc
hugetlbfs        hugetlbfs                0      0    0    - /dev/hugepages
tmpfs            tmpfs                  1,9G    704K  1,9G    1% /var/lock
securityfs      securityfs                0      0    0    - /sys/kernel/security
tmpfs            tmpfs                  1,9G    704K  1,9G    1% /var/run
tmpfs            tmpfs                  1,9G      0  1,9G    0% /media
debugfs          debugfs                  0      0    0    - /sys/kernel/debug
mqueue          mqueue                    0      0    0    - /dev/mqueue
/dev/sda14      ext4                  384G    72G  311G  19% /home
/dev/sdb1        ext4                  917G    200M  916G    1% /media/HDDRIVE2GO
fusectl          fusectl                  0      0    0    - /sys/fs/fuse/connections
gvfs-fuse-daemon fuse.gvfs-fuse-daemon    0      0    0    - /run/user/martin/gvfs
martin@linux-wyee:~>


well what is wrong´ here;:

note - i have to copy 62 gb - but this fails every time i try to do so.
note; some reasons for the failure may have to do with the data for the thundervbird - which is among the dataset - that need to be backuped .-...

note; i have an error martin/.thunderbird/4crusgOg.default/global-messages-db.sqlite
cannot be written - not enough disc-space..


to sum it up: i have certain issus in copying the dataset to the exernal drive - (method: dolphin - the graphical tool)

in advance many many thanks for any and all help!!

greetings

suicidaleggroll 12-16-2013 03:39 PM

It sounds like you're not copying it onto the external, you're copying it to some other directory that is a subset of /. Your external is at /media/HDDRIVE2GO.

sayhello_to_the_world 12-17-2013 03:56 AM

hello suicidaleggroll

- thx alot for the hints. There something went wrong. And you pointed it out! Many many thanks!

by the way: is there any chance to mount partitions automatically on startup in linux.

note: Although partitions created when installing a Linux distribution are automatically mounted on boot, the ones created before the installation need to be mounted manually (unless we manually create a mount point on installation).
I heard about that this can be changed, however.

chrism01 12-17-2013 04:07 AM

Have a look at /etc/fstab; all the mounts should be listed there.

gdejonge 12-17-2013 04:10 AM

Quote:

Originally Posted by sayhello_to_the_world (Post 5082139)
by the way: is there any chance to mount partitions automatically on startup in linux.

Yes this can be done by adding entries in the file /etc/fstab. All entries in this file will automatically be mounted at startup.

Cheers


All times are GMT -5. The time now is 12:28 PM.