Re: Mounting USB HDs the same every time.



On Sat, Jun 30, 2007 at 02:45:59PM -0400, Eric A. Bonney wrote:
I have 4 USB hard drives on my server in my basement. The power
went out the other night for about 30 seconds and when the server came
back online, most of my Samba shares where messed up. I figured out
what happened was that the drives were not initialized in the same order
as they were when I setup the shares. Now a drive that used to be
/media/usb0 was say /media/usb1.

So I have to go back and reconfigure my samba.conf file, not a huge
deal, but still a pia. Is there anyway to make it so that the drives
will always be named correctly upon rebooting of the server and
mounted? I think it needs to be done in fstab is that correct? The
other issue I have is that I always have to actually click on each drive
before it is able to be used by anyone else. Not sure why, but I don't
think the drives are getting mounted at bootup.


Use volume label names. Name the volume with the tools for the specific
filesystem (ext2, JFS, etc) then use LABEL= in fstab and with the mount
command. The the respective man pages.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Mounting USB HDs the same every time.
    ... went out the other night for about 30 seconds and when the server came back online, most of my Samba shares where messed up. ... I figured out what happened was that the drives were not initialized in the same order as they were when I setup the shares. ... Give a man a fish, and he eats for a day. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: copying a 12GB file
    ... Everything is stored on Samba shares using CIFS. ... The server I wanted to copy the file ... Newer versions of SAMBA using CIFS seem to have overcome the limit. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • RE: Disaster recovery recommendations for RH Linux 8.0...
    ... The smtp protocol offers you to set backup mx records via dns. ... This will cause the sending server to try all of these before giving up ... I would definitely set up the system with 2 drives in a raid 1 ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • Re: Mounting USB HDs the same every time.
    ... went out the other night for about 30 seconds and when the server came ... most of my Samba shares where messed up. ... Is there anyway to make it so that the drives ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Mounting USB HDs the same every time.
    ... The power went out the other night for about 30 seconds and when the server came back online, most of my Samba shares where messed up. ... I figured out what happened was that the drives were not initialized in the same order as they were when I setup the shares. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)