View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 3 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Sep 16, 2007 5:09 pm 
Offline
Joined: Tue Jun 27, 2006 5:19 pm
Posts: 100
Location: Naptown, Indiana; USA
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)

_________________
R5.5; PVR-250; FX5200; Dell 4300 with Intel Pentium 4 (1.5 GHz);
BIOS Revision A02; 512MB RAM; 500GB PATA HDD


Last edited by ihatetivo on Sun Sep 30, 2007 1:05 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 16, 2007 5:29 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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.


Top
 Profile  
 
 Post subject: Solved
PostPosted: Sun Sep 30, 2007 1:05 pm 
Offline
Joined: Tue Jun 27, 2006 5:19 pm
Posts: 100
Location: Naptown, Indiana; USA
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

_________________
R5.5; PVR-250; FX5200; Dell 4300 with Intel Pentium 4 (1.5 GHz);
BIOS Revision A02; 512MB RAM; 500GB PATA HDD


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: Bing [Bot] and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu