Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Pendrive Install Exercise< Next Oldest | Next Newest >
jaygeedsl Offline





Group: Members
Posts: 62
Joined: Jan. 2008
Posted: Jan. 09 2008,10:01 QUOTE

Pending sorting out a net access problem with DSL embedded in VMwarePlayer, I'm trying to run a native pen drive install following the instructions in chapter 6 of "The Official Damn Small Linux Book".

If it's OK with the moderators I like to use this thread to record my sequential progress following the book.

My Dell Dimension 2400 (Bios A02) doesn't support USB booting so I've created a boot floppy as detailed on p133 of the book. Incidentally the only reference to "bootfloppy-usb.img" was at the Planet Mirror site for a file created  in 2006. The other download sites only seem to hold "bootfloppy.img". Maybe it's just terminology?

The chosen USB device is an Integral 2GB pendrive and the USB-HDD is the chosen format.

As the pendrive was previously used for a successful native pen drive installation under WinXP2 using a boot floppy, I deleted all the reported data using Windows Explorer before starting this exercise.

Following the book I booted from the cd with the pen already plugged in, ran "sudo su dmesg" within Xterm and found the pendrive listed as "sda1". One observation: to save possible confusion I unplugged my HP C4380 All-In-One USB printer/copier/scanner as it has it's own embedded USB drive.

I then ran "sudo su cfdisk" to start the installation pre prep but the the only disk displayed was hda. For info I've got 2 HDs; a master hosting WinXP2 and a slave hosting Fedora8.

How should I run cfdisk to create a single table marked as FAT16 as recommended by the book?
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Jan. 09 2008,11:08 QUOTE

I don't have the dsl book in front of me to check what it says, but there are a couple of things you could think about:

1. Use the usb-hdd installation script from the right-click menu (I believe the latest versions will make a FAT partition and an ext2 partition).
2. If you already used the usb stick for a native installation and deleted the files, then it must already have a FAT16/FAT32 partition - why use cfdisk to do it again?
3. Is the command "sudo cfdisk /dev/sda" maybe?
4. You could also use "sudo sfdisk /dev/sda"
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Jan. 09 2008,15:20 QUOTE

The book is based on DSL 3.x.

DSL 3.x offers two types of pendrive installations, USB-ZIP and USB-HDD.

The boot floppy images described in the book are located in the DSL 3.x directory. There you will find the bootfloppy-usb.img as well as all files related to the Book and v3.x.

I didn't write the chapter on pendrives, but I did write the scripts.
Both scripts will automatically prepare the pendrive both partitioning and formating. I have never used any manual prep. One word of caution is to boot your system with the usb pendrive plugged in. Also boot DSL with the install option.

Do not boot DSL and then remove usb devices and plug in usb devices, as the usb detection system in 2.4 kernel hotplug is not perfect and the device may be mis-detected. The sure way is have it plugged in upon boot.

If you are running DSL v4.x, then things have changed. The limitation of the ZIP specificiation does not work well with the vastly larger pendrives of today. With 4.x, only a grub install is available with a small ext2 second partition for DSL and the remaining larger shareable with Windows first partition. The new script in 4.x has been tested on pendrives up to 4GB.

The bootfloppy of 4.x can be used to boot USB pendrives with a fromusb boot option. Therefore no separate boot floppy is needed for usb


Edited by roberts on Jan. 09 2008,15:21
Back to top
Profile PM WEB 
jaygeedsl Offline





Group: Members
Posts: 62
Joined: Jan. 2008
Posted: Jan. 09 2008,20:18 QUOTE

Quote (Juanito @ Jan. 09 2008,11:08)
I don't have the dsl book in front of me to check what it says, but there are a couple of things you could think about:

1. Use the usb-hdd installation script from the right-click menu (I believe the latest versions will make a FAT partition and an ext2 partition).
2. If you already used the usb stick for a native installation and deleted the files, then it must already have a FAT16/FAT32 partition - why use cfdisk to do it again?
3. Is the command "sudo cfdisk /dev/sda" maybe?
4. You could also use "sudo sfdisk /dev/sda"

I'm replying sequentially quoting the appropriate user name so as not to overlook something.

Point taken about the already-used drive but the chapter 6 author advises that this step saves possible problems and boot-up time.

I should really have read more about cfdisk as advised by the book so I'll try each of your options to see what is displayed.
Back to top
Profile PM 
jaygeedsl Offline





Group: Members
Posts: 62
Joined: Jan. 2008
Posted: Jan. 09 2008,20:51 QUOTE

Quote (roberts @ Jan. 09 2008,15:20)
The book is based on DSL 3.x.

DSL 3.x offers two types of pendrive installations, USB-ZIP and USB-HDD.

The boot floppy images described in the book are located in the DSL 3.x directory. There you will find the bootfloppy-usb.img as well as all files related to the Book and v3.x.

I didn't write the chapter on pendrives, but I did write the scripts.
Both scripts will automatically prepare the pendrive both partitioning and formating. I have never used any manual prep. One word of caution is to boot your system with the usb pendrive plugged in. Also boot DSL with the install option.

Do not boot DSL and then remove usb devices and plug in usb devices, as the usb detection system in 2.4 kernel hotplug is not perfect and the device may be mis-detected. The sure way is have it plugged in upon boot.

If you are running DSL v4.x, then things have changed. The limitation of the ZIP specificiation does not work well with the vastly larger pendrives of today. With 4.x, only a grub install is available with a small ext2 second partition for DSL and the remaining larger shareable with Windows first partition. The new script in 4.x has been tested on pendrives up to 4GB.

The bootfloppy of 4.x can be used to boot USB pendrives with a fromusb boot option. Therefore no separate boot floppy is needed for usb

Hi Robert

I had hoped that simply following the book would have given myself and other Linux newbies a simple static frame of reference for what  googling suggests is a quite a complicated process with sometimes variable results.

I appreciate that book production lead times mitigate against static data holding true for long but I thought one of the DSL objectives was to be able to overcome that by offering a basic set of tools which could be enhanced as required?

To avoid version problems my intention was (is?) to get a working USB pendrive installation from within Linux - as opposed to Windows - using the book's baseline. Thereafter I hope to explore other DSL USB installations on things like external drives etc. using  the experience gained on this project.

Maybe I should simply take a more pragmatic approach and just try to get there somehow.
Back to top
Profile PM 
7 replies since Jan. 09 2008,10:01 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Pendrive Install Exercise

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code