Results 1 to 8 of 8

Thread: Formatting USB drive

  1. #1
    Junior Member
    Join Date
    Mar 2010
    Posts
    5

    Formatting USB drive

    I am trying to format a 16GB USB drive to decant .ts files from my Foxsat PVR which needs ext3 format to overcome 4GB file size limit.

    Have managed to make Knoppix 6.2 run inside a Sun virtual box window on my Mac but I can't find the USB formatting app or indeed 'see' the USB drive.

    All and any suggestions welcome.

    Thank you

  2. #2
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802

    Re: Formatting USB drive

    Quote Originally Posted by selinger
    I am trying to format a 16GB USB drive to decant .ts files from my Foxsat PVR which needs ext3 format to overcome 4GB file size limit.

    Have managed to make Knoppix 6.2 run inside a Sun virtual box window on my Mac but I can't find the USB formatting app or indeed 'see' the USB drive.

    All and any suggestions welcome.

    Thank you
    You may possible run into problem with the virtualization. If you run Knoppix native, the commands would be
    Code:
    fdisk -l   # to see that the drive is recognised and get the device name for it
    fdisk   /dev/sdb  # assume it is /dev/sdb,  to set up partitions on it. Check man for fdisk
    mkfs.ext3 /dev/sdb1  # if you have set up an ext3 partition as the first on the stick
    But I can't tell if they will work the right way for you on your Mac. Simplest solution, in case of problems, is probably to boot a PC with Knoppix and set up the stick there.

  3. #3
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    Quote Originally Posted by selinger
    Have managed to make Knoppix 6.2 run inside a Sun virtual box window on my Mac but I can't find the USB formatting app or indeed 'see' the USB drive.
    If You want to use your USB device inside the virtual machine you have to create a "filter". http://www.virtualbox.org/manual/ch03.html
    Quote Originally Posted by http://www.virtualbox.org/manual/ch03.html#id2520132
    In the Settings dialog, you can first configure whether USB is available in the guest at all, and in addition also optionally enable the USB 2.0 (EHCI) controller for the guest. If so, you can determine in detail which devices are available. For this, you must create so-called "filters" by specifying certain properties of the USB device.

  4. #4
    Junior Member
    Join Date
    Mar 2010
    Posts
    5

    Formatting USB drive

    Thanks Capricorny. I have tried a direct installation in a PC but I 'lose' the mouse and keyboard. I agree this would be easiest but how do I recover them?

    Thanks

  5. #5
    Junior Member
    Join Date
    Mar 2010
    Posts
    5
    Klaus thanks. I'm a Linux beginner (it took me a whole day to work out how to operate bittorrent and create a useable iso disk (anybody want wasted media?). Where do I configure the guest and where is the 'settings' dialog found?

    Is there an idiots guide to Linux or are there too many versions for one to exist?

    Surely there must be an easier way of creating an ext3 usb stick

    Mark

  6. #6
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    Quote Originally Posted by selinger
    Where do I configure the guest and where is the 'settings' dialog found?
    On my Windows XP host there is a GUI for Sun VirtualBox. After the creation of a virtual machine one can select this virtual machine and use the menu: "Machine" -> "Settings". In addition to the menu in the GUI there should be an icon with a description "Settings". In every case you have to select the correct virtual machine before you can change its settings.
    There is also a PDF-document (User Manual) on the downloadpage http://www.virtualbox.org/wiki/Downloads with a chapter "First steps".

  7. #7
    Junior Member
    Join Date
    Mar 2010
    Posts
    5

    Formatting USB drive

    Klaus thanks for your advice, I an making (slow) progress. I can read the USB device now inside Knoppix. But how do I format it with ext3

    Mark

  8. #8
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    The first thing to know is the device name of your USB stick. As Capricorny wrote you should open a terminal and enter
    Code:
    sudo fdisk -l
    You will get a list about your disk devices.
    In Knoppix drives are identified by devicenames. The first hdd is /dev/sda, the second one /dev/sdb etc. On a drive there are usually partitions. They are identified by numbers. The first partition on the second drive is /dev/sdb1.
    When you know the devicename you should enter
    Code:
    sudo umount /dev/sdb1
    to be sure that the device to be formatted is not mounted anymore. If your devicename is different from /dev/sdb1 you must use that instead. If the USB stick is not mounted, you will get an error message which does not bother you. A problem would be if you get an error message about a busy device. In that case you have to find out wether there is an open file which has to closed before you may unmount the device.
    The next step will be to format the USB stick. This might be the point where you will get problems with the virtualization technology as Capricorny stated before. You must enter
    Code:
    sudo mkfs.ext3 /dev/sdb1
    Again, you have to use your devicename if it is different from /dev/sdb1.
    Remember: If you format the device all data on it will be lost. Be careful to select the right device.
    The last step, I think, would be to change the partition id in the partition table. If your USB stick is /dev/sdb and the partition is the first one then the command would be
    Code:
    sudo sfdisk --change-id /dev/sdb 1 83
    In Knoppix 6.2 there is the possibility to use gparted instead of the command line tool mkfs.ext3. You can find it in the menu "Preferences" -> "GParted"

Similar Threads

  1. formatting a windows hard drive
    By rubberduck in forum MS Windows & New to Linux
    Replies: 1
    Last Post: 06-13-2006, 07:43 PM
  2. Mp3 usb stick and formatting
    By Dark_Wolf in forum Hardware & Booting
    Replies: 3
    Last Post: 12-09-2004, 04:14 PM
  3. Formatting a CD with Knoppix.
    By Chuckbaker in forum General Support
    Replies: 2
    Last Post: 09-07-2004, 09:25 PM
  4. FAT32 formatting?
    By Li Gwai Lo in forum General Support
    Replies: 4
    Last Post: 01-18-2004, 08:53 PM
  5. Formatting
    By Spike in forum Hdd Install / Debian / Apt
    Replies: 6
    Last Post: 10-07-2003, 05:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


H261-Z61 2U 24SFF AMD Server 8x EPYC 7702 512-Cores 2048GB RAM 8x25G NIC 2x2200W picture

H261-Z61 2U 24SFF AMD Server 8x EPYC 7702 512-Cores 2048GB RAM 8x25G NIC 2x2200W

$13292.18



HPE ProLiant MicroServer Gen8 Intel Xeon E3-1265L 16GB ECC PCIe x16 4x1TB HDD picture

HPE ProLiant MicroServer Gen8 Intel Xeon E3-1265L 16GB ECC PCIe x16 4x1TB HDD

$249.99



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$202.49



Supermicro 5018A-FTN4 Rack Server - Black picture

Supermicro 5018A-FTN4 Rack Server - Black

$125.00



Supermicro E300-8D Xeon D-1518 2.20GHz Mini Server picture

Supermicro E300-8D Xeon D-1518 2.20GHz Mini Server

$574.99



Supermicro SYS-E50-9AP-N5 Mini Fanless Server pfSense 5x 1GbE Atom E3940 8GB RAM picture

Supermicro SYS-E50-9AP-N5 Mini Fanless Server pfSense 5x 1GbE Atom E3940 8GB RAM

$180.00



HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon picture

HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon

$846.19



Supermicro  CSE  823-6 2U 6 Bay Chassis ,1xPWS 653-2H 650Wsold as in the photo, picture

Supermicro CSE 823-6 2U 6 Bay Chassis ,1xPWS 653-2H 650Wsold as in the photo,

$119.75



1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$297.00



Supermicro 1U X11DPU 2x Xeon Gold 6132 2.6GHz / 128gb / 10x 2.5 Trays / 2x 750w picture

Supermicro 1U X11DPU 2x Xeon Gold 6132 2.6GHz / 128gb / 10x 2.5 Trays / 2x 750w

$649.99