LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-06-2009, 07:58 PM   #16
oxblood
Member
 
Registered: Jan 2004
Location: Atlanta, GA
Distribution: Slackware 12.2
Posts: 82

Original Poster
Rep: Reputation: 15

Just to document everything, I did try placing 64M, rather than 4GB, on the USB but still no bootable USB:

Quote:
$> makebootfat -o /dev/sda -Y -Z -b ldlinux.bss -m mbrfat.bin -F -c ldlinux.sys -c syslinux.cfg -c vmlinuz -c initrd.gz image
$> fdisk -l /dev/sda
Disk /dev/sda: 4009 MB, 4009754624 bytes
84 heads, 22 sectors/track, 4237 cylinders
Units = cylinders of 1848 * 512 = 946176 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sda1 * 1 4238 3915745 b W95 FAT32
This time only read 64M:

Quote:
$> dd if=/dev/sda1 of=usb.img bs=64M count=1

Create proper geometry for the USB disk:

Quote:
$> fdisk -H64 -S32 /dev/sda

The number of cylinders for this disk is set to 3824.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sda: 4009 MB, 4009754624 bytes
64 heads, 32 sectors/track, 3824 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 4
First cylinder (1-3824, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-3824, default 3824):+64M

Command (m for help): t
Selected partition 4
Hex code (type L to list codes): b
Changed system type of partition 4 to b (W95 FAT32)

Command (m for help): a
Partition number (1-4): 4

Command (m for help): p

Disk /dev/sda: 4009 MB, 4009754624 bytes
64 heads, 32 sectors/track, 3824 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sda4 * 1 65 3915760 b W95 FAT32

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
Writing everything back on USB:

Quote:
$> dd if=usb.img of=/dev/sda4
And a million dollar question:

Quote:
FDD
No Operating System
Dissolving in immense sorrow...
 
Old 09-07-2009, 08:10 AM   #17
uppman
Member
 
Registered: Jul 2008
Location: Stockholm, Sweden
Distribution: Slackware 13.1 32-bit
Posts: 145

Rep: Reputation: 24
Quote:
Originally Posted by oxblood View Post
Still not having a bootable USB. Let me go through the steps one by one:
I'm sorry, there shouldn't be any MBR in a "superfloppy".

I have tried on a 1GB and a 8GB stick which both works. See below.

1 GB - USBest Technology
-----
Plugin

# dmesg

sb-storage: waiting for device to settle before scanning
usb 2-1.3: New USB device found, idVendor=1307, idProduct=0163
usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1.3: Product: USB Mass Storage Device
usb 2-1.3: Manufacturer: USBest Technology
usb 2-1.3: SerialNumber: 00000000000321
scsi 9:0:0:0: Direct-Access UDISK PDU20_1G 6AC2.0 0.00 PQ: 0 ANSI: 2
sd 9:0:0:0: [sdc] 2015231 512-byte hardware sectors (1032 MB)
sd 9:0:0:0: [sdc] Write Protect is off
sd 9:0:0:0: [sdc] Mode Sense: 00 00 00 00
sd 9:0:0:0: [sdc] Assuming drive cache: write through
sd 9:0:0:0: [sdc] 2015231 512-byte hardware sectors (1032 MB)
sd 9:0:0:0: [sdc] Write Protect is off
sd 9:0:0:0: [sdc] Mode Sense: 00 00 00 00
sd 9:0:0:0: [sdc] Assuming drive cache: write through
sdc:
sd 9:0:0:0: [sdc] Attached SCSI removable disk
sd 9:0:0:0: Attached scsi generic sg3 type 0
usb-storage: device scan complete

# mkdosfs -IF32 /dev/sdc
mkdosfs 2.11 (12 Mar 2005)

# sync

Unplug-replug

# dmesg

usb-storage: waiting for device to settle before scanning
usb 2-1.3: New USB device found, idVendor=1307, idProduct=0163
usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1.3: Product: USB Mass Storage Device
usb 2-1.3: Manufacturer: USBest Technology
usb 2-1.3: SerialNumber: 00000000000321
scsi 10:0:0:0: Direct-Access UDISK PDU20_1G 6AC2.0 0.00 PQ: 0 ANSI: 2
sd 10:0:0:0: [sdc] 2015231 512-byte hardware sectors (1032 MB)
sd 10:0:0:0: [sdc] Write Protect is off
sd 10:0:0:0: [sdc] Mode Sense: 00 00 00 00
sd 10:0:0:0: [sdc] Assuming drive cache: write through
sd 10:0:0:0: [sdc] 2015231 512-byte hardware sectors (1032 MB)
sd 10:0:0:0: [sdc] Write Protect is off
sd 10:0:0:0: [sdc] Mode Sense: 00 00 00 00
sd 10:0:0:0: [sdc] Assuming drive cache: write through
sdc:
sd 10:0:0:0: [sdc] Attached SCSI removable disk
sd 10:0:0:0: Attached scsi generic sg3 type 0
usb-storage: device scan complete

# mount /dev/sdc /mnt/tmp

# mkdir /mnt/tmp/syslinux

# cp /boot/initrd.gz /mnt/tmp/syslinux
# cp /boot/vmlinuz /mnt/tmp/syslinux

# kedit /mnt/tmp/syslinux/syslinux.cfg

Put into syslinux.cfg: default vmlinuz initrd=initrd.gz

# umount /mnt/tmp

# sync

# syslinux /dev/sdc

# sync

Looks like a USB-ZIP drive in the system with picky BIOS. Looks like a USB-FDD in another system. Selecting boot from "Removable" works in picky system. Selecting boot from USB-FDD works in the other.

8 GB - Sony
------

Plugin

# dmesg

usb 2-1.3: New USB device found, idVendor=054c, idProduct=0243
usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1.3: Product: Storage Media
usb 2-1.3: Manufacturer: Sony
usb 2-1.3: SerialNumber: 2A080922E7563
scsi 12:0:0:0: Direct-Access Sony Storage Media 0100 PQ: 0 ANSI: 0 CCS
sd 12:0:0:0: [sdc] 15663104 512-byte hardware sectors (8020 MB)
sd 12:0:0:0: [sdc] Write Protect is off
sd 12:0:0:0: [sdc] Mode Sense: 43 00 00 00
sd 12:0:0:0: [sdc] Assuming drive cache: write through
sd 12:0:0:0: [sdc] 15663104 512-byte hardware sectors (8020 MB)
sd 12:0:0:0: [sdc] Write Protect is off
sd 12:0:0:0: [sdc] Mode Sense: 43 00 00 00
sd 12:0:0:0: [sdc] Assuming drive cache: write through
sdc: sdc1 sdc2
sd 12:0:0:0: [sdc] Attached SCSI removable disk
sd 12:0:0:0: Attached scsi generic sg3 type 0
usb-storage: device scan complete
kjournald starting. Commit interval 5 seconds
EXT3 FS on sdc1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.

# mkdosfs -IF32 /dev/sdc
mkdosfs 2.11 (12 Mar 2005)

# sync

Unplug-replug

# dmesg

usb 2-1.3: New USB device found, idVendor=054c, idProduct=0243
usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1.3: Product: Storage Media
usb 2-1.3: Manufacturer: Sony
usb 2-1.3: SerialNumber: 2A080922E7563
scsi 14:0:0:0: Direct-Access Sony Storage Media 0100 PQ: 0 ANSI: 0 CCS
sd 14:0:0:0: [sdc] 15663104 512-byte hardware sectors (8020 MB)
sd 14:0:0:0: [sdc] Write Protect is off
sd 14:0:0:0: [sdc] Mode Sense: 43 00 00 00
sd 14:0:0:0: [sdc] Assuming drive cache: write through
sd 14:0:0:0: [sdc] 15663104 512-byte hardware sectors (8020 MB)
sd 14:0:0:0: [sdc] Write Protect is off
sd 14:0:0:0: [sdc] Mode Sense: 43 00 00 00
sd 14:0:0:0: [sdc] Assuming drive cache: write through
sdc:
sd 14:0:0:0: [sdc] Attached SCSI removable disk
sd 14:0:0:0: Attached scsi generic sg3 type 0
usb-storage: device scan complete

# mount /dev/sdc /mnt/tmp

# mkdir /mnt/tmp/syslinux

# cp /boot/initrd.gz /mnt/tmp/syslinux
# cp /boot/vmlinuz /mnt/tmp/syslinux

# kedit /mnt/tmp/syslinux/syslinux.cfg

Put into syslinux.cfg: default vmlinuz initrd=initrd.gz

# umount /mnt/tmp

# sync

# syslinux /dev/sdc

# sync

Looks like a USB-ZIP in system with picky BIOS. Looks like a USB-HD in another system. Works in both.
 
Old 09-07-2009, 02:36 PM   #18
oxblood
Member
 
Registered: Jan 2004
Location: Atlanta, GA
Distribution: Slackware 12.2
Posts: 82

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by uppman View Post
I'm sorry, there shouldn't be any MBR in a "superfloppy".

8 GB - Sony
------

Plugin

# mkdosfs -IF32 /dev/sdc
mkdosfs 2.11 (12 Mar 2005)

# sync

Unplug-replug

# mount /dev/sdc /mnt/tmp

# mkdir /mnt/tmp/syslinux

# cp /boot/initrd.gz /mnt/tmp/syslinux
# cp /boot/vmlinuz /mnt/tmp/syslinux

# kedit /mnt/tmp/syslinux/syslinux.cfg

Put into syslinux.cfg: default vmlinuz initrd=initrd.gz

# umount /mnt/tmp

# sync

# syslinux /dev/sdc

# sync

Looks like a USB-ZIP in system with picky BIOS. Looks like a USB-HD in another system. Works in both.

I had done that as you suggested before but only get "Boot error" when either USB-ZIP or USB-FDD is selected in the BIOS. I am at lost.
 
Old 09-08-2009, 03:41 PM   #19
uppman
Member
 
Registered: Jul 2008
Location: Stockholm, Sweden
Distribution: Slackware 13.1 32-bit
Posts: 145

Rep: Reputation: 24
Quote:
Originally Posted by oxblood View Post
I had done that as you suggested before but only get "Boot error" when either USB-ZIP or USB-FDD is selected in the BIOS. I am at lost.
So you also tried to create a "superfloppy" and *without* writing a MBR?

There are no other boot options in the BIOS? Like "HD boot priority" or something?

Perhaps you could try another stick? Or try installing puppy which has several options for picky BIOS'es.

Don't give up, computers should behave!
 
Old 09-08-2009, 06:00 PM   #20
oxblood
Member
 
Registered: Jan 2004
Location: Atlanta, GA
Distribution: Slackware 12.2
Posts: 82

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by uppman View Post
So you also tried to create a "superfloppy" and *without* writing a MBR?
Can you elaborate as to how to create a superfloppy without writing a MBR?

Quote:
Originally Posted by uppman View Post
There are no other boot options in the BIOS? Like "HD boot priority" or something?
There are only USB-ZIP and USB-FDD options relating to USB. Of course, other options such as floppy, ZIP, and unrelated selections are also available.

Quote:
Originally Posted by uppman View Post
Perhaps you could try another stick? Or try installing puppy which has several options for picky BIOS'es.
If I had another stick, I would have. I might give Puppy Linux a try later on but not now.

Quote:
Originally Posted by uppman View Post
Don't give up, computers should behave!
Some times you just have to concede to defeat. Not every battle must be won on the field of knowledge. My ego has been bruised before -- more than I like to admit when it comes to technology. This is perhaps one of those times. I'll try to install Slackware 13 on my "old" Toshiba laptop, which has been eating dust for the last several years, in the coming week and try to see if I can make a bootable USB on its system.
 
Old 09-10-2009, 02:35 AM   #21
uppman
Member
 
Registered: Jul 2008
Location: Stockholm, Sweden
Distribution: Slackware 13.1 32-bit
Posts: 145

Rep: Reputation: 24
Quote:
Originally Posted by oxblood View Post
Can you elaborate as to how to create a superfloppy without writing a MBR?
For a "superfloppy" the MBR gets created autmagically by the mkdosfs program:

mkdosfs -IF32 /dev/sdc

So to install another MBR afterwards would break the "superfloppy".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 08:32 AM
What makes my usb device bootable? alaios Linux - Hardware 20 04-30-2009 08:40 AM
Is making GRUB use USB device possible with NO BIOS support?! shinobi_dude Linux - Newbie 15 04-10-2007 12:30 PM
boot pc from a bootable-iso without a cd or usb-device psytroll Linux - General 1 02-23-2006 02:27 PM
HP Deskjet (USB) & CUPS & Slackware 9.1: Unable to open USB device "usb:/dev/usb/lp0&qu arnostienen Slackware 2 01-29-2004 04:22 PM


All times are GMT -5. The time now is 02:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration