LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-09-2014, 05:42 AM   #1
eccampbell
LQ Newbie
 
Registered: Nov 2008
Posts: 10

Rep: Reputation: 0
Accessing an EXT3 partition on USB stick, created with gparted


I have an 8 gig USB memory stick and created two partitions on it, one FAT32 and the other EXT3. I was using Ubuntu 11.10 and the owner of the FAT32 partition is me, my username, and I can read and write it. But the owner of the EXT3 partition is root and I don't have permission. Since gparted is not in my applications menu I ran it from a terminal window via "sudo gparted" which is what I usually do.

So I decided to become root and ran "sudo -i" which gave me a prompt in /root, but I can't figure out how to get my prompt in the USB. My hard drive is sda and the new EXT3 partition is sdb2. I don't need to use this; it's a learning exercise, but I realized I don't know how to label various partitions in bash. I remember in MSDOS we had A: and B: for floppy drives, and C: and D: or so for hard drives, or drives lettered according to Microsoft's way designation -- and the same in Windows. What am i missing? This should be a very simple command but I can't find it in man and I don't know what would be the right search string.

I found this: http://www.linuxquestions.org/questi...tition-681160/

...but it doesn't address how to label a partition in bash. That is, how can I issue the command "ls" and apply it to sdb1 or sdb2 instead of sda7 which is where my home directory is located?

Last edited by eccampbell; 01-09-2014 at 05:00 PM.
 
Old 01-09-2014, 05:43 AM   #2
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
'mount' list all mounted devices, 'lsblk' works too
 
1 members found this post helpful.
Old 01-09-2014, 09:32 PM   #3
eccampbell
LQ Newbie
 
Registered: Nov 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Got it, thanks. It was mounted in /media :-)

Solved.
 
  


Reply

Tags
bash, gparted


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i resize mi ext3 partition ? problems with gparted Erobeno1 Linux - General 7 11-13-2013 10:17 PM
Gparted: Joining 2 partition ext3 within one partition (data saved) Davno Linux - Software 1 12-11-2009 04:24 PM
Gparted - round to cylinders on a partition created in Vista Olaus Linux - Software 2 10-20-2009 08:12 AM
User auto mount USB stick (with ext3 partition) tonyfreeman Linux - Hardware 5 11-09-2008 02:12 AM
canīt access the newly created EXT3 partition by GPARTED in kubuntu mehdiee Linux - Newbie 3 02-15-2008 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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