You are not logged in.

#1 2009-09-06 20:57:04

P1umb3r
Member
Registered: 2009-06-13
Posts: 8

External hard drive fstab issues

Hi all,

I just bought a Toshiba 1tb external drive, and I have it mounting correctly with no problems.  My issue is that everytime I mount it, the Toshiba virtual cd (which is meant to install Windows software) mounts along with it, which is really annoying.  I have tried to add an entry to /etc/fstab to stop the virtual cd from automounting, but I don't have the syntax right.  Could anyone tell me what I am doing wrong?

My /etc/fstab:

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

/dev/sdb         /media/Toshiba-1TB   auto     user,auto,rw
/dev/cdrom        /media/Virtual\ CD  auto    noauto,nouser

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

UUID=68977fe1-5b26-4ab7-9939-0d97bcba31d8 /home ext4 defaults 0 1
UUID=c0fff82b-b45c-4fe0-9dfb-f45e6b2f403d / ext4 defaults 0 1

/dev/sdb is the external drive, and /media/Virtual\ CD is what I don't want to mount.

Offline

#2 2009-09-06 22:13:10

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: External hard drive fstab issues

Perhaps vfat in place of auto?


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#3 2009-09-06 22:50:15

P1umb3r
Member
Registered: 2009-06-13
Posts: 8

Re: External hard drive fstab issues

Thanks for the response.  Tried that and it still mounts on boot-up.  Under the properties of the CD, the file system type is listed as "iso9660 (joliet extension)".  I tried replacing auto with iso9660, and that didn't work either.

Offline

#4 2009-09-06 23:17:25

neddie_seagoon
Member
Registered: 2009-08-23
Posts: 121

Re: External hard drive fstab issues

This looks like the same behaviour as my USB key with U3. I think this might work:
When you plug in the drive, run dmesg and see what drives it assigns for the drive and virtual cdrom. In my case, it is /dev/sdc1 for the key, and /dev/sr1 for the cdrom.

Edit /etc/fstab with these values (using my examples here):

/dev/sdc1         /media/Toshiba-1TB   auto     user,auto,rw
/dev/sr1       /media/Virtual\ CD  auto    noauto,nouser

Then see if it is still automounting both. If it is, you could (maybe inelegantly) work around it by adding something like 'umount /media/Virtual\ CD' in your /etc/rc.local.

Offline

#5 2009-09-06 23:35:49

P1umb3r
Member
Registered: 2009-06-13
Posts: 8

Re: External hard drive fstab issues

Okay, I ran dmesg, but I'm not sure which drive the virtual cd was assigned to.

Dmesg output:

EXT4-fs: mballoc: 0 blocks 0 reqs (0 success)
EXT4-fs: mballoc: 0 extents scanned, 0 goal hits, 0 2^N hits, 0 breaks, 0 lost
EXT4-fs: mballoc: 0 generated and it took 0
EXT4-fs: mballoc: 0 preallocated, 0 discarded
usb 2-4: reset high speed USB device using ehci_hcd and address 3
usb 2-4: USB disconnect, address 3
usb 2-4: new high speed USB device using ehci_hcd and address 5
usb 2-4: configuration #1 chosen from 1 choice
scsi7 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
scsi 7:0:0:0: CD-ROM            TOSHIBA  Virtual Cdrom    1.00 PQ: 0 ANSI: 0 CCS
sr1: scsi3-mmc drive: 1x/52x cd/rw xa/form2 cdda tray
sr 7:0:0:0: Attached scsi CD-ROM sr1
sr 7:0:0:0: Attached scsi generic sg2 type 5
scsi 7:0:0:1: Direct-Access     TOSHIBA  External HDD     1.00 PQ: 0 ANSI: 4
sd 7:0:0:1: Attached scsi generic sg3 type 0
usb-storage: device scan complete
sd 7:0:0:1: [sdb] 1953525168 512-byte hardware sectors: (1.00 TB/931 GiB)
sd 7:0:0:1: [sdb] Write Protect is off
sd 7:0:0:1: [sdb] Mode Sense: 23 00 00 00
sd 7:0:0:1: [sdb] Assuming drive cache: write through
sd 7:0:0:1: [sdb] Assuming drive cache: write through
 sdb: unknown partition table
sd 7:0:0:1: [sdb] Attached SCSI disk
EXT4-fs: barriers enabled
kjournald2 starting: pid 2700, dev sdb:8, commit interval 5 seconds
EXT4 FS on sdb, internal journal on sdb:8
EXT4-fs: delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs: mounted filesystem sdb with ordered data mode
ISO 9660 Extensions: Microsoft Joliet Level 3
ISOFS: changing to secondary root
[j@Johntop ~]$

Would it be at /dev/sr1?

EDIT: It appears that it was indeed mounting at /dev/sr1.  Thank you so much. smile

Last edited by P1umb3r (2009-09-06 23:41:03)

Offline

Board footer

Powered by FluxBB