Das SVN-Verzeichnis möchte ich auf einem USB-Stick am Beaglebone
anlegen.
Jedoch war der USB-Stick nach dem Einstecken nicht sichtbar.
Make sure the usb device is plugged in before power on.. USB hotplug is not
working
Also den Beaglebone nach 200 Tagen Uptime neu starten. Ein bisschen weh hat
das schon getan.
Jetzt benutze ich doch eine 16GB-Micro-SDCard
Linux-Partition erstellen
$ sudo fdisk /dev/mmcblk0
Command (m for help): p
Disk /dev/mmcblk0: 30.9 GB, 30908350464 bytes
255 heads, 63 sectors/track, 3757 cylinders, total 60367872 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 8192 60367871 30179840 c W95 FAT32 (LBA)
Command (m for help): d
Selected partition 1
Command (m for help): p
Disk /dev/mmcblk0: 30.9 GB, 30908350464 bytes
255 heads, 63 sectors/track, 3757 cylinders, total 60367872 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-60367871, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-60367871, default 60367871):
Using default value 60367871
Command (m for help): p
Disk /dev/mmcblk0: 30.9 GB, 30908350464 bytes
255 heads, 63 sectors/track, 3757 cylinders, total 60367872 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 2048 60367871 30182912 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
ext 4 Filesystem erstellen
$ sudo mkfs.ext4 /dev/mmcblk0p1
Mountpunkt erstellen
$ sudo mkdir /var/svn
BlkID anzeigen und kopieren
$ sudo blkid
[sudo] password for wnf:
/dev/mmcblk0p1: UUID="a7735e75-307b-4223-8d28-9e454136fdd9" TYPE="ext4"
/dev/mmcblk1p1: LABEL="rootfs" UUID="235d14e8-cf33-4c0e-ad4a-feeb81e0fe17" TYPE="ext4"
In die FSTAb eintragen
$ sudo nano /etc/fstab
UUID=a7735e75-307b-4223-8d28-9e454136fdd9 /var/svn/ ext4 noatime,errors=remount-ro 0 1
Mounten
$ sudo mount /var/svn
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk1p1 1.8G 837M 842M 50% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 247M 12K 247M 1% /dev
tmpfs 50M 256K 50M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 249M 0 249M 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/mmcblk0p1 29G 44M 27G 1% /var/svn