LinHES Forums http://forum.linhes.org/ |
|
Mounting a Daisy Chained External Firewire Drive: Solved http://forum.linhes.org/viewtopic.php?f=6&t=16567 |
Page 1 of 1 |
Author: | ihatetivo [ Sun Sep 16, 2007 5:09 pm ] |
Post subject: | Mounting a Daisy Chained External Firewire Drive: Solved |
I can mount one external firewire drive. However, when I daisy-chain a second external firewire drive, I can no longer mount the first drive. Here is how I got to this point. Both drives are 500 GB. The first drive is full, the second is new, formatted as ext3 and empty. 1. I attached the first external firewire drive. Myth recognized it as "sda1" upon reboot. I could access its files via /media. My fstab looked like: Code: /dev/sda1 /media/sda1 ext3 auto,users,exec 0 0 2. I then connected a second drive to the first drive, via the first drive's 2nd firewire port. I powered-on the second drive. I rebooted. 3. fdisk seems to recognize 2 external drives (sda1 and sdb1), which is a good thing Code: fdisk -l Disk /dev/hda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 609 4891761 83 Linux /dev/hda2 610 706 779152+ 82 Linux swap / Solaris /dev/hda3 707 60801 482713087+ 83 Linux Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 60801 488384001 83 Linux Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 60801 488384001 83 Linux 4. However, the df command only shows "sda1". Coincidentally, "sda1" changed and now refers to the second (empty) drive. It seems I can no longer access the first (full) firewire drive's files. Code: root@mythtv:/media# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda1 4828768 2051836 2532344 45% / /dev/hda3 482666728 152801452 329865276 32% /myth tmpfs 256444 4 256440 1% /dev/shm /dev/sda1 480719056 202800 456097056 1% /media/sda1 5. The following information also suggest that Myth only wants to mount one of the drives Code: root@mythtv:/media# cd /media
root@mythtv:/media# ls sda1 6. When I power-off the second drive and reboot, all is normal. "sda1" now refers to the first drive again. I can access the first drive's files again. However, my goal is to daisy-chain my new second drive to the first. :?: Question: Any advice for mounting both external firewire drives at the same time? (I'm wondering if people who use USB hubs have similar issues. I'm willing to buy a hub of some kind, but would prefer to take advantage of daisy chaining these drives) |
Author: | tjc [ Sun Sep 16, 2007 5:29 pm ] |
Post subject: | |
This is a common problem with removable drives and even SATA drives because the device assignment is somewhat arbitrary. Your best bet is to label the volume and mount based on that label. For example this line from my /etc/fstab file: Code: LABEL=backup /backup ext3 defaults 0 0
This prevents this drive/partition which is normally seen as /dev/sda1 from not being recognized when a thumb drive is left plugged in at boot time and it steals that device name. |
Author: | ihatetivo [ Sun Sep 30, 2007 1:05 pm ] |
Post subject: | Solved |
tjc, thanks. I used the "tune2fs" command to assign a volume name to each drive. I must admit that I had some troubles, but they are too complicated to explain here. Rather, for the benefit of whoever else might have the same issue, I wanted to post my fstab and some comments. Basically, the trick for me was to not only name each drive's volume, but to also create brand-new mount points (in my case /home/fire/tracy1 and /home/fire/tracy2). Afterwards, it worked fine. Now, the "alpha drive" always mounts to "/home/fire/tracy1" and "beta drive" always mounts to "home/fire/tracy2". Code: # /etc/fstab: filesystem table.
# # filesystem mountpoint type options dump pass /dev/hda1 / ext3 defaults,errors=remount-ro 0 1 /dev/hda3 /myth ext3 defaults,auto 0 2 proc /proc proc defaults 0 0 /dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0 usbfs /proc/bus/usb usbfs devmode=0666 0 0 sysfs /sys sysfs defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 /dev/cdrom /cdrom auto defaults,ro,user,noexec,noauto 0 0 # Added by KNOPPIX /dev/hda2 none swap defaults 0 0 # Added by KNOPPIX LABEL=alpha /home/fire/tracy1 ext3 auto,users,exec 0 0 LABEL=beta /home/fire/tracy2 ext3 auto,users,exec 0 0 |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |