Did You Know? that you can enable more swap memory in 3 simple steps? For example to add 100MB more swap memory you would enter: # dd if=/dev/zero of=/extra-swap bs=10000 count=10000 - this will create 100MB storage file # mkswap /extra-swap - generate swap signature # swapon /extra-swap - this will enable /swap-extra file as a new extra swap memory
After you plug in your USB device to your USB port, linux will add new block device into /dev/ directory. At this stage you are not able to use this device as the USB filesystem needs to be mouted before you are able to retrieve any data. To find out what name your block device file have you can run fdisk command:
# fdisk -l
You will get output similar to this:
Disk /dev/sdb: 60.0 GB, 60060155904 bytes 255 heads, 63 sectors/track, 7301 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x000b2b03
Device Boot Start End Blocks Id System /dev/sdb1 1 7301 58645251 b W95 FAT32
3. Creating mount point
Create directory where you want to mount your device:
mkdir /mnt/sdb1
4. Edit /etc/fstab
To automate this process you can edit /etc/fstab file and add line similar to this:
/dev/sdb1 /mnt/sdb1 vfat defaults 0 0
Run mount command to mount all not yet mounted devices. Keep in mind that if you have more different USB devices in you system, device name can vary!!!
# mount -a
Share| Support Linuxconfig.org by linking to us from your website or by donation.
and the device file is /dev/sda
But the Edit /etc/fstab line is reversed.
/dev/sda1 /mnt/sda
jk