Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I know we've asked the same question numerous but what happens when you try to mount the filesystem from the command line using a file type.
mount -t ext4 /dev/sdb /home/nick/Music/music
Here it is:
Quote:
apl2 / # mount -t ext4 /dev/sdb /home/nick/Music/music
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
I think we are going around in circles. That indicates a partition table with a single partition. Not sure if the code offset is valid nor sticky. I don't know why fdisk, lsblk does not show the partition nor why blkid show a valid label UUID or a filesystem. And yet it mounts when you right click in the file browser...
It was asked previously but mount it via right click and then post the output of the command
mount | grep /dev/sdb
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 1953525168 sectors, 931.5 GiB
Model: ST1000DM003-1CH1
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): 83E6C9B0-EB46-4C66-8518-8A63ADE7F56A
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 409498988 sectors (195.3 GiB)
Number Start (sector) End (sector) Size Code Name
1 2048 614400 299.0 MiB 0700 Linux filesystem
2 616448 651102207 310.2 GiB 8300 Linux filesystem
3 651102208 1544030207 425.8 GiB 8300 Linux filesystem
I'm rather tired this evening so will start again tomorrow.
I will mount the drive using the right-click method and then try 'mount | grep /dev/sdb'
And then sudo gdisk -l /dev/sdb
This afternoon I went to listen to some music using an external USB hard drive. But that wasn't recognised at all so I couldn't use it. Same with a second USB hard drive, but a USB stick was recognised, and I was able to play music off that.
I also noticed this if it is possibly relevant. The drive with the music inside the computer is reported as having 26.2 GB used with 467 GB free. The file system is reported as Ext3/Ext4. I partitioned it after the format as Ext4 so I wonder what is taking up 26.2 GB, and why there is some Ext3?
It was asked previously but mount it via right click and then post the output of the command
mount | grep /dev/sdb
Here is what you asked for.
Quote:
apl2 nick # mount | grep /dev/sdb
/dev/sdb1 on /media/Music type ext4 (rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered,uhelper=udisks)
apl2 nick # sudo gdisk -l /dev/sdb
sudo: gdisk: command not found
I have previously said that 'mount -a' will mount the drive if there is not a 'bottom line' in fstab but that appears to be wrong. Although I get no error message after using 'mount -a', the drive/filesystem is not mounted. The only way that it will mount is from the desktop with a right click, and then selecting the mount option.
/dev/sdb1 is mounted on /media/Music. that is what you posted. And the filesystem is ext4. So it works that way.
Would be nice to post your full fstab.
/dev/sdb1 is mounted on /media/Music. that is what you posted. And the filesystem is ext4. So it works that way.
Would be nice to post your full fstab.
Is this the current situation? UUID looks correct (and it is actually /dev/sdb1), so you need to decide if /nick/Music/music or /media/Music should be used as mount point (or anything else).
You need to create it (if does not exist). Also need to remove the comment (if you wish to use that). You can mount only once, so repeated mount -a will do nothing.
That's all, during reboot it should be automatically mounted. BUT if it was an external disk/usb stick this /etc/fstab is not a solution (works only if it is plugged in continuously).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.