LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-07-2007, 09:03 PM   #1
howarddevore
Member
 
Registered: Apr 2005
Distribution: not sure yet
Posts: 117

Rep: Reputation: 15
Sudo let-me-use-my-pendrive ?


What do I do if a usb drive decides to be read only?

In the gui I could use properties to fix this, but it needs superuser priveleges I think.

Sudo let-me-use-my-pendrive ?

Thanksfor any thoughts.
(ps its not a hardware lock)
 
Old 12-08-2007, 04:02 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Is it formated FAT32? You should have full access to a FAT32 USB drive, but NTFS would mount as read-only due to limitations in the kernel.
 
Old 12-11-2007, 08:52 AM   #3
howarddevore
Member
 
Registered: Apr 2005
Distribution: not sure yet
Posts: 117

Original Poster
Rep: Reputation: 15
Its vfat format.
 
Old 12-12-2007, 09:51 AM   #4
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Manjaro
Posts: 963

Rep: Reputation: 36
try

sudo mount -t vfat /dev/sdxx /media/<mountpoint> rw
 
Old 12-12-2007, 05:24 PM   #5
howarddevore
Member
 
Registered: Apr 2005
Distribution: not sure yet
Posts: 117

Original Poster
Rep: Reputation: 15
ok, but how do i know what the xx part will be?
 
Old 12-12-2007, 08:36 PM   #6
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Try something like:

Code:
dmesg | tail
After plugging in the drive it should give you the device and partitions on the drive. When I plug in my USB drive I get this:

Code:
tj@T-Bird:~$ dmesg | tail
sd 2:0:0:0: [sda] Mode Sense: 00 00 00 00
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] 2015231 512-byte hardware sectors (1032 MB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 00 00 00 00
sd 2:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 2:0:0:0: [sda] Attached SCSI removable disk
sd 2:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete
So as you can see, the device is sda, and it has a single partition (sda1).
 
Old 12-17-2007, 07:00 AM   #7
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
If you want to see this "live", try:
Code:
tail -f /var/log/kern.log
If /var/log/kern.log isn't the right file on your system, examine /etc/syslog.conf, possibly by:
Code:
grep kern /etc/syslog.conf
 
  


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: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
How to install and configure grub on pendrive while os' are on the same pendrive? CeremCem DamnSmallLinux 0 11-07-2006 11:10 AM
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
About pendrive satimis DamnSmallLinux 1 03-15-2006 10:15 PM
problem with pendrive minm Linux - Newbie 4 09-05-2004 02:37 PM

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

All times are GMT -5. The time now is 07:36 PM.

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