LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-13-2009, 04:30 PM   #16
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,650

Rep: Reputation: 1659Reputation: 1659Reputation: 1659Reputation: 1659Reputation: 1659Reputation: 1659Reputation: 1659Reputation: 1659Reputation: 1659Reputation: 1659Reputation: 1659

what if you redo you usb with
Code:
dd if=usbboot.img of=/dev/sdx bs=512
copy the iso file to it. then boot and do as I suggested in my last post.
never mind this formats to fat not good with a dvd iso.

Last edited by colorpurple21859; 09-13-2009 at 05:01 PM.
 
Old 09-13-2009, 05:00 PM   #17
Asinine
Member
 
Registered: Jul 2009
Location: Germany
Distribution: Arch
Posts: 52

Original Poster
Rep: Reputation: 15
Okay, one last hurrah. Apparently my bootup usb was having some issues. Couldn't run cfdisk on it (the result was "FATAL: Bad primary partition 0: Partition begins after end-of-disk"), and it gave a nasty printout for fdisk -l (see below for the "current" usb drive's).

So I abandoned it and began to try your last suggestion. I did dd if=usbboot.img, and when I went to copy the .iso back onto it, I also got the nasty printout like the original boot usb had. The one for the larger usb drive is:
Code:
#[root@sushi HP8GB]$fdisk -l /dev/sdc

Disk /dev/sdc: 8015 MB, 8015282176 bytes
247 heads, 62 sectors/track, 1022 cylinders
Units = cylinders of 15314 * 512 = 7840768 bytes
Disk identifier: 0xde8e7bb0

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

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   ?      197240      197273      253319   e4  SpeedStor
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(190, 120, 0) logical=(197239, 8, 51)
Partition 1 has different physical/logical endings:
     phys=(544, 125, 44) logical=(197272, 29, 24)
Partition 1 does not end on cylinder boundary.
/dev/sdc2   ?       65729      195542   993984023   98  Unknown
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(1010, 16, 43) logical=(65728, 56, 10)
Partition 2 has different physical/logical endings:
     phys=(205, 205, 22) logical=(195541, 245, 55)
Partition 2 does not end on cylinder boundary.
/dev/sdc3   ?      110790      236159   959953209   7d  Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(252, 139, 46) logical=(110789, 48, 54)
Partition 3 has different physical/logical endings:
     phys=(367, 195, 2) logical=(236158, 138, 25)
Partition 3 does not end on cylinder boundary.
/dev/sdc4   ?         612         617       32768    0  Empty
Partition 4 has different physical/logical beginnings (non-Linux?):
     phys=(0, 10, 0) logical=(611, 238, 39)
Partition 4 has different physical/logical endings:
     phys=(0, 0, 0) logical=(616, 60, 40)
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order
The cfdisk gives the same fatal message as well. I find this odd since running "dd if=usbboot.img of=/dev/sdc bs=512" seems to be turning my usb drives to mush. Is that normal? Could this be the issue? I'm currently running "dd if=/dev/zero of=/dev/sdc bs=512" and it's taking forever, so I'm heading to bed in hopes that it'll be done by morning.

Hopefully this stuff is helpful. And once again, thanks colorpurple for trying to help me figure this out.
 
Old 09-13-2009, 06:23 PM   #18
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,650

Rep: Reputation: 1659Reputation: 1659Reputation: 1659Reputation: 1659Reputation: 1659Reputation: 1659Reputation: 1659Reputation: 1659Reputation: 1659Reputation: 1659Reputation: 1659
after writing the usbimg to the usb it will look similar to what you show when fdisk is ran, if the iso file copied to the usb okay boot up and log in, do fdisk -l to locate your usb device and mount as mentioned on post #14

Last edited by colorpurple21859; 09-13-2009 at 06:24 PM.
 
Old 09-14-2009, 09:40 AM   #19
Asinine
Member
 
Registered: Jul 2009
Location: Germany
Distribution: Arch
Posts: 52

Original Poster
Rep: Reputation: 15
USB woes

Hello. I'm running Slackware 13.0.

I've been trying to install my laptop using my USB stick. Stuff wasn't working out (I did a dd if=usbboot.img), so I dd if=/dev/zero'd it because I couldn't get it to do anything else (the cfdisk was giving me fatal errors because the end of the partition went off the disk or something). This is what it was saying:
Code:
$fdisk -l /dev/sdc

Disk /dev/sdc: 8015 MB, 8015282176 bytes
247 heads, 62 sectors/track, 1022 cylinders
Units = cylinders of 15314 * 512 = 7840768 bytes
Disk identifier: 0xde8e7bb0

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

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   ?      197240      197273      253319   e4  SpeedStor
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(190, 120, 0) logical=(197239, 8, 51)
Partition 1 has different physical/logical endings:
     phys=(544, 125, 44) logical=(197272, 29, 24)
Partition 1 does not end on cylinder boundary.
/dev/sdc2   ?       65729      195542   993984023   98  Unknown
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(1010, 16, 43) logical=(65728, 56, 10)
Partition 2 has different physical/logical endings:
     phys=(205, 205, 22) logical=(195541, 245, 55)
Partition 2 does not end on cylinder boundary.
/dev/sdc3   ?      110790      236159   959953209   7d  Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(252, 139, 46) logical=(110789, 48, 54)
Partition 3 has different physical/logical endings:
     phys=(367, 195, 2) logical=(236158, 138, 25)
Partition 3 does not end on cylinder boundary.
/dev/sdc4   ?         612         617       32768    0  Empty
Partition 4 has different physical/logical beginnings (non-Linux?):
     phys=(0, 10, 0) logical=(611, 238, 39)
Partition 4 has different physical/logical endings:
     phys=(0, 0, 0) logical=(616, 60, 40)
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order
It showed up "normally" in fdisk -l again after I dd if=/dev/zero count=1 bs=512. But since then, the mbr doesn't seem to be working right. I cannot mount it, and now it constantly has the disk identifier 0x00000000. I ran fsck on it, and this is the output:
Code:
fsck /dev/sdc
fsck 1.41.8 (11-July-2009)
e2fsck 1.41.8 (11-July-2009)
/sbin/e2fsck: Superblock invalid, trying backup blocks...
/sbin/e2fsck: Bad magic number in super-block while trying to open /dev/sdc

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
I tried the e2fsck -b 8193 /dev/sdc. Didn't work.

Now I'm lost. Is the USB stick bad? Or maybe a better question would be, how can I "format" the disk to ext2? I know cfdisk changes stuff, but it doesn't actually format the disk. Maybe like, the command that is presented in the initial slack setup when you choose a partition to install to, then have the option to format (quick), check (slow format) or neither?
 
Old 09-14-2009, 10:23 AM   #20
Asinine
Member
 
Registered: Jul 2009
Location: Germany
Distribution: Arch
Posts: 52

Original Poster
Rep: Reputation: 15
Alrighty... so I finally got it to work. Apparently the usb was the issue; I'd dd'd and all that stuff, but it just wouldn't read properly. I finally had to instruct the laptop to choose the stick as the destination, then formatted it that way. (Currently got an open-ticket in newbie in regards to what the crap was happening there.)
Thanks again, finally got it working.

To sum up for my (and others') future reference:
I used a boot usb (256mb) after setting it up with usbboot.img. I copied the install .iso to a second usb (8gb). I then mounted the .iso usb on the laptop after it'd booted up to /mnt/usb. I ran "mount -o loop /mnt/usb /mnt/iso" (gotta create the mount point directories first). Then in setup, I installed from a hard drive partition, selecting /mnt/iso. Then I chose the directory /slackware. Now I see the package series selection and have not been happier in the past week (in regards to linux, that is).
 
Old 09-14-2009, 10:25 AM   #21
sploot
Member
 
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 121

Rep: Reputation: 27
When you used dd to destroy the first 512, you erased the MBR, I think. So if you run cfdisk or fdisk on the drive, it should give you an option to recreate it. This may fix the problem you're having with mounting the disk.
 
Old 09-14-2009, 10:46 AM   #22
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,960
Blog Entries: 46

Rep: Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188
Hi,

You can look at the 'README_USB.TXT' to see a method of restoring your stick.

The above file is part of the 'usb-and-pxe-installers' on your media.

Lot of people fail to read the documentation available on the Slackware media that will aid them. Sure you just may not be aware of where to look but it's there.

Search does work!
 
Old 09-14-2009, 01:57 PM   #23
Asinine
Member
 
Registered: Jul 2009
Location: Germany
Distribution: Arch
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by sploot
When you used dd to destroy the first 512, you erased the MBR, I think. So if you run cfdisk or fdisk on the drive, it should give you an option to recreate it. This may fix the problem you're having with mounting the disk.
Nah, I did that to no avail.

Quote:
Originally Posted by onebuck
You can look at the 'README_USB.TXT' to see a method of restoring your stick.
I'd been shown something very similar to that; the place I learned about usb-and-pxe-installers had the exact documentation, all up til the "(2) Then, create a new FAT32 partition on the stick..." part. I wonder if that's what the final issue was, although I did go back and format it under Windows and still had the issues til I just formatted it under the Slackware setup program. Edit: It also conveniently left out the whole bit about fdisk throwing fits about what was going on.

I'll have to try that next time. Thanks guys!

Last edited by Asinine; 09-14-2009 at 02:00 PM.
 
Old 09-14-2009, 03:02 PM   #24
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Forgive me if I miss something above, but how did this thread become [solved]? I don't see a resolution, or 'Eureka moment' anywhere.

Sasha
 
Old 09-14-2009, 03:42 PM   #25
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by GrapefruiTgirl View Post
Forgive me if I miss something above, but how did this thread become [solved]? I don't see a resolution, or 'Eureka moment' anywhere.

Sasha
Checkout this thread


http://www.linuxquestions.org/questi...om-usb-754781/
 
Old 09-14-2009, 03:54 PM   #26
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,960
Blog Entries: 46

Rep: Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188
Hi,
Quote:
Originally Posted by GrapefruiTgirl View Post
Forgive me if I miss something above, but how did this thread become [solved]? I don't see a resolution, or 'Eureka moment' anywhere.

Sasha
People feel they need to create a new thread whenever something is different. Go figure.

DupeTaDupeTaDupe ...
 
Old 09-14-2009, 03:59 PM   #27
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Thanks you guys. Let's see here, where's my /merge/ button..
 
Old 12-12-2009, 08:15 AM   #28
__spc__
Member
 
Registered: Feb 2006
Location: Bridgend, Wales
Distribution: Kubuntu 10.04.25 (Feb 2011)
Posts: 172

Rep: Reputation: 30
Quote:
Originally Posted by onebuck View Post
Hi,

Or look at 'usb-and-pxe-installers'.

This link and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
Hi,

I'm just not 'getting it' for the USB install...

I have a Samsung N110 with Win 7, a 2GB USB penstick, and a 500Gb external drive.

I want to install Slack 13 on the external drive (as the Sammie can boot from this). The USB installer (using the penstick) seems to assume you already have a Linux box..?

Any pointers greatly received.

Thanks - Steven.
 
Old 12-12-2009, 08:49 AM   #29
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,960
Blog Entries: 46

Rep: Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188
Hi,
Quote:
Originally Posted by __spc__ View Post
Hi,

I'm just not 'getting it' for the USB install...

I have a Samsung N110 with Win 7, a 2GB USB penstick, and a 500Gb external drive.

I want to install Slack 13 on the external drive (as the Sammie can boot from this). The USB installer (using the penstick) seems to assume you already have a Linux box..?

Any pointers greatly received.

Thanks - Steven.
I suggest that you create a new thread instead of hi-jacking this one.

The 'usb-and-pxe-installers' is for installing from a USB device. Once the USB is booted then run setup to make the selections. This does not require a pre-install but does require your system to enable a USB boot.

Read the text suggested.
 
  


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
installing from usb abd_bela Debian 2 07-03-2009 12:54 AM
Need help with installing from just a USB. Teften Slackware - Installation 5 04-27-2009 01:25 AM
Installing Debian on USB Hard Drive/USB Jump Drive kushalkoolwal Debian 10 02-26-2009 02:46 PM
installing Sierra 881 USB wireless, cannot find /usb/tty/USB0 becausei'mstubborn Linux - Hardware 7 01-04-2009 01:49 PM
Installing on a USB HD wongster Fedora - Installation 3 12-05-2004 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:33 AM.

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