12528 Members
237 Forums
7811 Topics
24004 Posts
Max Online: 9115 @ 08/24/24 07:30 PM
|
|
|
13 registered (Admin, Toysoft, Smokey, haki, bobot, karimkaki15, goode men, Franco89, OMEGA, raffsif1234, didond, gerolamo, bori),
1430
Guests and
147
Spiders online. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|
|
|
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
|
27
|
28
|
29
|
30
|
|
|
|
|
#1704 - 06/09/15 08:34 PM
Virtual HDD on your DM500HD... tips !
|
Japhar Member
Carpal Tunnel
Registered: 10/19/10
Posts: 9993
|
- Using another Dreambox HDD : mount -t cifs //192.168.1.5/Harddisk /hdd -o user=USER,password=PASS
- Using NAS : mount -t cifs //192.168.1.5/backup /hdd -o user=USER,password=PASS (You will need to create a /backup folder for example)
--------------
Where 192.168.1.5 = IP Address of other DM or NAS Where USER = Username of other DM or NAS Where PASS = Password of other DM or NAS
Remark : If you want just to mount an NTFS hard disk partition, do this way : mount -t ntfs /dev/sda1 /hdd, and to format it : mkfs.ext3 /dev/sda1
To mount a USB Stick as /hdd
Finding/Mounting your USB Memory stick / Pendrive (using TELNET)
- Use to find it : fdisk -l
What you will see (hdd installed sda, and pendrive sdc) :
root@dm800:~# fdisk -l
Disk /dev/sda: 60.0 GB, 60011642880 bytes 255 heads, 63 sectors/track, 7296 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sda1 1 7296 58605116 83 Linux
Disk /dev/sdb: 4059 MB, 4059561984 bytes 229 heads, 32 sectors/track, 1081 cylinders Units = cylinders of 7328 * 512 = 3751936 bytes
Device Boot Start End Blocks Id System /dev/sdb1 * 1 1082 3964400 b Win95 FAT32
- As you can see the USB device is on /dev/sdb1
- To initialize (to ext3), one time only needed : mkfs.ext3 /dev/sdb1
- Mounting the External File System / Pendrive mount /dev/sdb1 /mnt/usb
The line mounts the device at the /dev/sdb1 location to the /mnt/usb directory. If you want to mount it as hdd then you just need to send command : mount /dev/sdb1 /mnt/hdd
Now you can reference your pendrive from the command line using the folder /mnt/usb.
Now your pendrive will be available at cd /media/usb/
- Unmount if you don't use : umount -f -l /mnt/usb
- See memory amount on devices : df -h (this only once mounted)
- Automount In the Terminal
To have your pendrive mount each time your server is restarted, you must edit your /etc/fstab file. Simply add at the bottom of your /etc/fstab file:
/dev/sdb1 /mnt/usb ext3 defaults 0 0
The first argument (/dev/sdb1) tells the system what device to mount, and the second argument (/mnt/usb) tells the system where to mount it. The third argument is the filesystem type (ext3). The fourth argument (defaults) tells the system what options to apply to the device, so in this case we'll just use the defaults. The fifth and sixth arguments (both zeros) tell the system if the filesystem should be backed up using the dump utility, and the second zero tells the system whether to process the device when fsck is run. We can leave them both to zero for now.
_________________________
|
Top
|
|
|
|
|
|
|