Disk Managment Issue [SOLVED]

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Disk Managment Issue [SOLVED]

Postby MotoTom » Fri Feb 08, 2013 11:14 pm

I have a USB HDD attached to my Pogoplug E02. It is configured in FSTAB with a UUID setup. I wanted this so there would be no confusion as to where this drive is mounted.

I also installed uDev-automount so that my various thumb drives can be automounted and used immediately.

My problem is the USB HDD is now being mounted twice, Once with the name of the /media mount point and the other with the automount mount point - /media/hd-sdb1

I don't know if this is a problem in-the-making or not but it seems it would be better if the USB HDD was only mounted once.

What say you?

TIA.
Last edited by MotoTom on Tue Feb 12, 2013 8:47 pm, edited 1 time in total.
MotoTom
 
Posts: 27
Joined: Sun Feb 03, 2013 4:37 pm

Re: Disk Managment Issue

Postby moonman » Fri Feb 08, 2013 11:18 pm

label partiotions on the hdd then you are guaranteed the same mountpoint (/media/<label>)

whats the filesystem on the hdd? ntfs doesnt work with udev-automount
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Disk Managment Issue

Postby WarheadsSE » Sat Feb 09, 2013 3:12 am

Sure about that?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Disk Managment Issue

Postby moonman » Sat Feb 09, 2013 3:51 am

What exactly?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Disk Managment Issue

Postby Obihoernchen » Sat Feb 09, 2013 5:02 pm

Yes udev-automount doesn't work with NTFS.
But udevil is working fine :)
Visit my Blog for Pogoplug guides
Obihoernchen
 
Posts: 17
Joined: Thu Jan 31, 2013 3:17 am
Location: Germany

Re: Disk Managment Issue

Postby moonman » Sun Feb 10, 2013 2:25 am

$this->bbcode_second_pass_quote('WarheadsSE', 'S')ure about that?


I should add that you are guaranteed the same mount point if no 2 drives have the same label
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Disk Managment Issue

Postby MotoTom » Mon Feb 11, 2013 4:27 pm

I think I need to clarify a bit. Here's my FSTAB:
$this->bbcode_second_pass_code('', '# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
UUID=f84b54bd-11d2-4651-9849-d3bc2a50c696 / ext2 defaults,noatime,nodiratime 0 1
UUID=f80b5039-0dab-4cc1-9de6-8730e7ddd6e3 /media/StoryBook ext3 defaults,users 0 0
')

Here's my df
$this->bbcode_second_pass_code('', '[tomb@TRB-PP ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 3866304 1277808 2392096 35% /
/dev/root 3866304 1277808 2392096 35% /
devtmpfs 126152 0 126152 0% /dev
tmpfs 126236 0 126236 0% /dev/shm
tmpfs 126236 304 125932 1% /run
tmpfs 126236 0 126236 0% /sys/fs/cgroup
tmpfs 126236 0 126236 0% /tmp
/dev/sdb1 1442145212 883211100 485677312 65% /media/hd-sdb1
/dev/sdb1 1442145212 883211100 485677312 65% /media/StoryBook
')

I'm trying to stop udev-automount from mounting the /media/hd-sdb1 instance. I was under the impression that udav-automount would ignore drives in FSTAB. Clearly that's not correct.

Again, TIA.
MotoTom
 
Posts: 27
Joined: Sun Feb 03, 2013 4:37 pm

Re: Disk Managment Issue

Postby Obihoernchen » Mon Feb 11, 2013 4:43 pm

Ahh now I understand xD

Just edit /etc/udev/rules.d/11-media-by-label-auto-mount.rules

Maybe add a 2nd line like that at the top:
KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"
KERNEL=="sdb1", GOTO="media_by_label_auto_mount_end"

Should work not tested^^
Visit my Blog for Pogoplug guides
Obihoernchen
 
Posts: 17
Joined: Thu Jan 31, 2013 3:17 am
Location: Germany

Re: Disk Managment Issue

Postby Socaltom » Mon Feb 11, 2013 6:56 pm

The easier way

$this->bbcode_second_pass_code('', 'e2label /dev/sdb1 StoryBook')

Then you can remove the fstab entry, it will automount the drive as /media/StoryBook
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Disk Managment Issue

Postby moonman » Mon Feb 11, 2013 7:33 pm

also, with your fstab, if you remove the drive and try to boot without it - pogo won't boot.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 104 guests