Jump to content


Photo

Mount Devices


  • Please log in to reply
10 replies to this topic

#1 espa

  • Member
  • 16 posts

0
Neutral

Posted 10 January 2013 - 22:45

The system is wrongly mounting the USB Stick as /media/hdd
and the hdd (ntfs) connected via usb is mounted as /media/usb.

I'd like to change ..
USB into /media/usb
HDD into /media/hdd

Howto do this?

Re: Mount Devices #2 ims

  • PLi® Core member
  • 13,781 posts

+214
Excellent

Posted 10 January 2013 - 22:48

See here
http://openpli.org/f...ng-hdd-and-usb/
Kdo nic nedělá, nic nezkazí!

Re: Mount Devices #3 espa

  • Member
  • 16 posts

0
Neutral

Posted 10 January 2013 - 23:33

blkid

/dev/ubi0_0: UUID="dcf6b2ac-5f89-2fd4-a4db-321ce5640ff7" TYPE="ubifs"
/dev/sda1: LABEL="USB DRIVE" UUID="4AE7-EE66" TYPE="vfat"
/dev/sdb1: LABEL="HDDRIVE" UUID="06A8A309D292FC5D" TYPE="ntfs"



Is the following correct? What does "auto" and "default" mean?
The USB and HDD are full with data. I hope the devices won't be reinitialized by this step.

fstab:

UUID=dcf6b2ac-5f89-2fd4-a4db-321ce5640ff7 ???
UUID=4AE7-EE66 /media/usb auto defaults 0 0
UUID=06A8A309D292FC5D /media/hdd auto defaults 0 0




P.S.:
You can move this thread into the other one.

Re: Mount Devices #4 ims

  • PLi® Core member
  • 13,781 posts

+214
Excellent

Posted 10 January 2013 - 23:45

it is mount only ... nothing with your data
Kdo nic nedělá, nic nezkazí!

Re: Mount Devices #5 espa

  • Member
  • 16 posts

0
Neutral

Posted 11 January 2013 - 00:06

Feedback: It works.
TXS.

Re: Mount Devices #6 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 11 January 2013 - 08:40

The system is wrongly mounting the USB Stick as /media/hdd


That is a bug, it should never mount a USB stick as "hdd", unless you actually named it "hdd". What is the label of the stick? What kind of stick is it? Which box do you have? What version of OpenPLi are you using?

and the hdd (ntfs) connected via usb is mounted as /media/usb.


Which is perfectly normal for a USB device, isn't it?

Connect the NTFS disk to a windows PC, right-click it and rename it to "hdd" (or whatever you'd think is a nice name to mount it), and it will be mounted using that name.
Real musicians never die - they just decompose

Re: Mount Devices #7 litemotiv

  • Senior Member
  • 4,795 posts

+15
Neutral

Posted 11 January 2013 - 09:36

Same issue here but the other way around:

# blkid
/dev/sda3: UUID="e46e4be2-0184-4571-8520-cf787ef016d7" TYPE="ext3"
/dev/sda2: UUID="cb8144bd-db2a-480d-91f0-0e9cff7f1607" TYPE="swap"
/dev/sda1: UUID="a117c49d-4d21-4394-9687-ec18bbe01e69" TYPE="ext3"

# fstab
rootfs               /                    auto       defaults              1  1
proc                 /proc                proc       defaults              0  0
devpts               /dev/pts             devpts     mode=0620,gid=5       0  0
usbdevfs             /proc/bus/usb        usbdevfs   noauto                0  0
tmpfs                /var/volatile        tmpfs      defaults              0  0

# /proc/mounts
rootfs / rootfs rw 0 0
ubi0:rootfs / ubifs rw,sync,relatime 0 0
devtmpfs /dev devtmpfs rw,relatime,size=285772k,nr_inodes=71443,mode=755 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /media tmpfs rw,relatime,size=64k 0 0
/dev/sda1 /media/usb ext4 rw,relatime,barrier=1,data=ordered 0 0
/dev/sda3 /media/sda3 ext4 rw,relatime,barrier=1,data=ordered 0 0
tmpfs /var/volatile tmpfs rw,relatime 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620 0 0

sda is an internal hdd but is mounted as /media/usb.

Re: Mount Devices #8 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 11 January 2013 - 15:05

Same issue, hence the same questions....
Real musicians never die - they just decompose

Re: Mount Devices #9 ims

  • PLi® Core member
  • 13,781 posts

+214
Excellent

Posted 11 January 2013 - 15:41

Strange... I tried remove all my mount lines from fstab and after reboot is internal HDD mounted well.
Kdo nic nedělá, nic nezkazí!

Re: Mount Devices #10 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 11 January 2013 - 15:48

If you have an entry for /media/hdd in your fstab, it will avoid mounting anything else there. So if the /media/hdd entry does NOT match the harddisk, your harddisk will mount as "something else", and it may indeed end up as "usb" if it cannot come up with something better.
Real musicians never die - they just decompose

Re: Mount Devices #11 litemotiv

  • Senior Member
  • 4,795 posts

+15
Neutral

Posted 11 January 2013 - 19:11

Same issue, hence the same questions....


It's just a generic internal sata hdd without a label. It came from another box running a mid-december image where it was mounted correctly as /media/hdd.


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users