I am currently trying to install Arch Linux and have run into a multitude of problems but my latest has really stumped me. I am currently trying to mount /dev/sda3 using the command:

$ mount /dev/sda3 

When I execute above command, output says

there is no /etc/fstab.

I attempted to do

genfstab -p /mnt >> /mnt/etc/fstab

Output says:

no such file or directory: /mnt/etc/fstab.

What do you believe I did wrong?

  • 1
    genfstab said "no such file or directory"? This question needs more detail and more precision. As don_crissti pointed out, you misspelled etc in your question. Did you also misspell it in the command line? Please read How to Ask. – depquid Mar 29 '13 at 17:05
  • @depquid First off I can't add more precision due to the fact that that's all the information I got. Second I did not misspell it in command line. That is an extremely common mistake of mine and I check for that often. Sorry for the confusion. – Griffin Mar 29 '13 at 17:12
  • More precision would include making the quoted text in your question match what's on your console verbatim, character for character. – depquid Mar 29 '13 at 17:16
  • @depquid I understand that however you also talked about more detail. Can't give that either. And I gave as much precision as I could a two letter switch isn't that important. – Griffin Mar 29 '13 at 17:19
  • @Griffen I respectfully disagree that "a two letter switch isn't that important". Uncaught tyops can lead to all kinds of XY problems. Maybe it didn't matter for this question, but disregarding such mistakes is a bad habit to get in to. – depquid Mar 29 '13 at 17:25

It would be easier to answer if you specified at which point in the installation process you are trying this. Assuming you are following the arch install guide, it looks like you just forgot to add the mountpoint to the mount command. try again like this:

mount /dev/sda3 /mnt

The other error is because there is no /mnt/etc directory so genfstab cannot create an fstab file in it.

  • Yes you were right I forgot to add it. And that was because I was getting desperate to fix it. Nice to see you again terdon. You're quite active and very knowledgeable. Thanks for the help again. – Griffin Mar 29 '13 at 17:08

You are not using the mount command properly. You should use the command as follows:

$ mount /dev/sda3 /dir

where /dir is the mount point (which you can change as your wish). eg. /mnt or /media.

If only directory or device is given, for example:

$ mount /dir

then mount looks for a mountpoint and if not found then for a device in the /etc/fstab file.

So when you are executing

$ mount /dev/sda3

It is expecting /dev/sda3 in /etc/fstab file.

  • Actually terdon got it the command is /mount /dev/sda3 /mnt – Griffin Mar 29 '13 at 17:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.