LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use a USB hard drive with ext3 starting from scratch

Solved!
Go to solution

Thank you Rolf for the detailed response.

I was aware of most of your comments.

My solution above actually does not work Smiley Tongue So please disregard it.

And yes, the command

chmod 777 -R /u

is necessary to tickle the Linux OS.

 

I hope NI would step in and help with usb automount scripts.

 

Thanks again

0 Kudos
Message 11 of 13
(694 Views)

Here is an update:

1) delete partitions: fdisk /dev/sdc
del partitions: d
(repeat until all deleted)
write: w
2) reboot cRIO:
3) wipe disk: wipefs /dev/sdc -a
4) partition disk: fdisk /dev/sdc
new partition: n
primary: press enter
partition number(1): press enter
first sector: press enter
last sector: press enter
write: w
5) format partition as ext4 with journaling: mke2fs -j -t ext4 -L DataDrive /dev/sdc1
6) change permissions: chmod 777 -R /dev/sdc
7) change permissions: chmod 777 -R /dev/sdc1
😎 reboot cRIO

 

Should show up in LabVIEW and vis lsblk with a SSH session.

0 Kudos
Message 12 of 13
(612 Views)

Sorry...need to add another reboot (drive was still readonly):

 

1: delete partitions: fdisk /dev/sdc
del partitions: d
(repeat until all are deleted)
write: w
2: reboot cRIO: shutdown -r 0
3: wipe disk: wipefs /dev/sdc -a
4: partition disk: fdisk /dev/sdc
new partition: n
primary: press enter
partition number(1): press enter
first sector: press enter
last sector: press enter
write: w
5: format partition with journaling: mke2fs -j -t ext4 -L DataDrive /dev/sdc1
6: reboot cRIO: shutdown -r 0
7: change permissions: chmod 777 -R /dev/sdc
8: change permissions: chmod 777 -R /dev/sdc1
9: change permissions: chmod 777 -R /media/sdc1
10: reboot cRIO: shutdown -r 0

0 Kudos
Message 13 of 13
(605 Views)