WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Fstab vs mount  (Read 2320 times)

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Fstab vs mount
« on: December 12, 2011, 05:14:03 AM »
Hi all,

I'm getting close to creating a bootable samba file server on a CD :)
I've got everything working fine and stable in VM Workstation.

I'm mounting the hard drive that will hold my samba shares with a mount command added to /opt/bootlocal.sh

Code: [Select]
sudo mount /dev/sda1 /disk1
the /disk1 dir was created previously and is persistent with the following added to /opt/.filetool.lst

Code: [Select]
disk1
I did a bit of googling about mounting hard drives and most all tutorials I found were about the /etc/fstab file.

The method I'm using does work and is stable on VM Workstation each time I reboot.

Any wisdom about using the solution I came up with vs using fstab are very welcome.

Thx,
Remus
Live long and prosper.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Fstab vs mount
« Reply #1 on: December 12, 2011, 08:21:33 AM »
With it in fstab, you can save one of the arguments (mount /disk1) and preset some mount options. No other benefit.
The only barriers that can stop you are the ones you create yourself.