Author Topic: cant boot linux into gui from a usb drive  (Read 1842 times)

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: cant boot linux into gui from a usb drive
« Reply #15 on: February 25, 2013, 03:52:55 PM »
Code: [Select]
[root@localhost guest]# fsck -f /dev/sdc1
fsck from util-linux-ng 2.18
e2fsck 1.42 (29-Nov-2011)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdc1: 87731/1937088 files (0.1% non-contiguous), 724572/7733248 blocks
[root@localhost guest]#

My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: cant boot linux into gui from a usb drive
« Reply #16 on: February 25, 2013, 04:04:33 PM »
Code: [Select]
[root@localhost guest]# fdisk -l

Disk /dev/sda: 250.1 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488395055 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: 0xad48cc5d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63   488392064   244196001    7  HPFS/NTFS

Disk /dev/sdb: 20.4 GB, 20419854336 bytes
255 heads, 63 sectors/track, 2482 cylinders, total 39882528 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: 0x00000080

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63    39873329    19936633+   7  HPFS/NTFS

Disk /dev/sdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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: 0xce5973cb

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *          63    61866314    30933126   83  Linux
/dev/sdc2        61866315   156296384    47215035    5  Extended
/dev/sdc5        61866378    70043399     4088511   82  Linux swap / Solaris
/dev/sdc6        70043463   156296384    43126461   83  Linux
[root@localhost guest]#
My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: cant boot linux into gui from a usb drive
« Reply #17 on: February 26, 2013, 07:32:57 AM »
Any other advice? I would really like to get this to work.
My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10675
  • MLUs Forever!
Re: cant boot linux into gui from a usb drive
« Reply #18 on: February 26, 2013, 08:43:17 AM »
You only checked the first partition of sdc .....  what about /dev/sdc6?  Is there a reason you diod not check that?

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: cant boot linux into gui from a usb drive
« Reply #19 on: February 26, 2013, 08:49:39 AM »
You only checked the first partition of sdc .....  what about /dev/sdc6?  Is there a reason you diod not check that?



Nope, I thought sdc1 did the entire drive. Guess not, but I get it now since you asked.  :)  I can try the other partitions. Thanks.

Is there a wild card to do all partitions for a specific drive?

Any idea why it shows 4? When I installed, I did root, swap, and home. I don't get the 4th partition. Is that the boot?

« Last Edit: February 26, 2013, 08:53:53 AM by docnascar »
My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10675
  • MLUs Forever!
Re: cant boot linux into gui from a usb drive
« Reply #20 on: February 26, 2013, 08:52:34 AM »
You only checked the first partition of sdc .....  what about /dev/sdc6?  Is there a reason you diod not check that?



Nope, I thought sdc1 did the entire drive. Guess not. I can try the other partitions. Thanks.

Is there a wild card to do all partitions for a specific drive?

Any idea why it shows 4? When I installed, I did root, swap, and home. I don't get the 4th partition. Is that the boot?



No.

The Extended partition is a 'holder' for the rest of the partitions .....  sdc5 & sdc6 and any opthers you might decide to add.

You will not be able to fsck the extended partition or the swap partition (IIRC).


MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1489
  • In theory, theory=practice, in practice ???
Re: cant boot linux into gui from a usb drive
« Reply #21 on: February 26, 2013, 04:29:01 PM »
Linux is on this USB only and grub is not tied to the Windows machine, just set to boot from USB before HDD.
**Hitachi GST Travelstar 5K160 HTS541680J9SA00 (0A28842) 80GB 5400 RPM 8MB Cache 2.5" SATA 1.5Gb/s Notebook Hard Drive -Bare Drive


http://www.pclinuxos.com/forum/index.php/topic,104879.45.html

If your fsck shows a clean result an additional reinstall would do.

If not working then the above thread might help.   Basically says
Hitachi's need 5 seconds to mount and run right, sometimes.

Yankee
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: cant boot linux into gui from a usb drive
« Reply #22 on: February 26, 2013, 05:03:28 PM »
Code: [Select]
[root@localhost ~]# fdisk -l

Disk /dev/sda: 250.1 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488395055 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: 0xad48cc5d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63   488392064   244196001    7  HPFS/NTFS

Disk /dev/sdb: 20.4 GB, 20419854336 bytes
255 heads, 63 sectors/track, 2482 cylinders, total 39882528 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: 0x00000080

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63    39873329    19936633+   7  HPFS/NTFS

Disk /dev/sdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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: 0xce5973cb

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *          63    61866314    30933126   83  Linux
/dev/sdc2        61866315   156296384    47215035    5  Extended
/dev/sdc5        61866378    70043399     4088511   82  Linux swap / Solaris
/dev/sdc6        70043463   156296384    43126461   83  Linux
[root@localhost ~]# fsck -f /dev/sdc1
fsck from util-linux-ng 2.18
e2fsck 1.42 (29-Nov-2011)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdc1: 87731/1937088 files (0.1% non-contiguous), 724572/7733248 blocks
[root@localhost ~]# fsck -f /dev/sdc2
fsck from util-linux-ng 2.18
e2fsck 1.42 (29-Nov-2011)
fsck.ext2: Attempt to read block from filesystem resulted in short read while trying to open /dev/sdc2
Could this be a zero-length partition?
[root@localhost ~]# fsck -f /dev/sdc5
fsck from util-linux-ng 2.18
fsck: fsck.swap: not found
fsck: Error 2 while executing fsck.swap for /dev/sdc5
[root@localhost ~]# fsck -f /dev/sdc6
fsck from util-linux-ng 2.18
e2fsck 1.42 (29-Nov-2011)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdc6: 183/2698080 files (0.0% non-contiguous), 214551/10781615 blocks
[root@localhost ~]#


Clean, yes?
My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: cant boot linux into gui from a usb drive
« Reply #23 on: February 26, 2013, 05:09:55 PM »
Linux is on this USB only and grub is not tied to the Windows machine, just set to boot from USB before HDD.
**Hitachi GST Travelstar 5K160 HTS541680J9SA00 (0A28842) 80GB 5400 RPM 8MB Cache 2.5" SATA 1.5Gb/s Notebook Hard Drive -Bare Drive


http://www.pclinuxos.com/forum/index.php/topic,104879.45.html

If your fsck shows a clean result an additional reinstall would do.

If not working then the above thread might help.   Basically says
Hitachi's need 5 seconds to mount and run right, sometimes.
Code: [Select]
waitusb=5:

Adding that on the end of the initrd line in menu.lst could do the trick



Yankee


Interesting. Would it need this since Grub loads from that USB drive? I can still try.

Where is menu.lst located so I can edit?
« Last Edit: February 26, 2013, 05:11:42 PM by docnascar »
My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11591
  • ----IOFLU----
Re: cant boot linux into gui from a usb drive
« Reply #24 on: February 26, 2013, 05:19:40 PM »
Linux is on this USB only and grub is not tied to the Windows machine, just set to boot from USB before HDD.
**Hitachi GST Travelstar 5K160 HTS541680J9SA00 (0A28842) 80GB 5400 RPM 8MB Cache 2.5" SATA 1.5Gb/s Notebook Hard Drive -Bare Drive


http://www.pclinuxos.com/forum/index.php/topic,104879.45.html

If your fsck shows a clean result an additional reinstall would do.

If not working then the above thread might help.   Basically says
Hitachi's need 5 seconds to mount and run right, sometimes.
Code: [Select]
waitusb=5:

Adding that on the end of the initrd line in menu.lst could do the trick



Yankee


Interesting. Would it need this since Grub loads from that USB drive? I can still try.

Where is menu.lst located so I can edit?



/boot/grub/menu.lst
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: cant boot linux into gui from a usb drive
« Reply #25 on: February 26, 2013, 06:04:53 PM »
I thought that fixed it!  :o Now I have a new problem.  >:(  After it booted I was able to set the time and setup the root password and user name for the first time. Then it went to the normal login screen. However, it started blinking (Nvidia card driver bug??)

Had to reboot and now its getting stuck at the Welcome to PCLINUX 2013 screen.

Booted with livecd and fsck found some bad stuff. (sorry didn't write it down, but I said fix = yes)

Rebooted and now I'm back to the same problem! Ugh.... I need a break. BBL.




My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: cant boot linux into gui from a usb drive
« Reply #26 on: February 26, 2013, 06:07:46 PM »
Whats the workaround for the geforce nvidia 6600? I think it was one of the xorg options from XFdrake, but was it nv or nuevoueo (spelling ??? ???)

My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11591
  • ----IOFLU----
Re: cant boot linux into gui from a usb drive
« Reply #27 on: February 26, 2013, 06:20:20 PM »
Whats the workaround for the geforce nvidia 6600? I think it was one of the xorg options from XFdrake, but was it nv or nuevoueo (spelling ??? ???)



The driver to use temporarily would be nouveau, or possibly nv. Once you get to a GUI desktop, use PCC --> Hardware --> Configure Video Card to first select the Monitor, (either by actual name, if listed, or by generic resolution) then the Graphic Card:, (select GeForce 6100 to GeForce 7950) then finally set the resolution to that which is native to your monitor.
« Last Edit: February 27, 2013, 12:47:44 AM by Old-Polack »
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1489
  • In theory, theory=practice, in practice ???
Re: cant boot linux into gui from a usb drive
« Reply #28 on: February 26, 2013, 07:21:30 PM »

http://www.pclinuxos.com/forum/index.php/topic,104879.45.html

Interesting. Would it need this since Grub loads from that USB drive? I can still try.

Where is menu.lst located so I can edit?



Reply 43 and Reply 45 in the above thread read that they worked.   Which
involved adding one command to /etc/rc.local file for the Hitachi USB drive.
If you think that's needed.


root@local:/home/guest# fsck /dev/sdb1
fsck from util-linux 2.20.1
e2fsck 1.42.5 (29-Jul-2012)
OB1: clean, 84/43584 files, 99717/174332 blocks

The above fsck command shows the drive is clean, it shouldn't
get messed up again.
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline docnascar

  • Sr. Member
  • ****
  • Posts: 465
Re: cant boot linux into gui from a usb drive
« Reply #29 on: February 26, 2013, 09:07:05 PM »
Needs some advice.
I think I'm battling two issues here.

1 - is the irq thing with the usb drive. I added the 5 second delay to the grub menu.lst and I can clearly tell there is a delay, but I still get the errors.

2 - is sometime it does boot (with the irq errors) into a login screen and starts blinking and I can't login or type anything;  Or very rarely I can actually log into my desktop. (I keep messing with PCC or XFdrake and sometime it will go or not)  So far I have had to choose the kernel option from grub with safe settings to have any hope of getting a gui interface or access to the desktop.

Once I'm actually in, is there anything I can do to save the settings so I can choose the first option on the grub menu or just plain save these settings that let me into my desktop?

Not sure if this matters but to get in, it boots to terminal. I logged into root and did startx twice (first time failed for server error) and second time I"m in.
« Last Edit: February 27, 2013, 07:15:57 AM by docnascar »
My main PCLINUXOS PC:
KDE Mini
AMD FX-6300 (3.5G / 6 core)
MSI 970A-G46 AM3+ MOBO
G.SKILL Sniper Series 8GB (2 x 4GB) 1866 (PC3 14900)
ECS GeForce GT 440 (Fermi) 512MB 128-bit GDDR5
Seagate Barracuda ST1000DM003 1TB 7200 RPM SATA
SAMSUNG DVD Burner SATA Model SH-224BB
POWERUP PU-550 (550W) p