Project

General

Profile

SATA mount point

Added by Scott Whitney almost 11 years ago

_Hello,
I've got a few mityDSP developement kits and am attaching SATA SSD drives to them. They are formated EXT4 with 1 Partition. I have modified /etc/fstab to attempt to automount the drive to /media/sda1 and have created the /media/sda1 directory to mount to it. My problem is, is that this works on 1 of my boards on bootup. On my other ones the SATA drive is automounted to /media/sda. This would be fine except I can't access the drive from there. I have to unmount the drive from /media/sda create the new directory and mount it. On bootup I see a message that the drive cannot be mounted because /media/sda1 does not exist. I then changed this to another directory and on bootup saw a message that the drive was already mounted. It was mounted to /media/sda. does anyone have a clue as to what I have done wrong? Thanks, Scott


Replies (6)

RE: SATA mount point - Added by Jonathan Cormier almost 11 years ago

Scott,

Could you attach your fstab for both machines as well as the output of 'fdisk -l'?

-Jonathan

RE: SATA mount point - Added by Scott Whitney almost 11 years ago

i am uploading 4 files both my /etc/fstab and the output of fdisk. This is from 2 different systems with different SATA drives on. thanks

fstab_bad (848 Bytes) fstab_bad fstab from system with bad mount
fstab_good (848 Bytes) fstab_good fstab from system with good mount
bad_mount.txt (344 Bytes) bad_mount.txt output of fdisk bad mount
good_mount.txt (695 Bytes) good_mount.txt output of fdisk with good mount

RE: SATA mount point - Added by Jonathan Cormier almost 11 years ago

Just as a curiousity, have you tried to see if adding/removing the mmc card affects how the sata drive mounts. Its the only thing I noticed different between the files you posted.

Are there any other differences between the dev kits that you know of?
-Jonathan

RE: SATA mount point - Added by Scott Whitney almost 11 years ago

the mmc card does not affect the mounting. It behaves the same way with or without it. I don't know if there are any differences with the dev kits. They were all purchased around the same time. I have reflashed them with a new kernel for EXT4 support. I did not update the filesystem on any of them other than adding the mount point for the SATA drive.

RE: SATA mount point - Added by Jonathan Cormier almost 11 years ago

Scott,

I'm not sure whats going on. I can't explain why one would work as expected and the other doesn't. Its possible that udev is mounting sda to /media/sda. Trying running a 'grep -r /media/sda /' to see if you can find the file thats doing to mount.

-Jonathan

RE: SATA mount point - Added by Tim Iskander almost 11 years ago

You can also run "udevadm monitor" to watch for udev activity.

    (1-6/6)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)