linux hjälp
Postat: lör 12 jan 2013, 14:53
nån som kan linux?
hur montar jag flera usb diskar?
How To Use a USB Drive For The VortexBox Media Library
Here are instructions for using a USB drive for your VortexBox media library:
1. Remove all other USB drives (e.g. a backup drive) from your VB. Plug the desired USB drive into your VB.
2. Login to your VB; see Login.
3. Find the device name of the USB drive. Enter
cat /etc/vortexbox/CurrentUsbDrive.txt
On a VB with one internal hard drive, this usually shows /dev/sdb.
4. Mount the drive. Enter
umount /storage
mount /dev/sdb1 /storage
Use the device name from step 3 with a "1" appended in the above command if it's not /dev/sdb.
5. If this works, then automount the drive at boot time. Edit /etc/fstab. Enter
nano /etc/fstab
6. Remove any line that currently mounts /storage. This line may look like
/dev/mapper/VolGroup-lv_storage /storage ext4 defaults 1 2
7. Add the line
/dev/sdb1 /storage ntfs defaults 0 0
Use the correct device name if it's not /dev/sdb1. This presumes the drive has a NTFS filesystem on it. If not, use the correct filesystem type in the above line.
8. Write the file (control-o) and quit (control-x).
9. Test the /etc/fstab entry by entering
umount /storage
mount -a
This should mount the USB drive at /storage.
10. If step 9 is successful, the USB drive will be automounted at /storage when the VB reboots.
11. If you want the proper drive to be automounted regardless of the device name, enter the command
blkid /dev/sdb1
Use the correct device name in the above command if it's not /dev/sdb1.
On my VortexBox, this returns
/dev/sdb1: UUID="725A66165AF23401" TYPE="ntfs"
12. You can then change the step 7 line in /etc/fstab to
UUID="725A66165AF23401" /storage ntfs defaults 0 0
Use the UUID returned by the blkid command on your system.
hur montar jag flera usb diskar?
How To Use a USB Drive For The VortexBox Media Library
Here are instructions for using a USB drive for your VortexBox media library:
1. Remove all other USB drives (e.g. a backup drive) from your VB. Plug the desired USB drive into your VB.
2. Login to your VB; see Login.
3. Find the device name of the USB drive. Enter
cat /etc/vortexbox/CurrentUsbDrive.txt
On a VB with one internal hard drive, this usually shows /dev/sdb.
4. Mount the drive. Enter
umount /storage
mount /dev/sdb1 /storage
Use the device name from step 3 with a "1" appended in the above command if it's not /dev/sdb.
5. If this works, then automount the drive at boot time. Edit /etc/fstab. Enter
nano /etc/fstab
6. Remove any line that currently mounts /storage. This line may look like
/dev/mapper/VolGroup-lv_storage /storage ext4 defaults 1 2
7. Add the line
/dev/sdb1 /storage ntfs defaults 0 0
Use the correct device name if it's not /dev/sdb1. This presumes the drive has a NTFS filesystem on it. If not, use the correct filesystem type in the above line.
8. Write the file (control-o) and quit (control-x).
9. Test the /etc/fstab entry by entering
umount /storage
mount -a
This should mount the USB drive at /storage.
10. If step 9 is successful, the USB drive will be automounted at /storage when the VB reboots.
11. If you want the proper drive to be automounted regardless of the device name, enter the command
blkid /dev/sdb1
Use the correct device name in the above command if it's not /dev/sdb1.
On my VortexBox, this returns
/dev/sdb1: UUID="725A66165AF23401" TYPE="ntfs"
12. You can then change the step 7 line in /etc/fstab to
UUID="725A66165AF23401" /storage ntfs defaults 0 0
Use the UUID returned by the blkid command on your system.