LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-04-2012, 04:27 AM   #1
688a
Member
 
Registered: Sep 2012
Location: Hong Kong
Distribution: Slackware14 (3.7)
Posts: 51

Rep: Reputation: Disabled
Unhappy [Solved] USB Sticks broken/locked after liveCD installed?


Hi there,

Today, I installed the liveCD in my USB stick. It went OK and live Fedora system was up with the liveCD.

Then when I wanted to use the USB again, the memory size became 5MB and it was 2GB before. SO, I tried to format the stick in Windows, but it didn't work.

At the beginning, I thought it was because of my USB stick. Then, I used the second one and installed the Fedora 18 alpha version. After that, the same thing happened to the second stick. Now, the label of the 2nd stick is EFI and I could see some system files inside. Tried to delete the files in my Linux machine, but I don't have permission to do so.

So, how can I fix my USB sticks?

Thanks.

Last edited by 688a; 10-04-2012 at 06:01 AM.
 
Old 10-04-2012, 04:57 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, some of those files are there for the FS (file system).

don't format it!

The flash file system changes depending on it being a "slave drive" (/mnt/...) or / (not /root).IMHO

An unusual bug I have come across, with flash to HDD installs, is you need to keep a working copy of the /boot/grub dir someplace safe from (install)system-formats. ie, a different partition.

Because what occurs is that the boot loader (or Grub-install) does not get written to /boot.

So you may need to do that with an app, like with... Grub Legacy boot loader, Grub4Dos...

or edit the file yourself

vi /boot/grub/menu.lst
Code:
sh-4.1# cat /boot/grub/menu.lst
# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'.  Mon Oct  1 18:15:13 2012
#
# The backup copy of the MBR for drive '/dev/sda' is
# here '/boot/grub/mbr.sda.14773'.  You can restore it like this.
# dd if=/boot/grub/mbr.sda.14773 of=/dev/sda bs=512 count=1
#
# Start GRUB global section
timeout 30
color light-gray/blue black/light-gray
# End GRUB global section
# Other bootable partition config begins
  title Windows (on /dev/sda1)
  rootnoverify (hd0,0)
  makeactive
  chainloader +1
# Other bootable partition config ends
# Linux bootable partition config begins
  title Studio-1337 Linux
  root (hd0,2)
  kernel /boot/vmlinuz root=/dev/sda3 pmedia=atahd vga=785
# Linux bootable partition config ends
sh-4.1#
After quite a few tests, I do this now

soon I'll have a script to set my settings after a clean install.

Hope this helps, Glenn (Late one afternoon)
 
Old 10-04-2012, 06:00 AM   #3
688a
Member
 
Registered: Sep 2012
Location: Hong Kong
Distribution: Slackware14 (3.7)
Posts: 51

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by GlennsPref View Post
Hi, some of those files are there for the FS (file system).

don't format it!

The flash file system changes depending on it being a "slave drive" (/mnt/...) or / (not /root).IMHO

An unusual bug I have come across, with flash to HDD installs, is you need to keep a working copy of the /boot/grub dir someplace safe from (install)system-formats. ie, a different partition.

Because what occurs is that the boot loader (or Grub-install) does not get written to /boot.

So you may need to do that with an app, like with... Grub Legacy boot loader, Grub4Dos...

or edit the file yourself

vi /boot/grub/menu.lst
Code:
sh-4.1# cat /boot/grub/menu.lst
# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'.  Mon Oct  1 18:15:13 2012
#
# The backup copy of the MBR for drive '/dev/sda' is
# here '/boot/grub/mbr.sda.14773'.  You can restore it like this.
# dd if=/boot/grub/mbr.sda.14773 of=/dev/sda bs=512 count=1
#
# Start GRUB global section
timeout 30
color light-gray/blue black/light-gray
# End GRUB global section
# Other bootable partition config begins
  title Windows (on /dev/sda1)
  rootnoverify (hd0,0)
  makeactive
  chainloader +1
# Other bootable partition config ends
# Linux bootable partition config begins
  title Studio-1337 Linux
  root (hd0,2)
  kernel /boot/vmlinuz root=/dev/sda3 pmedia=atahd vga=785
# Linux bootable partition config ends
sh-4.1#
After quite a few tests, I do this now

soon I'll have a script to set my settings after a clean install.

Hope this helps, Glenn (Late one afternoon)

Thanks. Your reply is very educative to those idiots like me! I did format it. Someone from Fedora forum told me to gparted it, and it seems like working so far. Not yet use the sticks..

I've still got lots of things to learn from you guys.


Thanks again.
 
  


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
Grub is broken, LiveCD won't boot adanedhel728 Ubuntu 4 10-09-2010 01:02 PM
(TUTORIAL) How to Make LiveCD/USB from installed Slackware 13/current or Arch system! linus72 Linux - Distributions 172 10-04-2010 09:55 AM
Editing locked files from Knoppix/LiveCD Zer0X Fedora 3 02-06-2004 09:18 AM

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

All times are GMT -5. The time now is 12:55 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