LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 10-22-2013, 02:14 PM   #1
slacktroll
Member
 
Registered: May 2011
Distribution: Slackware64/current
Posts: 175

Rep: Reputation: 44
Installing from usbstick bug.


When installing slackware from usbstick using the usbboot.img lilo always says it finds a FAT32 partion in /dev/sd[x] (where x is often b) and hence add /dev/sdb1 as Windows Partion and lilo fails because no such partion exist after using dd to write the usb stick.

On some system it fails to even boot from the usb stick badly with something saying 'invalid partion table'



I know how to edit /mnt/etc/lilo.conf myself and run lilo from the chroot but it's abit annoying.

Did anyone else at all have this issue or is this just because of a faulty usb device?
 
Old 10-22-2013, 03:17 PM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,503

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
This one was supposed to have been fixed by checking for an actual Windows partition with os-prober. Are you using a stick made with usbimg2disk.sh?

I'll take a look and see if I can spot a problem.
 
Old 10-23-2013, 04:45 AM   #3
slacktroll
Member
 
Registered: May 2011
Distribution: Slackware64/current
Posts: 175

Original Poster
Rep: Reputation: 44
Quote:
Originally Posted by volkerdi View Post
This one was supposed to have been fixed by checking for an actual Windows partition with os-prober. Are you using a stick made with usbimg2disk.sh?

I'll take a look and see if I can spot a problem.
used slackware-current/usb-and-pxe-installers/usbboot.img

Code:
dd if=usbboot.img of=/dev/sdb bs=1M
48+1 records in
48+1 records out
51332096 bytes (51 MB) copied, 11.1188 s, 4.6 MB/s

fdisk /dev/sdb
Command (m for help): p

Disk /dev/sdb: 16.0 GB, 16000221184 bytes
64 heads, 32 sectors/track, 15259 cylinders, total 31250432 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x20ac7dda

This doesn't look like a partition table
Probably you selected the wrong device.

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   ?  3224498923  3657370039   216435558+   7  HPFS/NTFS/exFAT
/dev/sdb2   ?  3272020941   930513678   976730017   16  Hidden FAT16
/dev/sdb3   ?           0           0           0   6f  Unknown
/dev/sdb4        50200576   974536369   462167897    0  Empty

Partition table entries are not in disk order
This ntfs partion is found by liloconfig in the installer and it adds /dev/sdb1 as a windows partion in lilo.conf and lilo fails to install

It's really easy to fix by chrooting into /mnt in the installer and removing the /dev/sdb1 ntfs line in lilo.conf but for those how are new it might be horrible!

Last edited by slacktroll; 10-23-2013 at 04:47 AM.
 
Old 10-23-2013, 04:49 AM   #4
slacktroll
Member
 
Registered: May 2011
Distribution: Slackware64/current
Posts: 175

Original Poster
Rep: Reputation: 44
How to reproduce:

step 1:
dd if=usbboot.img of=/dev/sdx bs=512
step 2:
dd if=usbboot.img of=/dev/sdx bs=1M
 
Old 10-23-2013, 08:48 AM   #5
perbh
Member
 
Registered: May 2008
Location: Republic of Texas
Posts: 393

Rep: Reputation: 81
The boot-image does not contain a partition table (eg. you don't have partitions on a CD).
'fdisk' is doing its best to decode where the partition table should be (if there was one).

You can find the same kind-of gruff if you (by mistake) do a 'fdisk /dev/sdx1' instead of 'fdisk /dev/sdx'
 
Old 10-23-2013, 12:29 PM   #6
slacktroll
Member
 
Registered: May 2011
Distribution: Slackware64/current
Posts: 175

Original Poster
Rep: Reputation: 44
Quote:
Originally Posted by perbh View Post
The boot-image does not contain a partition table (eg. you don't have partitions on a CD).
'fdisk' is doing its best to decode where the partition table should be (if there was one).

You can find the same kind-of gruff if you (by mistake) do a 'fdisk /dev/sdx1' instead of 'fdisk /dev/sdx'
The problem still exist because os-proper in the installer thinks there's a ntfs partion on /dev/sdb1 (the usb stick) and adds it to the lilo config and prevents lilo to run correctly
 
  


Reply



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
Booting off Usbstick mickeyboa Fedora 3 03-09-2008 11:52 AM
problems with usbstick CrashedAgain Linux - Hardware 5 12-17-2007 10:53 PM
cannot mount usbstick verbose Linux - Hardware 25 09-19-2005 06:26 PM
some USBstick help please Lleb_KCir Linux - General 13 07-26-2005 12:13 PM
USBstick problems! chansen0421 Linux - Newbie 4 01-15-2005 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:13 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
Open Source Consulting | Domain Registration