fstab for 2nd hard drive and dvd drive

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
scoot1212
Posts: 48
Joined: Fri Aug 05, 2005 9:08 pm

fstab for 2nd hard drive and dvd drive

#1 Post by scoot1212 » Wed Feb 21, 2007 1:54 pm

Hi,
I'm trying to get my ubuntu edgy install to determine if I have my 2nd hdd in or if I have my dvd drive in and mount the correct device. Has anybody done this with Linux?
Thank you,
Scott

smugiri
Senior Member
Senior Member
Posts: 774
Joined: Tue Nov 23, 2004 4:29 pm
Location: Mississauga, ON
Contact:

#2 Post by smugiri » Wed Feb 21, 2007 3:08 pm

Add lines for both and the one that is available will mount.

Not clean but it works. Something like

/dev/cdrw /mnt/cdrw udf,iso9660 noauto,owner,rw 0 0
/dev/hdc1 /mnt/ntfs/shared ntfs ro,defaults 0 0
or
/dev/hdc1 /mnt/vfat/shared vfat umask=000 0 0
Steve

Leikeze Ajnin
Posts: 28
Joined: Tue Jan 09, 2007 2:58 pm
Location: Connecticut, USA

#3 Post by Leikeze Ajnin » Wed Feb 21, 2007 6:52 pm

Another alternative, if you're feeling adventurous, would be to check out this ThinkWiki page on setting up ultrabay device hot-swapping: http://www.thinkwiki.org/wiki/Lt_hotswap

Do note the supported models:
Supported models

The driver has been explicitly reported to work on the following models. It should work on many others as well:
ThinkPad A31p (warmswap), X22, X24, T30, T22, T23, T40, T42
With a lil' bit of investigation you could prolly setup automatic mounting and hot-swapping of the two devices, but it would require time and effort to set up.

Having come up with the complex alternative, if you're not 100% in need of hot-swapping for the two devices, I'd use smugiri's approach.
- Tim Healey

scoot1212
Posts: 48
Joined: Fri Aug 05, 2005 9:08 pm

#4 Post by scoot1212 » Wed Feb 21, 2007 8:56 pm

thank you very much for the suggestions. I am going to give either and/or both a shot this weekend when I rebuild my notebook. I'll keep you posted.

Scott

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 1 guest