LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 06-08-2010, 02:44 PM   #1
pikestar
LQ Newbie
 
Registered: Aug 2009
Distribution: Ubuntu
Posts: 7

Rep: Reputation: 0
USB stick in read only mode after using it to install Ubuntu


I used my usb to install ubuntu on my netbook and now it says it's read only. Checked all over for a switch, even pulled the plastic case off but I can't find one and I'm getting more and more annoyed with it. Any help appreciated
 
Old 06-08-2010, 02:50 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
What do you get when you type "mount -l"? Have you tried remounting it read/write instead of read only?
 
Old 06-08-2010, 03:07 PM   #3
pikestar
LQ Newbie
 
Registered: Aug 2009
Distribution: Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
Tried to mount it in RW but got
"mount: block device /dev/sdb is write-protected, mounting read-only"
 
Old 06-08-2010, 03:14 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Shouldn't there be a partition on the drive (or maybe even more than one?) in which case you should be trying to mount something like "sda1" or "sda2" rather than just "sda"? Using sudo as necessary, what partitions do you see on the drive using the command fdisk -l ? (Note: that's a lowercase "L")

Sasha

Last edited by GrapefruiTgirl; 06-08-2010 at 03:18 PM. Reason: lowercase L
 
Old 06-08-2010, 03:18 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Is is possible that somehow you boot with the stick installed? Boot to your new OS and then install the flash drive.
 
Old 06-08-2010, 03:22 PM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
You could try fsck. Linux will mount a device read-only if it looks as if it might be corrupt.
 
Old 06-08-2010, 03:33 PM   #7
pikestar
LQ Newbie
 
Registered: Aug 2009
Distribution: Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
output from fdisk -l

"fdisk -l

Disk /dev/sda: 16.1 GB, 16139354112 bytes
255 heads, 63 sectors/track, 1962 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d4922

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1874 15052873+ 83 Linux
/dev/sda2 1875 1962 706860 5 Extended
/dev/sda5 1875 1962 706828+ 82 Linux swap / Solaris

Disk /dev/sdb: 4007 MB, 4007657472 bytes
124 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 7688 * 512 = 3936256 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8ef631df

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

Device Boot Start End Blocks Id System
/dev/sdb1 ? 274784 529564 979374166 66 Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(734, 123, 14) logical=(274783, 70, 21)
Partition 1 has different physical/logical endings:
phys=(120, 143, 6) logical=(529563, 65, 22)
Partition 1 does not end on cylinder boundary.
/dev/sdb2 ? 448668 961719 1972168331 7 HPFS/NTFS
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(187, 180, 14) logical=(448667, 16, 52)
Partition 2 has different physical/logical endings:
phys=(784, 0, 13) logical=(403059, 76, 1)
Partition 2 does not end on cylinder boundary.
/dev/sdb3 ? 426615 680707 976730017 7d Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(252, 59, 46) logical=(426614, 84, 39)
Partition 3 has different physical/logical endings:
phys=(139, 118, 4) logical=(122048, 22, 28)
Partition 3 does not end on cylinder boundary.
/dev/sdb4 ? 543622 544705 4161550 6f Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(370, 101, 50) logical=(543621, 57, 11)
Partition 4 has different physical/logical endings:
phys=(10, 114, 13) logical=(544704, 8, 44)
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order"
 
Old 06-08-2010, 03:38 PM   #8
pikestar
LQ Newbie
 
Registered: Aug 2009
Distribution: Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
tried fsck but it keeps leaving the file system unchanged I guess because it's in read only.
 
Old 06-08-2010, 04:48 PM   #9
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Jefro's post #5 looks like it's worth another look.

Meanwhile, from your fdisk output, we can see two disks -- sda and sdb. If sda is the USB stick, then I'd wager you should be trying to (re)mount /dev/sda1 which is the Linux filesystem. I'd also wager that it's called "sda" because it's being identified/labeled before the sdb drive -- which means that there's a decent chance (again) that post #5 may help. If the USB stick were not inserted during machine boot, then I'd figure the second drive (sdb) would actually be shown as sda, which I suspect it is because it appears to be the one with the Windows on it.

Remove USB stick; reboot Linux from the HDD where you installed it (should then be sda I believe), and log in; now, connect the USB stick (which will become sdb I believe) and proceed trying to mount /dev/sdb1 as read-write.

Best of success -- keep us posted!

Sasha
 
Old 06-08-2010, 04:52 PM   #10
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by pikestar View Post
tried fsck but it keeps leaving the file system unchanged I guess because it's in read only.
P.S. - to use fsck, a filesystem (a partition) should be UNmounted or perhaps mounted read-only (I can't recall off top of head if read-only will work -- check the fsck man-page on that if you wish.)

The message saying "filesystem unchanged" most likely means there was nothing to do, i.e. nothing wrong.
 
Old 06-09-2010, 01:28 PM   #11
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Type: lsusb to verify it's actually sda (although I'm pretty sure it is also.)
 
Old 06-09-2010, 01:36 PM   #12
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
This always happens to me when making/trying some ubuntu's
only solution I have found is to format it fat32 with Gparted.
 
Old 06-11-2010, 01:35 AM   #13
pikestar
LQ Newbie
 
Registered: Aug 2009
Distribution: Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by GrapefruiTgirl View Post

Meanwhile, from your fdisk output, we can see two disks -- sda and sdb. If sda is the USB stick,
It's a netbook so the sda is the file system. The memory stick defentily on sdb.
I used the memory stick to install ubuntu. The installer turned the stick into a bootable stick, booted the netbook with the stick in and installed the distro. Now this distro is installed I want to use the stick as normal.

Quote:
Originally Posted by GrapefruiTgirl
The message saying "filesystem unchanged" most likely means there was nothing to do, i.e. nothing wrong.
The fsck says there is problems on the stick and gives me options to fix them put then exits with the message file system left unchanged.

I will have a try with Gparted tonight.

Cheers for all the help people appreciate all the replies.
 
Old 06-11-2010, 02:04 AM   #14
Ajay Singh Tilawat
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Rep: Reputation: 1
Smile G-Parted works as a Swiss Knife

G-Parted works as a Swiss Knife

I had the same issue once
tried removing .Trash several times
succeeded after deleting the 8-GB pen drive partition and formatting it in ntfs
and again formatted in fat32 and it worked.

hope this information helps you!
 
  


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
LXer: Install Ubuntu Lucid Lynx Linux from USB stick LXer Syndicated Linux News 0 04-23-2010 02:50 PM
I ruined my Window's MBR by trying to install Ubuntu on a USB stick baldurpet Linux - General 13 07-02-2009 04:53 AM
may install from cdrom to USB FLASH DRIVE(to get it a USB stick bootable) the ubuntu lse123 Linux - Newbie 5 01-02-2009 04:56 PM
LXer: A much easier way to install Ubuntu on a USB device (Stick or Hard Disk)! LXer Syndicated Linux News 0 06-01-2008 11:20 PM

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

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