Results 1 to 9 of 9

Thread: 3.8 CeBit: Resolving issues with USB storage devices

  1. #1
    Junior Member
    Join Date
    Apr 2004
    Location
    griffith.nsw.australia
    Posts
    9

    3.8 CeBit: Resolving issues with USB storage devices

    I've just been doing a bit of testing with the Knoppix 3.8 CeBit 2005 edition, and I just thought I'd go over some of the problems I've had with USB storage devices.

    New naming convention for USB storage
    They are now referred to as ub[a-z] instead of the old sd[a-z] - this is basically where all the problems stem from.
    I can't quite work out why it's been changed. Initially I had no experience with any distros using the 2.6 kernel, and figured the change was related to that. Except that I've now used the kubuntu hoary preview with the 2.6.10 kernel, and it still refers to the devices as sd[a-z]. I don't know the reasons behind the change, but it's certainly a more intuitive name than before (starts with a 'u' for usb), and it no longer has to share with sata disks.

    Some specific issues as a result
    There are a few scripts that are supposed to search for storage devices, generally matching entries in /etc/fstab. Unfortunately, these scripts don't seem to have been updated to include the new naming convention.

    Example: /etc/init.d/knoppix-autoconfig
    The "findfile" function which is called when you use the cheatcode myconfig=scan searches for existing knoppix configs on storage devices
    Code:
    findfile(){
    ...
      for i in /mnt/[sh]d[a-z] /mnt/[sh]d[a-z][1-9] /mnt/[sh]d[a-z][1-9]?*; do
    ...
    }
    If I have a knoppix config file stored on my usb stick /dev/ub[a-z][1-9] then the code above will not find it.

    It's a simple fix:
    Code:
     /mnt/[shu][db][a-z]
    But I'm not sure how many different scripts reference the storage devices in this way.

    Another I've found is /usr/sbin/saveconfig (run from K Menu -> KNOPPIX ->Configure -> Save Knoppix configuration)
    Code:
    # Directory selector
    for i in `awk '/^\/dev\/[hs]d[a-z].*\/mnt\/[hs]d[a-z]/...
    Wouldn't it be easier to use the old naming convention?
    Not knowing the reasons behind the change, I don't know for sure, but it would make sense to me

    Does anyone have any thoughts/comments/insights?

  2. #2
    Junior Member
    Join Date
    Apr 2005
    Posts
    5
    this is probably why i cant use the saveconfig script. i used to save my configuration on my usb stick now that does not work anymore. saveconfig only asks me to put it on a floppy disk, my usb stick does not appear in the list anymore as it did in knoppix 3.7. unfortunatly this makes knoppix 3.8 completly useless to me.

    is there anyway to fix that issue? unfotunatly i dont know anything about linux

    bye

  3. #3
    Junior Member
    Join Date
    Apr 2004
    Location
    griffith.nsw.australia
    Posts
    9
    You'll need to remaster the iso I guess.
    Have a look at this thread: http://www.knoppix.net/forum/viewtop...light=remaster

    It's not difficult to do, but it is a bit difficult to understand what you're actually doing. If you just go through the guide, and get it working then you can get a grip on what's happening, then be a bit more adventurous (and change the scripts I mentioned above so they work )

  4. #4
    Junior Member
    Join Date
    Apr 2005
    Posts
    5
    hm very complicated. since it is only one script, cant i fix it and save it on my usb stick? i dont have enough knowledge and time to do it the other way.

    thx for your help!

  5. #5
    Junior Member
    Join Date
    Apr 2004
    Location
    griffith.nsw.australia
    Posts
    9
    The quickest and dirtiest solution is to:
    1. As root, edit the /usr/sbin/saveconfig script while booted to the livecd
    2. Make the following changes (additions are underlined and bold)

    # Directory selector
    for i in `awk '/^\/dev\/[hsu][db][a-z].*\/mnt\/[hsu][db][a-z]/...

    3. Save the file and go through your save config process like normal (your usb device should now be available to select)

    4. When you reboot, you will have to explicitly state the location of the backed up config
    ie instead of using the cheatcode myconfig=scan, use myconfig=/dev/uba1 (or wherever your config is stored)

    That'll work

  6. #6
    Junior Member
    Join Date
    Apr 2005
    Posts
    5
    yeah thats more like my solution. dont care if its dirty! how can i log on as root?

    thx

  7. #7
    Junior Member
    Join Date
    Apr 2004
    Location
    griffith.nsw.australia
    Posts
    9
    Open up a konsole terminal, and type
    sudo vi /usr/sbin/saveconfig

    The sudo command tells it to run the following program with Super User (ie root) privileges.
    vi is a command line text editor that can be a bit difficult to get started with, but is worth learning the basics for.
    /usr/sbin/saveconfig is of course, the file you want to edit.

    Very quick and dirty vi tutorial:
    Type i to change to 'INSERT' mode (ie a mode where you can edit the text like a normal text editor)
    Make your changes
    Type Esc (ie the esc key) to exit INSERT mode
    Type :wq to Write the changes to disk (ie save them), and Quit

    If you get stuck and confused and your file looks totally buggered, then
    Hit the Esc key a few times
    Type :q! to force quit without writing any changes, and go through the steps above again

    For a less quick and dirty vi tutorial, try http://acs.ucsd.edu/info/vi_tutorial.php

  8. #8
    Junior Member
    Join Date
    Apr 2005
    Posts
    5
    i think it worked! thanks a lot!!!!!!!!!!

    bye

  9. #9
    Junior Member registered user
    Join Date
    Jan 2005
    Posts
    20

    Usb Naming convention changed in 3.8 Cebit

    I also have a usb stick on which I store my config file. For some reason when running off the HD using the FromHD cheatcode, my printer config won't save to my Persistent Home Directory, and so I have to use the Save config option to save and restore the Printer config. I'm not using 3.8 Cebit because my Save Config screen won't show either SDA1 or UBA1. Also, 3.8Cebit came out just as KDE was releasing the KDE 3.4 desktop, and I'll wait for that before I upgrade. I already have Firfox set up in my Persistent Home directory to relace the old Mozilla Browser on 3.7,and I've also added Kaffeine as my CD player, so I'm pretty happy with the setup.

Similar Threads

  1. Knoppix 5.3 DVD zur Cebit
    By Eppo in forum German Forum
    Replies: 6
    Last Post: 03-03-2008, 05:00 PM
  2. USB storage devices
    By srowe in forum Hardware & Booting
    Replies: 17
    Last Post: 11-13-2004, 02:05 AM
  3. Replies: 35
    Last Post: 10-03-2004, 01:39 AM
  4. Problem resolving package conflicts
    By beforewisdom in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 03-05-2004, 04:54 AM
  5. boot.img in 3.4 cebit
    By arkaine23 in forum Customising & Remastering
    Replies: 5
    Last Post: 02-16-2004, 06:39 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
  •  


16GB KIT (2x8GB) DDR3 Gamer Desktop RAM PC3 MIXED BRANDS VIPER VENGEANCE FURY picture

16GB KIT (2x8GB) DDR3 Gamer Desktop RAM PC3 MIXED BRANDS VIPER VENGEANCE FURY

$10.00



Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit picture

Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit

$99.99



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$21.68



Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM  M393A4K40CB2-CTD6Q picture

Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM M393A4K40CB2-CTD6Q

$169.00



Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC picture

Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC

$29.99



MINT Micron Cisco 32GB PC4-2400T DDR4 2Rx4 RDIMM RAM MTA36ASF4G72PZ-2G3 LOT picture

MINT Micron Cisco 32GB PC4-2400T DDR4 2Rx4 RDIMM RAM MTA36ASF4G72PZ-2G3 LOT

$159.99



DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix picture

DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix

$66.00



Samsung 16GB LPCAMM2 PC5 7500 DDR5 LPDDR5X CAMM2 M561K1LC4DM0-CCTGM RAM Memory picture

Samsung 16GB LPCAMM2 PC5 7500 DDR5 LPDDR5X CAMM2 M561K1LC4DM0-CCTGM RAM Memory

$189.00



Crucial DDR3L 16GB 2 x 8GB 1600 MHz PC3L-12800 Laptop RAM Sodimm Memory 1.35V picture

Crucial DDR3L 16GB 2 x 8GB 1600 MHz PC3L-12800 Laptop RAM Sodimm Memory 1.35V

$41.00



Corsair Vengeance DDR3 8GB 16GB 32GB 1866MHz PC3-14900 Desktop RAM Memory DIMM picture

Corsair Vengeance DDR3 8GB 16GB 32GB 1866MHz PC3-14900 Desktop RAM Memory DIMM

$43.00