Ubuntu: mount: you must specify the filesystem type
Question:
I used the command.
sudo mount /dev/sdb2 /home/ubuntu/temp
and got as error:
mount: you must specify the filesystem type
Why?
Solutions Sample (Please watch the whole video to see all solutions, in order of how many people found them helpful):
== This solution helped 12 people ==
I was getting a similar error:
# mount /dev/sdb1 /mydisk/ -t auto
mount: you must specify the filesystem type
I tried finding out the issue and the issue was, I had partitioned it but no
filesystem was assigned.
# mkfs.ext3 /dev/sdb1 2>/dev/null
…
Superblock backups stored on blocks:
…
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 39 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override
After this it successfully got mounted.
== This solution helped 53 people ==
You need to add the -t FILESYSTEMTYPE argument to the command, replacing
FILESYSTEMTYPE with your filesystem type. This specifies the filesystem type of
the filesystem to be mounted. In your case, this would be /dev/sdb2. Some
common, valid filesystem types are:
* auto – this is a special one. It will try to guess the fs type when you
use this.
* ext4 – this is probably the most common Linux fs type of the last few
years
* ext3 – this is the most common Linux fs type from a couple years back
* ntfs – this is the most common Windows fs type or larger external hard
drives
* vfat – this is the most common fs type used for smaller external hard
drives
* exfat – is also a file system option commonly found on USB flash drives
and other external drives
== This solution helped 5 people ==
Please use parted -l to check the partition type and make sure you are mounting
an actual data partition with known partition types (for example, ntfs, fat,
etc).
Here is what you would see from an 8TB drive, the first partition is not the
actual data partition and instead, you should mount the second partition, which
is the actual data partition.
Model: TRUSTED Mass Storage (scsi)
Disk /dev/sdb: 8796GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 134MB 134MB Microsoft reserved partition msftr ` es
2 134MB 8796GB 8796GB ntfs Basic data partition
With thanks & praise to God! With thanks to all the many who have made this project possible! | Content (except music & images) licensed under cc by-sa 3.0 | Music & music license: | Images & images license: and others | With thanks to user thomasrutter ( user reverendj1 ( user Pabi ( user Eliah Kagan ( user AZhu ( user Ankzz ( user andandandand ( and the Stack Exchange Network ( Trademarks are property of their respective owners. Disclaimer: All information is provided “AS IS” without warranty of any kind. You are responsible for your own actions. Please contact me if anything should be amiss at Roel D.OT VandePaar A.T gmail.com.
Nguồn: jmp-photography.net
Xem thêm bài viết khác: https://jmp-photography.net/cong-nghe/