multple hard drives, same mount point?

This forum is for all other ARMv5 devices

multple hard drives, same mount point?

Postby mikeng » Mon Dec 12, 2011 6:41 am

Hi,

I connected two usb hard drives to my pogoplug and now it's mounting the hard drives twice but it seems only the last one plugged in is reference in the filling system. run df gives me this:

sdb1 and sdc1 are two separate hard drives, but the sdc1 files are the only one actually reference on both. How do I get it to name the mounting point with different names since this is automounted??? thanks.

$this->bbcode_second_pass_code('', '[root@alarm ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 1873992 743064 1035732 42% /
/run 10240 128 10112 2% /run
udev 10240 0 10240 0% /dev
shm 62908 0 62908 0% /dev/shm
/dev/sdb1 156288320 132668904 23619416 85% /media/FreeAgent_Drive
tmpfs 62908 0 62908 0% /tmp
/dev/sdc1 156288320 132668904 23619416 85% /media/FreeAgent_Drive
')
mikeng
 
Posts: 12
Joined: Sun Dec 11, 2011 4:13 am

Re: multple hard drives, same mount point?

Postby bodhi » Mon Dec 12, 2011 8:28 am

Looks like both your drives have the same label "FreeAgent_Drive"! change the label of either one to something else and it should work.
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am

Re: multple hard drives, same mount point?

Postby mikeng » Mon Dec 12, 2011 5:42 pm

Ok, after googling around and installed mtools, gparted and then ntfsprogs; it was ntfsprogs that finally lets me change it. I guess mtools was for fat format only. Just for reference I post these for another noob like me...

ntfsprogs is usually for newer usb hard drives that has been formatted with ntfs, unless yours is fat system; you can use mtools.

https://help.ubuntu.com/community/RenameUSBDrive

install by:

pacman -S ntfsprogs
mikeng
 
Posts: 12
Joined: Sun Dec 11, 2011 4:13 am

Re: multple hard drives, same mount point?

Postby WarheadsSE » Mon Dec 12, 2011 5:53 pm

You can also attach it to any NTFS speaking Windows system (2000/XP/Vista/7) and rename it from Windows Explorer
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: multple hard drives, same mount point?

Postby 0123456789 » Thu Dec 22, 2011 4:00 am

Probably a little late but another option would be to use udev rules to mount each HD to a different mount point.

# install udev rules
pacman -Sy udev-automount

# get drive id of each drive
/sbin/blkid /dev/sdb1

Sample Output
/dev/sdb1: UUID="12345-678-91011" TYPE="ext3"

/sbin/blkid /dev/sdc1

Sample Output
/dev/sdc1: UUID="11109-876-54321" TYPE="ext3"

# modify udev rules

cd /etc/udev/rules.d

# backup original file
cp 11-media-by-label-auto-mount.rules 11-media-by-label-auto-mount.rules.orig

# add new rules for your blkids

[editor of chose nano or vi] 11-media-by-label-auto-mount.rules
# Existing Lines
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"
# New Lines Go here
ENV{ID_FS_UUID}=="12345-678-91011", ENV{dir_name}="FreeAgent_01"
ENV{ID_FS_UUID}=="11109-876-54321", ENV{dir_name}="FreeAgent_02"

In theory this would allow you to have each drive mounted under the dir_name of your choosing
0123456789
 
Posts: 15
Joined: Tue Oct 26, 2010 5:24 am


Return to Community Supported

Who is online

Users browsing this forum: No registered users and 4 guests