How do I get USB hard drives to boot plugged with OS drive??

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

How do I get USB hard drives to boot plugged with OS drive??

Postby yazyazoo » Tue Mar 05, 2013 10:36 pm

So I finally got Samba working with my 3 NTFS drives. I tried to put it in another location and unplugged it. I couldn't get back into the Pogo. I had to reinstall everything over again.

I found some instructions on how to get it to automount but they didn't work. Here is what they wrote:

For auto-mounting these devices each time after Pogo is rebooted, run below commands
nano /etc/fstab
Then paste this line ->
UUID="ABCD" /mnt/dirname ntfs defaults 0 0 # Put your device's UUID instead of ABCD. My HDDs are ntfs type. Put your own type if different. Add one line for each device with it's UUID and type (e.g. ntfs). If you don't know the UUID, run this command blkid -o list -c /dev/null
Now just save this file and exit.

Now power off/on Pogo and check if it boots properly in ALARM and if you can access the HDDs over LAN by \\ALARM or \\192.168.x.y where 192.168.x.y is the Pogo's IP address


I did this and it still won't even boot into Arch. Do these instructions look right or do I need to add something else like an install of another package? Also does the UUID need the quotes around it? I didn't put any.

Thanks.
yazyazoo
 
Posts: 78
Joined: Fri Sep 07, 2012 5:19 pm

Re: How do I get USB hard drives to boot plugged with OS dri

Postby Socaltom » Tue Mar 05, 2013 11:16 pm

You can't just "paste" that into the fstab, you have to enter your specific drive information.

1) remove all that info from your fstab
2) $this->bbcode_second_pass_code('', 'pacman -Sy udev-automount')
3) plug in your drives
4) type "df" for disk free ( tells you space available and what the device is mounted as


$this->bbcode_second_pass_quote('yazyazoo', 'S')o I finally got Samba working with my 3 NTFS drives. I tried to put it in another location and unplugged it. I couldn't get back into the Pogo. I had to reinstall everything over again.

I found some instructions on how to get it to automount but they didn't work. Here is what they wrote:

For auto-mounting these devices each time after Pogo is rebooted, run below commands
nano /etc/fstab
Then paste this line ->
UUID="ABCD" /mnt/dirname ntfs defaults 0 0 # Put your device's UUID instead of ABCD. My HDDs are ntfs type. Put your own type if different. Add one line for each device with it's UUID and type (e.g. ntfs). If you don't know the UUID, run this command blkid -o list -c /dev/null
Now just save this file and exit.

Now power off/on Pogo and check if it boots properly in ALARM and if you can access the HDDs over LAN by \\ALARM or \\192.168.x.y where 192.168.x.y is the Pogo's IP address


I did this and it still won't even boot into Arch. Do these instructions look right or do I need to add something else like an install of another package? Also does the UUID need the quotes around it? I didn't put any.

Thanks.
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: How do I get USB hard drives to boot plugged with OS dri

Postby moonman » Tue Mar 05, 2013 11:31 pm

udev-automount WILL NOT work with NTFS drives, this has been discussed before guys. Read the reenabling automounting thread, specifically the very last post.
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: How do I get USB hard drives to boot plugged with OS dri

Postby yazyazoo » Wed Mar 06, 2013 12:58 am

$this->bbcode_second_pass_quote('moonman', 'u')dev-automount WILL NOT work with NTFS drives, this has been discussed before guys. Read the reenabling automounting thread, specifically the very last post.



Ok I just read that post and the thread it leads to. So it is possible with udevil installed?

pacman -Sy udevil
systemctl enable devmon@root.service
systemctl start devmon@root.service

And after that I would change /etc/fstab to my driver infromation?
yazyazoo
 
Posts: 78
Joined: Fri Sep 07, 2012 5:19 pm

Re: How do I get USB hard drives to boot plugged with OS dri

Postby moonman » Wed Mar 06, 2013 2:56 am

No need for fstab. Just install and enable devmon
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: How do I get USB hard drives to boot plugged with OS dri

Postby yazyazoo » Wed Mar 06, 2013 3:36 am

So I wouldn't need to list my external hard drive anywhere? udevil will figure it out?
yazyazoo
 
Posts: 78
Joined: Fri Sep 07, 2012 5:19 pm

Re: How do I get USB hard drives to boot plugged with OS dri

Postby moonman » Wed Mar 06, 2013 3:54 am

Yes. If the partitions are labeled, then they will be mounted under /media/<label> , if not then /media/hd-sdX or similar
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: How do I get USB hard drives to boot plugged with OS dri

Postby yazyazoo » Wed Mar 06, 2013 7:31 am

I tried this.

My external hard drive is sdb1

So I mounted with: mount /dev/sdb1 movies

Installed udevil and enabled and started root.

I then tried to reboot the system.

This time I can still log in to pogoplug but my hard drive is lost and I can't see it from my windows PC. I go back and do lsblk

I see this drive has been changed to /media/media rather than /movies.

What do i need to change to get this to work?
yazyazoo
 
Posts: 78
Joined: Fri Sep 07, 2012 5:19 pm

Re: How do I get USB hard drives to boot plugged with OS dri

Postby moonman » Wed Mar 06, 2013 9:41 am

The problem with fstab is that if you reboot without the hdd in fstab it won't boot. It gets stuck at the message that it can't find the hdd, but since you can't connect monitor you can only see that over serial. If you want to get the hdd mounted there there are 2 options:

1. create a symlink /movies to /media/<mountpoint>
2. add fstab entry with whatever options you had + these two: "noauto,x-systemd.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: How do I get USB hard drives to boot plugged with OS dri

Postby Socaltom » Wed Mar 06, 2013 5:56 pm

$this->bbcode_second_pass_quote('yazyazoo', 'I') tried this.

My external hard drive is sdb1

So I mounted with: mount /dev/sdb1 movies




The command should be mount /dev/sdb1 /movies If you don't have the "/" it will mount it in the current directory where ever you happen to be.

Also, I've found the df command to be helpful to determine where a particular drive has been mounted

Tom
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
Top


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 8 guests