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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
09-13-2009, 04:30 PM
|
#16
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,650
|
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.
|
|
|
09-13-2009, 05:00 PM
|
#17
|
Member
Registered: Jul 2009
Location: Germany
Distribution: Arch
Posts: 52
Original Poster
Rep:
|
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.
|
|
|
09-13-2009, 06:23 PM
|
#18
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,650
|
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.
|
|
|
09-14-2009, 09:40 AM
|
#19
|
Member
Registered: Jul 2009
Location: Germany
Distribution: Arch
Posts: 52
Original Poster
Rep:
|
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?
|
|
|
09-14-2009, 10:23 AM
|
#20
|
Member
Registered: Jul 2009
Location: Germany
Distribution: Arch
Posts: 52
Original Poster
Rep:
|
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).
|
|
|
09-14-2009, 10:25 AM
|
#21
|
Member
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 121
Rep:
|
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.
|
|
|
09-14-2009, 10:46 AM
|
#22
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,960
|
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!
|
|
|
09-14-2009, 01:57 PM
|
#23
|
Member
Registered: Jul 2009
Location: Germany
Distribution: Arch
Posts: 52
Original Poster
Rep:
|
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.
|
|
|
09-14-2009, 03:02 PM
|
#24
|
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
|
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
|
|
|
09-14-2009, 03:42 PM
|
#25
|
LQ Veteran
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
|
Quote:
Originally Posted by GrapefruiTgirl
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/
|
|
|
09-14-2009, 03:54 PM
|
#26
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,960
|
Hi,
Quote:
Originally Posted by GrapefruiTgirl
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 ...
|
|
|
09-14-2009, 03:59 PM
|
#27
|
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
|
Thanks you guys. Let's see here, where's my /merge/ button..
|
|
|
12-12-2009, 08:15 AM
|
#28
|
Member
Registered: Feb 2006
Location: Bridgend, Wales
Distribution: Kubuntu 10.04.25 (Feb 2011)
Posts: 172
Rep:
|
Quote:
Originally Posted by onebuck
|
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.
|
|
|
12-12-2009, 08:49 AM
|
#29
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,960
|
Hi,
Quote:
Originally Posted by __spc__
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.
|
|
|
All times are GMT -5. The time now is 08:33 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|